Skip to content

Trust store: respect user-provided fail_if_no_peer_cert values#16201

Merged
michaelklishin merged 1 commit intomainfrom
mk-rabbitmq-server-16199
Apr 22, 2026
Merged

Trust store: respect user-provided fail_if_no_peer_cert values#16201
michaelklishin merged 1 commit intomainfrom
mk-rabbitmq-server-16199

Conversation

@michaelklishin
Copy link
Copy Markdown
Collaborator

Previously, fail_if_no_peer_cert was hardcoded in required_options() and always ended up on the left side of lists:ukeymerge/3, overriding any user-provided value. This broke environments that need fail_if_no_peer_cert = false for mixed authentication (e.g. EXTERNAL withh a fallback PLAIN).

Now the option is only injected (defaulting to true) when the user has not set it, allowing user configuration to take effect.

Closes #16199.

Previously, `fail_if_no_peer_cert` was hardcoded in `required_options()`
and always ended up on the left side of `lists:ukeymerge/3`, overriding
any user-provided value. This broke environments that need
`fail_if_no_peer_cert = false` for mixed authentication (e.g. EXTERNAL
withh a fallback PLAIN).

Now the option is only injected (defaulting to `true`) when the user has
not set it, allowing user configuration to take effect.

Closes #16199.
@michaelklishin michaelklishin added this to the 4.4.0 milestone Apr 22, 2026
@michaelklishin michaelklishin merged commit ec46123 into main Apr 22, 2026
187 checks passed
@michaelklishin michaelklishin deleted the mk-rabbitmq-server-16199 branch April 22, 2026 01:52
michaelklishin added a commit that referenced this pull request Apr 27, 2026
For `4.3.1`: Trust store: respect user-provided `fail_if_no_peer_cert` values (backport #16201)
michaelklishin added a commit that referenced this pull request Apr 28, 2026
For `4.2.7`: Trust store: respect user-provided `fail_if_no_peer_cert` values (backport #16201) (backport #16202)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

trust_store plugin ignores user-configured fail_if_no_peer_cert=false since 4.2.2

1 participant