Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GPG Cache TTL not being respected on MacOS #82

Open
n06 opened this issue May 21, 2021 · 2 comments
Open

GPG Cache TTL not being respected on MacOS #82

n06 opened this issue May 21, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@n06
Copy link

n06 commented May 21, 2021

On MacOS, the GPG User PIN cache is set with a TTL of 24 hours, but it is not being respected, and I am being asked for User PIN every few hours.

MacOS version: Big Sur 11.3.1
GPG Agent Conf:

nick.davis@COMP-C02CD0TCLVDN ~ > cat ~/.gnupg/gpg-agent.conf
# https://www.gnupg.org/documentation/manuals/gnupg/Agent-Options.html
pinentry-program /usr/local/bin/pinentry-mac
# For usability while balancing security, cache User PIN for at most a day.
default-cache-ttl 86400
max-cache-ttl 86400
@trishankatdatadog trishankatdatadog added the bug Something isn't working label May 21, 2021
@daisukixci
Copy link
Collaborator

Does lock or sleep happen during the few hours timeframe ?

@ashwinjv
Copy link

ashwinjv commented Jun 2, 2021

It happens everytime I put my macos to sleep. An easy way to reproduce it is close the macos lid, open it up again and try to sign a commit - it will ask for the pin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants