-
Notifications
You must be signed in to change notification settings - Fork 4k
Closed
Labels
Description
Describe the bug
The last URI example for the dynamic shovel configuration shows the URI parameter fail_if_no_peer_cert=true set:
Since the upgrade to RabbitMQ 3.13.2 with Erlang 26.2.5 this option produces following error when set:
2024-09-05 13:55:33.235000+02:00 [error] <0.1524.0> Shovel 'some-example-shovel' failed to connect (URI: amqps://test-host.local:5671/%2F): {option,server_only,fail_if_no_peer_cert}
On a RabbitMQ 3.11.x installation with Erlang 25.2 the URI like in the example worked fine, but since the upgrade it works only if the option is removed.
From the documentation of the parameter/config option it also does not really make sense to set it on client side (shovel URI). I think removing the parameter from the example is sufficient.
Reproduction steps
- Configure a shovel with a source URI based on the example URI
amqps://server-name?cacertfile=/path/to/cacert.pem&certfile=/path/to/cert.pem&keyfile=/path/to/key.pem&verify=verify_peer&fail_if_no_peer_cert=true&auth_mechanism=external. The URI must include the parameterfail_if_no_peer_cert=true. - Shovel does not start with the error
{option,server_only,fail_if_no_peer_cert}- not OK
RabbitMQ version: 3.13.2
Erlang version: 26.2.5
Expected behavior
The listed example URIs of the shovel plugin should work.
Additional context
No response
