Skip to content

[docs] Warn that debug logging can expose passwords #17458

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: 8.17
Choose a base branch
from

Conversation

toby-sutor
Copy link
Contributor

When debug logging is enabled in Logstash, it may expose sensitive information such as passwords into the logs. Document this behavior.

Logs

[TIMESTAMP][DEBUG][logstash.outputs.elasticsearch] config LogStash::Outputs::ElasticSearch/@password = MyUnredactedPassword

When debug logging is enabled in Logstash, it may expose sensitive information such as passwords into the logs. Document this behavior.
@jsvd
Copy link
Member

jsvd commented Apr 1, 2025

hi @toby-sutor can you walk me through the setup you had? plain debug logging shouldn't do that:

❯ grep "LogStash::Outputs::ElasticSearch/@passwor" logs -r
logs/logstash-plain.log:[2025-04-01T09:30:16,017][DEBUG][logstash.outputs.elasticsearch] config LogStash::Outputs::ElasticSearch/@password = <password>

@toby-sutor
Copy link
Contributor Author

Thank you for checking. In my repro on 8.17.4 it is also correctly redacted. However, it was reported by a customer, and we had similar reports at #15530, so I thought it would be a good opportunity to document this potentially happening in general.

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.

2 participants