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

Prevent passwords from being logged #2839

Conversation

feikesteenbergen
Copy link
Contributor

As passwords were treated as Strings, and Debug was derived, any debug logging would print the full password in the diagnostic logs of the applicaiton running this library.

By wrapping the password in Secret and implementing most traits, we can (almost) seamlessly prevent passwords from being displayed in those contexts.

As passwords were treated as Strings, and Debug was derived, any debug
logging would print the full password in the diagnostic logs of the
applicaiton running this library.

By wrapping the password in Secret and implementing most traits, we can
(almost) seamlessly prevent passwords from being displayed in those
contexts.
@@ -183,6 +183,44 @@ impl LogSettings {
}
}

/// `Secret` is a wrapper around a String which ensures it is not going
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Suggested change
/// `Secret` is a wrapper around a String which ensures it is not going
/// `Secret` is a wrapper around a String which ensures it is going

@feikesteenbergen feikesteenbergen marked this pull request as draft October 28, 2023 07:54
@abonander
Copy link
Collaborator

@feikesteenbergen do you intend to finish this?

@abonander
Copy link
Collaborator

Closing due to inactivity. Feel free to reopen if you plan to finish this.

@abonander abonander closed this Nov 16, 2023
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.

2 participants