[Questions] Trust store not overwriting existing ssl_options #15103
-
Community Support Policy
RabbitMQ version used4.1.2 Erlang version used27.3.x Operating system (distribution) usedlinux How is RabbitMQ deployed?Debian package rabbitmq-diagnostics status outputLogs from node 1 (with sensitive values edited out)Logs from node 2 (if applicable, with sensitive values edited out)No response Logs from node 3 (if applicable, with sensitive values edited out)No response rabbitmq.confSteps to deploy RabbitMQ clusterSteps to reproduce the behavior in questionadvanced.config[ Application codeNo response Kubernetes deployment fileNo response What problem are you trying to solve?When the trust_store plugin is enabled it adds ie after enabling trust store My first question is if this behaviour is intentional, that the user can overwrite trust store's defaults? (although they shouldn't) I think it is not intentional as since 10 years the trust store uses If this is a bug can I submit a PR to sort the input lists, or this legacy behaviour should not be changed after so many years. My other question is that at least since OTP 26 if verify_peer is enabled then there must also be a |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
|
👍 👍 to both of your suggestions - ensure that the default options are key-sorted, and add Though, if There must not be many users of |
Beta Was this translation helpful? Give feedback.
-
|
This behavior is the most logical approach that was available in 2016 when the trust store plugin was developed. We can change the overwriting part. As for adding an empty list of The trust store plugin is an an "all or nothing" approach to peer verification for TLS, so playing well with alternative setups was not the goal. But we can add or preserve some |
Beta Was this translation helpful? Give feedback.
-
|
Addressed in #15116 by @gomoripeti. |
Beta Was this translation helpful? Give feedback.
Addressed in #15116 by @gomoripeti.