cli
cli copied to clipboard
Hide Authorization header credentials in verbose mode
When the request headers are being echoed back, I'd like the default behavior to be to **** out the credentials.
Instead of this being displayed:
Authorization: Basic aHR0cGllOmlzQXdlc29tZQ==
I'd like to see:
Authorization: Basic ************************
Similarly:
Authorization: Bearer *******************************
Maybe a new option (like --show-creds) could be used to show the credentials.
Good idea. People accidentally share sensitive data like this all the time. Thinking out loud:
- Having this on by default goes slightly against having the output verbatim.
Authorizationisn't the only header with sensitive values out there (think all theToken,X-API-Token, etc.).