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

fix: mask secret in debug implementation #39

Merged

Conversation

ctrlaltf24
Copy link
Contributor

As a user I want to limit the exposure of my shared secret. There is an existing method to get_secret if the user really wants to see the secret

Other crates such as actix mask secrets in Debug impls
https://github.com/actix/actix-web/blob/ff8fd2f7b54dce405ede595fae568561a8465d48/actix-web/src/request.rs#L454
https://github.com/actix/actix-web/blob/ff8fd2f7b54dce405ede595fae568561a8465d48/awc/src/middleware/redirect.rs#L288

As a user I want to limit the exposure of my shared secret.
There is an existing method to get_secret if the user really wants
to see the secret

Other crates such as actix mask secrets in Debug impls
@moznion moznion merged commit a9ec2ac into moznion:main Jul 26, 2023
@moznion
Copy link
Owner

moznion commented Jul 26, 2023

Thank you for your contribution!

@moznion moznion added enhancement New feature or request security labels Jul 26, 2023
@ctrlaltf24 ctrlaltf24 deleted the fix-hide-secret-in-debug-impl-of-packet branch July 26, 2023 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request security
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants