Re:Clever uses of pass, the Unix password manager
by Xylakant on Thursday December 16, 2021 @09:08AM
(#29578226)
It also has a few downsides: Adding a new key requires re-encrypting every entry. Touching your yubikey hundreds of times gets old, fast.
[ Parent
| on HN ]
Re:Clever uses of pass, the Unix password manager
by jehteh on Thursday December 16, 2021 @10:29AM
(#29579128)
If you are using GPG keys and have the master key backed up somewhere you can fairly easily use that on an offline machine to add the new key to the full batch of password files without needing to perform a million button presses.
Re:Clever uses of pass, the Unix password manager
by doubled112 on Thursday December 16, 2021 @11:39AM
(#29580146)
Been there and done that. People are backing up those keys, right?
Could also disable the touch to decrypt feature while you performed the rekey?
Re:Clever uses of pass, the Unix password manager
by jehteh on Thursday December 16, 2021 @02:10PM
(#29582440)
I hope people back up their GPG keys (and test their backups! My subkeys on the yubikey expire annually, forcing me to validate my master key backup at least once a year).
Disabling touch is another option if you need to do a large batch of operations and are comfortable that your machine is secure.
Re:Clever uses of pass, the Unix password manager
by kenmacd on Thursday December 16, 2021 @03:48PM
(#29583693)
You probably shouldn't be able to disable touch. If you can disable it then malware can disable it.
I'd highly recommend using the `fix` option instead of `on` to make sure it can't be disabled.
Re:Clever uses of pass, the Unix password manager
by captn3m0 on Thursday December 16, 2021 @01:13PM
(#29581608)
Yup. My backup key (the one that doesn’t travel with me) doesn’t have the touch policy and I use that for any bulk operations.
Re:Clever uses of pass, the Unix password manager
by taeric on Thursday December 16, 2021 @11:45AM
(#29580235)
I'm not sure I follow. Adding a secret is done with your public key, so no need to even touch the yubikey to do that. And the idea is each one is a separate file. So, adding does not impact any other file.
Edit: oh. Adding a new key, not password. I see how I misread.
Re:Clever uses of pass, the Unix password manager
by INTPenis on Thursday December 16, 2021 @12:06PM
(#29580525)
Touching? What? I did this recently and it's very simple thanks to pass init. I now have two keys, my old one and my new one that is on my yubikey.
Re:Clever uses of pass, the Unix password manager
by kenmacd on Thursday December 16, 2021 @03:49PM
(#29583707)
Did you have our key on a yubikey and that yubikey set to require a touch for every operation?
Re:Clever uses of pass, the Unix password manager
by INTPenis on Thursday December 16, 2021 @05:03PM
(#29584615)
No I wasn't even aware of this feature.
I just enter my pin once and it works until I pull it out.
Re:Clever uses of pass, the Unix password manager
by kenmacd on Thursday December 16, 2021 @05:56PM
(#29585154)
Here's a script that will set that mode, in case you'd like to use it. It prevents someone/malware from being able to use your key after you've unlocked it. For example if you hacked my computer and tried to use it to ssh to another machine you'd be unable because you'd need me to tap the key.
I'd suggest trying 'on' before 'fix', but then switching to 'fix' for the extra security it provides.