secretive icon indicating copy to clipboard operation
secretive copied to clipboard

Feature Request: Per key unlock time

Open zachberger opened this issue 3 years ago • 4 comments

There are some keys I always want to have unlocked for ~5 minutes while I run automation. Building off of the new feature where I can unlock a key for X minutes via the notification, it would be great to be able to set individual keys with a predefined unlock period.

zachberger avatar Feb 18 '22 05:02 zachberger

Probably technically possible, if it's at key creation (maybe even after? Tricky part there is I can't tell if a key will require auth unless I marked it somewhere during creation)

Messaging might be confusing too.

Overall I can see the appeal, just need to think if there's a way I can set it up nicely.

maxgoedjen avatar Feb 18 '22 08:02 maxgoedjen

Thanks - I actually keep two keys right now because of the current mechanism:

  • For use cases where I'm actively involved (e.g. github, gitlab, ssh-ing to certain servers), I use a key with auth required.
  • For use cases where automation takes a series of steps requiring ssh such as docker-compose, or other scripts I've written I have auth disabled because I don't want to press my finger 10-50x depending on the use case.

Ideally for the second case the fingerprint would be required for the first use, but subsequent uses wouldn't require it for some time. Perhaps there is some other option than a timeout?

zachberger avatar Feb 18 '22 08:02 zachberger

I second this request. My use case is pulling a git repo with lots of submodules. If I use a key that requires Touch ID, I have to do the Touch ID auth for every submodule.

ben-z avatar Feb 24 '22 03:02 ben-z

Probably technically possible, if it's at key creation (maybe even after? Tricky part there is I can't tell if a key will require auth unless I marked it somewhere during creation)

So an update on this, I did manage to figure out how to determine this here: https://github.com/maxgoedjen/secretive/pull/357

I've got this tracked separately: https://github.com/maxgoedjen/secretive/issues/358 – there's some complications around communication between the agent and the host app, but I'm doing some thinking about how to deal with that.

maxgoedjen avatar Feb 25 '22 07:02 maxgoedjen