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

Refresh authn.DefaultKeychain creds every 5 min #1624

Merged
merged 1 commit into from
Apr 5, 2023

Commits on Apr 5, 2023

  1. Refresh authn.DefaultKeychain creds every 5 min

    Sometimes Authenticators stick around for a while and eventually expire.
    This changes modifies Authenticators returned by DefaultKeychain to
    re-resolve after 5 minutes to ensure the underlying creds are fresh.
    
    The hard-coded 5 minutes should prevent us from spamming the underlying
    Keychain (it can be expensive) while also preventing the creds from
    expiring.
    
    This also exposes authn.RefreshingKeychain for others to use.
    jonjohnsonjr committed Apr 5, 2023
    Configuration menu
    Copy the full SHA
    29da376 View commit details
    Browse the repository at this point in the history