DopplerHQ / cli

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

[FEATURE] Hide secrets from logs when running command with `doppler run --hide-secrets ` #326

Open remorses opened 1 year ago

remorses commented 1 year ago

Is your feature request related to a problem? Please describe. When using doppler on Github Actions with a command like doppler run -- printenv your secrets will be leaked in the Github actions logs

Usually Github Actions replaces Github Actions secrets with **** in the logs, but if you use doppler you won't have this feature

This is also useful if you are streaming on Twitch and want to show your terminal logs safely

Describe the solution you'd like When running doppler run --hide-secrets replace all doppler secrets instances with **** characters

Describe alternatives you've considered

Additional context It would also be useful to add the option --show SECRET_NAME to allow some secrets to be shown, useful if you are storing non sensitive data in doppler and want to show them in logs