Improve error message when certificate is not whitelisted via rabbitmq_trust_store plugin #15854
-
Is your feature request related to a problem? Please describe.When using the rabbitmq_trust_store plugin, connection attempts for which the certificate has not been whitelisted fail with messages "certificate not whitelisted" or "CA not known AND certificate not whitelisted" and no further info about the user that tried to authenticate or about the offending certificate. This makes it hard to troubleshoot such cases via the server logs and you can only rely on reports from clients for which the connection attempt failed. Describe the solution you'd likeInclude the certificate subject (and, if available, the issuer) in the error message, e.g.,
Describe alternatives you've consideredAn alternative on the server side might be to increase overall log verbosity for all connection attempts to see if client certificates are logged at any point. But that would negatively impact overall performance and server log size. Additional contextI'll gladly provide the PR if this feature is deemed useful. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
|
The trend in the industry is arguably to log less such details, not more. |
Beta Was this translation helpful? Give feedback.
-
|
#15889 includes a [failure path] log message that includes
|
Beta Was this translation helpful? Give feedback.
#15889 includes a [failure path] log message that includes