10
2
I am trying to setup a, business internal, password storage to be used by various scripts (and people). I have looked at many alternatives but the easiest to modify to achieve my goal seems to be the pass
utility.
I am not that good with security and a real noob when it comes to GPG. I have managed to make things working for a single user by:
- Generating a new GPG key
- using
pass init <key_hex>
I also know I can use -p
option (or an env variable) to initialize the pass storage in a "data" folder rather than a home directory (defaults to ~/.password-store
).
However, I am in a situation that I would like all users of a (Linux) host/box (or users of a specific group later) to be able to access the same password-store. To my understanding, I need to somehow create a shared GPG key for all these users so each one can use the pass
utility to access the same store and retrieve passwords. I have no clue how to do such a setup and I am kinda stuck...
Any help would be appreciated
Password storage to be used by scripts? Sounds like the XY problem. http://meta.stackexchange.com/a/66378/307622 Why do you want multiple users to access the same password store?
– Wildcard – 2015-10-19T08:20:43.760Hi @Wildcard, this is a common problem (I think) in a NOC. Lots of scripts around for various jobs but there are the rules: (1) No hard-coding passes, (2) Never, ever clear-text passes (anywhere other than memory - no files, no cmd line, not on the wire). Therefore a mechanism is required to be able to say "give me cisco ro community". Some times a user runs the script/tool... so we can ask... but other times it is a CRON based thing. I mention internal cause it does not need to be bullet-proof - it is a heavily fire-walled network. Any directions/ideas will be good – urban – 2015-10-19T10:58:05.507
Another thing to clarify is that I will have to modify the utility to do group-based access, syslog, pass roll-outs, etc to much the business needs. So
pass
seems to me the most flexible tool (might be wrong) – urban – 2015-10-19T11:01:48.6602
I am sure the answer is in subkeys ... but I have used different software for this here which is based on
– urban – 2016-03-09T13:32:07.813python
andkeepassdb