DopplerHQ / cli

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

ENG-5001: CLI Environment Variable RCE #341

Closed Kunamatata closed 1 year ago

Kunamatata commented 1 year ago

Description

This pull request contains updates to address the possibility of RCE (Remote Code Execution)

It introduces the following new features for the doppler run command:

NOTE: All DOPPLER_ variables will not be included by default when setting the --include (-i) flag without specifying them.

Scenarios

PSA: The logs about the environment variable being included is part of the ./app.js. These are not logged by the doppler cli

Note: the --include flag in the images below has been replaced with --only-secrets

Closes #322

Kunamatata commented 1 year ago

Latest Rebase

Scenarios

Kunamatata commented 1 year ago

Latest Rebase

Kunamatata commented 1 year ago

Would we be cool with --no-exit instead of the very verbose --no-exit-on-missing-included-secrets

Kunamatata commented 1 year ago

Latest Rebase

Kunamatata commented 1 year ago

Latest Rebase

Ready for re-review.

Kunamatata commented 1 year ago

Latest Rebase @Piccirello

nmanoogian commented 1 year ago

Way to go on your first CLI feature PR, @Kunamatata!