Skip to content

Conversation

@mashhurs
Copy link
Contributor

When running Logstash with --config.debug, api_key may be leaked in the debug logs. This PR changes api_key type to password to prevent from leaks.

@mashhurs mashhurs added the bug label May 23, 2023
@mashhurs mashhurs self-assigned this May 23, 2023
Copy link

@roaksoax roaksoax left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add (at least) one tests that makes sure that when setting this config option, the value is of password type.

Copy link

@roaksoax roaksoax left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add (at least) one tests that makes sure that when setting this config option, the value is of password type.

@mashhurs mashhurs requested a review from roaksoax May 30, 2023 00:22
Copy link

@roaksoax roaksoax left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@mashhurs mashhurs merged commit 542e05d into logstash-plugins:main May 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

api_key config can be leaked in debug mode.

2 participants