How to config Shovel over SSL #316
-
Hi Team, Thank you, |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Hi @marcelloraffaele, thanks for using our Operators. If your RabbitmqCluster is TLS only, you first need to follow this Topology Operator TLS guide to ensure that the Topology Operator trust your RabbitmqCluster CA. After this step, Topology Operator can connect to the RabbitMQ server successfully and create queues, exchanges, and shovels etc. For configuring shovel,
Please let me know if it works! The team hasn't personally tested using topology operator to configure TLS only federation and shovels before (there is no reason why it shouldn't work tho). It will be a good example to add our |
Beta Was this translation helpful? Give feedback.
-
Do you have any information on how to setup the src uri and dest uri in order to specify the certs? |
Beta Was this translation helpful? Give feedback.
-
uri specification can be found here: https://www.rabbitmq.com/uri-query-parameters.html#basics The configuration really depends on your own set up. Shovel acts as a client APP for both the source and destination RabbitMQ. Depends on how you've signed your server certs and where you are configuring shovel, you might not need to specify path to any of these certs. For example, if you are 1) not using mTLS 2) both your dest&src RabbitMQ are set up to trust the same CA 3) you are configuring shovel in either the source or the destination RabbitMQ, you don't need to configure the ca cert in your URI because it should already be trusted. On the other hand, you are configuring Shovel in a third RabbitMQ cluster, not source or destination, and that third RabbitMQ does not trust the source and destination RabbitMQ's CAs, you will need to provide path to CA certs in both the destination and source URI. The cert file and key file are needed for mTLS. You can find more information here: https://www.rabbitmq.com/ssl.html#java-client-connecting-with-peer-verification |
Beta Was this translation helpful? Give feedback.
Hi @marcelloraffaele, thanks for using our Operators. If your RabbitmqCluster is TLS only, you first need to follow this Topology Operator TLS guide to ensure that the Topology Operator trust your RabbitmqCluster CA. After this step, Topology Operator can connect to the RabbitMQ server successfully and create queues, exchanges, and shovels etc.
For configuring shovel,
cacertfile
,certfile
, andkeyfile
for both the src and destination URI should be path to them in that particular RabbitmqCluster you are declaring shovel in. If cert files for your destination RabbitMQ is not in that RabbitmqCluster yet, you could mount the secret containing these TLS certs by using statefulSetOverride, for…