Skip to content
This repository has been archived by the owner on Sep 18, 2021. It is now read-only.

Scrub passwords from logs #2038

Closed
ayoung opened this issue Oct 16, 2015 · 5 comments
Closed

Scrub passwords from logs #2038

ayoung opened this issue Oct 16, 2015 · 5 comments
Milestone

Comments

@ayoung
Copy link

ayoung commented Oct 16, 2015

Is there a way to scrub/sanitize the passwords when logging?

The TokenRequestValidator logs the entire validated request which includes the password. This is seen as security issue for us.

Thanks.

@brockallen
Copy link
Member

That's why logging is only designed for development time.

@ayoung
Copy link
Author

ayoung commented Oct 17, 2015

Not all the time though. We may want to turn logging on when debugging a production issue.

@brockallen
Copy link
Member

If you want to send a PR, then we can log a filtered version of that data structure. Make sure to make a copy of the validated request when logging (as opposed to just nulling out the sensitive properties).

@ayoung
Copy link
Author

ayoung commented Oct 18, 2015

Ok. Thanks. Will do. You can close this for now.
On Sun, Oct 18, 2015 at 7:54 AM Brock Allen [email protected]
wrote:

If you want to send a PR, then we can log a filtered version of that data
structure. Make sure to make a copy of the validated request when logging
(as opposed to just nulling out the sensitive properties).


Reply to this email directly or view it on GitHub
#2038 (comment)
.

@leastprivilege
Copy link
Member

I will split it up into several checkins (your PR included multiple concerns). thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants