DopplerHQ / cli

The official CLI for interacting with your Doppler secrets and configuration.
https://docs.doppler.com
Apache License 2.0
220 stars 44 forks source link

Redact token when printed on screen #183

Closed Piccirello closed 3 years ago

Piccirello commented 3 years ago

When the token is printed it's generally to let the user know that it has some value, rather than needing to expose the exact value. We now display the token in redacted form when it's shown on-screen, with the exception of doppler configure get token, doppler configure debug, and commands run with the --json flag.

Closes DPLR-795.

Piccirello commented 3 years ago

@rgmvisser good idea, I've modified the redaction logic.

Before:

$ ./doppler configure | grep token
│ token          │ [REDACTED]                    │ / │

After:

$ ./doppler configure | grep token
│ token          │ dp.ct.r126…XmlcH              │ / │