Skip to content

Conversation

@jpalac
Copy link
Contributor

@jpalac jpalac commented Feb 25, 2025

This is the output of the Exploration multi topic task force working on the LavingMQ compatibility issue

It makes small adjustments to enable ServiceControl to connect to LavinMQ using the RabbitMQ transport.

}

var rabbitVersion = obj["rabbitmq_version"] ?? obj["product_version"];
var rabbitVersion = obj["rabbitmq_version"] ?? obj["product_version"] ?? obj["lavinmq_version"];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will this report the LavinMQ version number as the RabbitMQ version in the broker metadata?

I'm not sure that's what we want to do. Shouldn't we identify it's actually LavinMQ and not RabbitMQ somehow?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At this stage - this is just a spike. It is all "wrong" as the transport is rabbitmq and all docs etc, including SP display will say rabbitmq

// https://github.com/Particular/ServiceControl/issues/4493
httpClient = CreateHttpClient(defaultCredential, apiUrl);
var authToken = Convert.ToBase64String(System.Text.Encoding.ASCII.GetBytes($"{username}:{password}"));
httpClient.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authToken);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This sends the credentials in plain text which is not what we want and we would want to change this.

Using PreAuthenticate = true, on the httpclient instead of setting this header directly does not work.

@jpalac jpalac changed the title [SPIKE] Add LavinMQ version and extra connection requirement [SPIKE] Add LavinMQ version and extra connection requirement - DO NOT MERGE Feb 28, 2025
@jpalac jpalac closed this Feb 28, 2025
@bording bording deleted the enable-lavinmq branch March 3, 2025 19:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants