[pass] Support multiple git repositories

Grégoire gregoire at fripost.org
Mon Apr 6 16:55:49 CEST 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 06/04/15 16:36, Alfredo Palhares wrote:
>> I'm not sure that's exactly what you want but pass already have 
>> multiple repository support using the environment variable 
>> PASSWORD_STORE_DIR. You can create an alias pass-mycompany to use
>> pass with your company repository and use the default for your
>> personal password (or vice versa).
> 
> This really seems a viable option, I've been doing a few tests and
> few questions come to mind:
> 
> - When re-encrypting keys, with pass init <key1> <key1> <key>, is
> it possible to specify only a subdirectory?
> 
> This would make sense on a team where everyone should not have the
> same access level.

Yes, use pass init -p <subfolder> <key1> <key2>...

> - Is the root key private key to encrypt new subdirectories ?

I'm not sure I understand the question... I think you want to know
what key is used when creating new subdirectories? Like if you do:

$ pass init key1
$ pass init -p foo key1 key2
$ pass insert bar/xxx

Then the xxx password will be encrypted with key1 only. But if you do

$ pass insert foo/bar/xxx

then it'll be encrypted using key1 and key2.

Note that I'm not a developer either and this is the result of my
limited understanding based on some quick tests, but I hope it helps
you answer your question :-)

Grégoire
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBAgAGBQJVIp51AAoJEN08h35OuCdaFG8P/0qg07kEH7QQ2usUbntTviRc
JBHVM7kSeRXAc6jSexJyzpQ6gsj8kE6/QhGtISQiUDXOg3nGruALrO8DvDcymRJS
C76n+f15rSFmp1knVQ7ziJ3uV9/48fQgapiSy6TtnoYcfJnYapw0InZsZ9mYF0XH
1Lcb8NYlWYvJnHpkjYenNVyiz9PTA59GiHKrfxdqyyUV5vbqWlsgrcsCuT+LJwvM
Q5ipSOkZcEoNvNd9aLsGm28IJqjvhXFggJfZSRGewSKaEtjdSKega+vrIfjNg8Ip
kw6bq+wDIBTEmEcipt/gyJ2YzQ8EWCp13RfbrD5/z2h8EGLN3R+PQcx+00D35iSs
iuo9eXUgAnj1NlCzseSfKUKpzJHaSBJyQGZhS0DRIr+ZuvXgx7ZE7TTJzJt/oaL9
78XSnoPYb8M8C4s/2O/2ur6UrVQHSOP0voJF0vmGwR02MGpC9OrQcedKgfCPo5/u
+wIQTN2quVntslIEeaKLgh7vqoKEUElmZLutBRBUw1JkPNn4UqukyEPoPRO63wOs
q9ggUKreRynfxR/LjlcdG8uegdfwfEROFDfFkLJeLiuMpRL3Kat3bM/xSzY64b+f
xbCDh99xdcLHeyYp2xXHqIkmjzvF3h0eiukjIvpzgYMOWMyFvWf0enrLw4jfmXSU
FaOoMRtR2lijB9rlcoeF
=pFEX
-----END PGP SIGNATURE-----


More information about the Password-Store mailing list