-
Notifications
You must be signed in to change notification settings - Fork 56
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
Pretty-printer with redacted/hidden passwords #135
Comments
I agree we should redact the passwords by default. |
Should we change the behavior of |
Given the existence of GDPR, the best approach is probably to default to not printing the username and password in |
I started looking at this a bit and have a few API design questions/thoughts. I think Rather than adding a As pure evil as global references may be, the The interface additions would be: (** `User and `Password would be added to the component type definition *)
(** {!pp}'s behavior would silently change to pull from the set of redacted components when printing *)
(** Set of redacted components when printing with {!pp}. Can be changed with {!add_redacted} and {!remove_redacted}. Defaults to [`User] and [`Password]. *)
val redacted : unit -> component list
(** [add_redacted component] adds [component] to the set of redacted components when printing with {!pp}. *)
val add_redacted : component -> unit
(** [remove_redacted component] removes [component] from the set of redacted components when printing with {!pp}. *)
val remove_redacted : component -> unit |
It would be better to mark |
Hiding passwords in a pretty-printer is useful for logging. It may be worth having passwords hidden by default, with a way to opt-in to password printing.
A few possible options:
The text was updated successfully, but these errors were encountered: