Skip to content

Misleading Shovel URI Example for fail_if_no_peer_cert option #12223

@robo-w

Description

@robo-w

Describe the bug

The last URI example for the dynamic shovel configuration shows the URI parameter fail_if_no_peer_cert=true set:

image

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

  1. 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 parameter fail_if_no_peer_cert=true.
  2. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions