show secret key (while safecontent = true) #3278
-
|
Hi! I'm sure someone has asked this before, but I couldn't find it. I use the configuration option "show.safecontent = true." I've noticed that this option doesn't handle unsafe keys in a secret. I would expect to be able to use "gopass show secret" the same way I could use "gopass show secret key." Did I miss something? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
This looks like expected behavior, you are explicitly asking to display an unsafe key, so we assume that's what you really wanna do. Just like The idea is that the content of an unsafe-key is a secret anyway, and so there would be nothing to display. In order to "only clip" without displaying the secret, one should use We do have an |
Beta Was this translation helpful? Give feedback.
-
|
I understand your point. In my case, I sometimes share my screen and have to remember to use the -c option. I would prefer to hide everything by default. I usually save API secrets as keys. Thanks for your input. I can live with that. |
Beta Was this translation helpful? Give feedback.
This looks like expected behavior, you are explicitly asking to display an unsafe key, so we assume that's what you really wanna do.
The idea behind
show.safecontentis to prevent accidentally displaying sensitive data onscreen when displaying the whole secret, but not to prevent you from accessing it easily if that's what you want to do.Just like
gopassstill displays the password if you're usinggopass -o test/website, because-ois explicitly about the secret, it also displays the content of an unsafe key if it's explicitly requested to.The idea is that the content of an unsafe-key is a secret anyway, and so there would be nothing to display. In order to "only clip" without displayin…