ZOOKEEPER-5049: Redact passwords from PrometheusMetricsProvider configuration logging#2387
Conversation
…guration logging Before When PrometheusMetricsProvider was enabled and configured for HTTPS, on startup, PrometheusMetricsProvider logged all it's configs in clear text on INFO level. This included KeyStore and TrustStore passwords. Fix Use the same redaction logic as ZKConfig to avoid logging passwords.
|
Log before: Log after: |
Thanks, good point. I extracted the log redaction logic to a shared utility. |
|
@meszibalu PTAL. |
|
Merged to |
Many thanks. I'll create a backport. |
…guration logging Reviewers: anmolnar, meszibalu Author: PDavid Closes apache#2387 from PDavid/ZOOKEEPER-5049-PrometheusMetricsProvider-log-redact
@anmolnar I just realized that secure
In Do you think we still need to backport this patch to |
|
I created the 3.9 backport here #2392 (though I'm not sure how useful it is). |
Before
When PrometheusMetricsProvider was enabled and configured for HTTPS, on startup, PrometheusMetricsProvider logged all it's configs in clear text on INFO level. This included KeyStore and TrustStore passwords.
Fix
Use the same redaction logic as ZKConfig to avoid logging passwords.