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 credentials every half-duration #108

Merged
merged 1 commit into from
Jun 12, 2018

Commits on Jun 12, 2018

  1. Refresh credentials every half-duration

    By default, credentials last an hour.  Previously, awsaml would refresh
    the credentials every hour minus ten seconds.  This leaves the potential
    of a long-running command picking up those credentials right before they
    expire, and them expiring partway through running the command, and the
    command failing.  Terraform is one such example.
    
    This change will refresh the credentials every half hour.  This *should*
    guarantee that whenever a command is run, it has at least a half hour of
    useful life on the credential that it picks up from the credentials
    file.
    
    A bug still exists:  The timer starts from the time awsaml launches, not
    from the time a user logs in.  This is okay, because it should still
    guarantee more frequent updates than necessary to retain valid and
    recent credentials.
    rdickey-r7 committed Jun 12, 2018
    Configuration menu
    Copy the full SHA
    20ad4a1 View commit details
    Browse the repository at this point in the history