quarkus-rabbitmq-client icon indicating copy to clipboard operation
quarkus-rabbitmq-client copied to clipboard

Usage of `com.rabbitmq.client.ConnectionFactory`

Open gian1200 opened this issue 9 months ago • 1 comments

I currently have an app that:

  1. Retrieves credentials from a vault
  2. Uses a certificate (in base64) to secure the connection

Both configurations depends on using ConnectionFactory to create the connection programmatically.

Point 1

Given that quarkus-rabbitmq-client has most of its configuration as a property, and does not currently support Credentials Provider, I believe I can achieve the same result from point 1 with a Custom ConfigSource. 👍🏻

Point 2

However, I don't know how to workaround point 2. Reading the docs, I see a "TLS Configuration", but I'm not sure how to use it with a base64 cert.

I currently have code that generate a SSLContext from the base64 cert, and can use it with connectionFactory.useSslProtocol(sslContext). However, I do not see an option where I can use com.rabbitmq.client.ConnectionFactory to customize the connection of quarkus-rabbitmq-client programmatically. Is there any?

gian1200 avatar Jan 31 '25 20:01 gian1200