Skip to content
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

Allow user to specify a blacklist of attributes which are masked in the log messages #3344

Merged
merged 3 commits into from Apr 10, 2017

Conversation

Kami
Copy link
Member

@Kami Kami commented Apr 10, 2017

By default we use a static blacklist of parameter names (password, token, etc.) which are masked in the log message extra if log.mask_secrets config option is set to True.

This pull request allows administrator to define an additional custom list of attributes which are masked in the log messages.

Related PR StackStorm/st2docs#459.

@lakshmi-kannan
Copy link
Contributor

We might need this at a per action level. Base runner should expose this attribute. Can you file an issue for this so we can add the feature later?

@Kami
Copy link
Member Author

Kami commented Apr 10, 2017

@lakshmi-kannan Yes, we use secret parameters for actions and API level secrets masking, but that's slightly different than log message secrets masking.

It would simply be too expensive if we needed to do a DB query or similar for each log message call.

Also, see related explanation in StackStorm/st2docs#459.

@Kami Kami merged commit 9a1b99f into master Apr 10, 2017
@Kami Kami deleted the log_message_secret_masking_user_blacklist branch April 10, 2017 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants