-
Notifications
You must be signed in to change notification settings - Fork 127
multi: Clear private data asap. #1584
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this. I'm pretty sure we don't need the new encrypt.Zero
given encode.ClearBytes
.
I would not be opposed to dex/encrypt/encrypt.go defining type Zero = encode.ClearBytes
to smooth some stuff out, but if a package is already importing dex/encode
, there's really no need to use encrypt.
3cee718
to
85b65b7
Compare
Just rebased. |
In core methods and consumers, clear passwords, private keys, and seeds when possible to protect against some memory scraping attacks.
85b65b7
to
7ab5425
Compare
lightly discussed in #1582
This pr makes it so the crypter cannot be used in goroutines. I think we're not doing so atm, but should be careful going forward.