deislabs/hippo-cli

Should we hide all environment variables values in help text?

itowlson opened this issue · 2 comments

By default, if a Clap argument has an environment variable associated with it, and that environment variable is set, then Clap includes the value in help text (see #62 for examples). We have hidden this for passwords. @bacongobbler has raised the question of whether we should hide it for all arguments.

Repeating the same question here for posterity:

Could leaking the output of HIPPO_USERNAME and HIPPO_URL be considered leaking private credentials if those values were internal secrets, like HIPPO_URL=https://icantbelieveitsnothippo.com?

I don't think that they represent enough of a security problem to warrant hiding them (it's "minor information disclosure"), but the debugging value of seeing the HIPPO_URL is pretty high, I think. So I think there is an argument for at least leaving that one.