7 ms·
I've been using pass for several years now and I recommend it to my friends, but I usually get weird looks when I say I store my passwords in a git repo (it's n
by PureParadigm 5y ago
I've been using pass for several years now and I recommend it to my friends, but I usually get weird looks when I say I store my passwords in a git repo (it's not as bad as it sounds!). Here's why:
- I host my git repo on my desktop computer (through SSH), so it's not exposed anywhere except if you have SSH access to my computer. (A lot of people seem to think git = GitHub which is not true). So if your git repo is not exposed to the public, you don't leak any of the site names/usernames you use.
- The passwords are GPG encrypted so even if it were leaked that would be okay as long as my secret key remains secure.
As far as usability goes, I usually use the -c option to copy/paste my passwords. I used a browser extension for awhile, but I haven't gotten around to reinstalling since the copy/paste works fine for me. Syncing with my phone and Linux devices works perfectly (since it's just git).
The Windows client seems to be no longer maintained [1], so I would like better support here for my Surface. But this is still okay since I can SSH to my desktop computer from Windows and copy/paste the passwords from there.
[1] https://github.com/mbos/Pass4Win#readme https://github.com/mbos/Pass4Win#readme
- spicybright 5y agoHow do you get your passwords out of the repo on your phone?
- PureParadigm 5y agogit push. The Android app works with git repos from SSH. I also use Wireguard since I run my SSH server behind the VPN, but this is obviously optional since you can just expose your SSH server to the internet.
- spicybright 5y agoSorry, I meant more on the UI side. Like if I'm on a website that needs a login, do I run a pass command in a local terminal, then copy and paste?
- coldtea 5y agoThat's what they meant with "The Android app works with git repos from SSH". That is: there are GUI mobile and desktop client apps, compatible with the pass storage schemes. In this case, the parent refers to one such app that can connect to e.g. your GitHub repo with your passes, and read/manage the passwords from there.
- PureParadigm 5y agoAh, there is an Android app [1] which you sync the passwords to and it basically presents a list of all your websites. To use a password: tap on the website name, unlock your GPG key, and then see your password and put it in your phone's copy/paste buffer. [1] https://play.google.com/store/apps/details?id=dev.msfjarvis.aps&hl=en_US&gl=US https://play.google.com/store/apps/details?id=dev.msfjarvis....
- jimmaswell 5y agoSounds a lot less convenient than e.g. Samsung Pass. Depends what you value I guess.
- eulenteufel 5y agoOn my phone the Android app also asks to fill login forms in Firefox.
- stonecharioteer 5y agoThank you. I wish OP could have linked what Android app he was using
- zaphirplane 5y agoa bunch of apps busted (tiktok) that polled the iphone’s clipboard, isn’t android also susceptible to that ?
- dopidopHN 5y agoThis is correct. Pass can only copy it in the paste buffer for 45s. The command has a nice auto completion and search feature. And calling it without arguing give you a list of all the name of the key you have in a tree view. I really enjoy using that little utility since I would say 4 or 5 years.
- aborsy 5y agoDo phone apps support Yubikey?
- PureParadigm 5y agoThe Password Store app delegates key management to another app. I use OpenKeychain [1] for this. I believe OpenKeychain supports Yubikeys, but I haven't used that feature myself so I can't speak about how well it works. [1] https://www.openkeychain.org/ https://www.openkeychain.org/
- GekkePrutser 5y agoIt works perfectly both over NFC and USB either OTG micro USB or USB-C. I only use hardware keys now.
- nulbyte 5y agoMost apps delegate PGP functionality to OpenKeychain, which works with Yubikeys. I use a Yubikey 5 NFC and the Password Store app from F-Droid.
- deleted 5y ago[deleted]
- eptcyka 5y agoIt supports PGP keys stored on yubikeys via OpenKeychain. There's talks of removing support for OpenKeychain in lieu of a homegrown implementation since OKC develoent has lost velocity. And their library interface can be a bit cumbersome.
- FrenchyJiby 5y agoYes! Termux[0] does supports gpg and pass but no yubikey by default, but okc-agent[1] is a third party binding of OpenKeyChain, providing barebones gpg via yubikey. I use this to decrypt passwords via NFC: [0]: https://termux.org https://termux.org [1]: https://github.com/DDoSolitary/OkcAgent https://github.com/DDoSolitary/OkcAgent Simple password decrypt: okc-gpg -d ~/.password-store/mypass.gpg I made a termux shortcut (button on homescreen) to emulate pass-dmenu via this ( store in ~/.shortcuts): #!/data/data/com.termux/files/usr/bin/env bash # Lists passwords in termux dialog, decrypting selection to clipboard for 45s # http://redsymbol.net/articles/unofficial-bash-strict-mode/ set -euo pipefail # Inspired by https://git.zx2c4.com/password-store/tree/contrib/dmenu/passmenu shopt -s nullglob globstar prefix=${PASSWORD_STORE_DIR-~/.password-store} password_files=( "$prefix"/**/*.gpg ) password_files=( "${password_files[@]#"$prefix"/}" ) password_files=( "${password_files[@]%.gpg}" ) password_files_csv=$(printf '%s,' "${password_files[@]}") choice_json=$(termux-dialog sheet -t "Select password" -v "$password_files_csv") choice_exit=$(echo "$choice_json" | jq .code) [[ "$choice_exit" == 0 ]] || exit password=$(echo "$choice_json" | jq .text | tr -d '"') okc-gpg -d ~/.password-store/"$password".gpg 2>/dev/null | head -n 1 | termux-clipboard-set # pass show -c "$password" 2>/dev/null termux-toast -s "Password copied to clipboard" sleep 46 termux-clipboard-set "" termux-toast -s "Password remove from clipboard"
- koolba 5y agoNot having access to your passwords on your phone is considered by some of us as a feature.
- spicybright 5y agoOP said they sync it to their phone.
- eptcyka 5y agoThe android app allows one to use OprnKeychain, so I can use my gpg key on my yubikey to both authenticate the SSH session to do git pulls and decrypt individual secrets.
- tazeg95 5y agohttps://fr.jeffprod.com/blog/2019/gerez-vos-mots-de-passe-avec-des-logiciels-libres/ https://fr.jeffprod.com/blog/2019/gerez-vos-mots-de-passe-av... (french)
- mattacular 5y agoIt's worth mentioning though that your repo could leak metadata about what accounts you have, and your username, depending on how you name your pass entries (ie. you can mitigate it by adopting a more cryptic naming scheme for sensitive entries). Just something to be aware of, it may not matter for your use case. Bitbucket still offers free private repos, which I use for my password store.
- moviuro 5y agoCheck out https://github.com/roddhjav/pass-tomb https://github.com/roddhjav/pass-tomb
- insensible 5y agoI use Keybase git for this reason, and it works great.
- RcouF1uZ4gsC 5y ago> I used a browser extension for awhile, but I haven't gotten around to reinstalling since the copy/paste works fine for me. One danger of doing just copy and paste is that you are more exposed to phishing attacks. The browser extension for the password managers check that the site that they are filling in is indeed the site that they stored the password for.
- aborsy 5y agoBut extensions bring their own security concerns too. You can use auto type. But you need to make each entry identifiable and sometimes it doesn’t work because page and login titles change.
- hk1337 5y agoYou could also store it in a Keybase [1] repo. [1] https://keybase.io/ https://keybase.io/
- paulryanrogers 5y agoIsn't that now owned by Zoom?
- ahnick 5y agoWe made an extension for encpass.sh (similar in some ways to pass) that stores secrets in Keybase (https://github.com/plyint/encpass.sh/blob/master/extensions/keybase/KEYBASE.md https://github.com/plyint/encpass.sh/blob/master/extensions/...) if that sort of thing is of interest to you. Outside of personal secrets, it can be used as a sort of low cost stand in for shared secrets that you might use something like Vault for in a team environment.
- hk1337 5y agoThat's interesting. I started storing my dotfiles repository in Keybase. There's not any secrets in there really other than how my home directory is setup but I figured there's no reason I couldn't keep my AWS keys and ssh key pairs in there too.
- encryptluks2 5y agoThere is gopass for Windows which is compatible last time I checked. It also works on Linux and Mac too: https://github.com/gopasspw/gopass https://github.com/gopasspw/gopass
- tex0 5y agogopass is primarily targeted at Linux. But it's reported to work very well on Windows, too.
- iudqnolq 5y agoI'm glad it's working well for you. I used to use pass, but when I lost my gpg key I was able to recover most of my passwords through a mistake I'd made. After that I decided to switch to something where I wouldn't be able to screw up as easily, and bought 1password. I still had an earlier gpg key, and had not reset all my passwords when I switched keys. I'd just re-encrypted them. This let me check out an old commit and decrypt all the passwords in it. A dumb mistake, but it showed me I'm not smart enough to use something that doesn't hold my hand more.
- amackera 5y agoA good story, and a good lesson! Thanks for sharing
- bombcar 5y agoReally good point that you can’t change a password on something if backups exist - because they backups still have the old password. Would apply to 1Password vaults backed up by TimeMachine too.
- sails 5y agoImportant point on usability for people who may have overlooked this, like me.
- lufte 5y agoThis is why I use pass without git. pass works normally without git, but the Android app assumes the store is a repository, so it "mostly" works.
- GekkePrutser 5y agoQtPass works great for me on all platforms including Windows
- SamuelAdams 5y agoSo your git repo and GPG key are stored on the same device? What happens when that device is stolen?
- aidenn0 5y agoGPG keys are usually stored encrypted at rest.
- beagle3 5y agoYubikeys that can do gpg are $40 or so and have lots of other uses. Iirc, ssh can now do file encryption with FIDO2 keys; these are $10 or so. Definitely worth buying a pair if you are worried about security (both Trojans, where local encryption at rest can be defeated, and losing your device where it is not)
- fouuler 5y ago> I usually use the -c option to copy/paste my passwords In X11 it's also possible to get passwords typed automatically with xdotool, which I call through an xmonad package. The only thing I'm missing is more powerful autocompletion.
- eloeffler 5y agoAre you aware of passmenu, which is part of pass? The autocompletion/selection process works quite well for me
- fouuler 5y agoI wasn't, thanks! It's very nice to be able to type part of the domain name first and then space and then part of the username. ... but as far as I can see, passmenu just copies to clipboard and doesn't use xdotool?
- eloeffler 5y agoThis is a bit late now (I need a way to follow up on my comments). But it can actually use xdotool if you run it with the --type option. See also the source here: https://git.zx2c4.com/password-store/tree/contrib/dmenu/passmenu https://git.zx2c4.com/password-store/tree/contrib/dmenu/pass...
- fouuler 5y agoThanks. There wasn't any manual page or --help output, so I gave up on it, but now this may be the best option I know of. But, yeah, I could have just `cat /bin/passmenu`.