You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
AWS credential expiry can be shorter than signature expiry #771
We use reqsign to presign AWS urls for consumption elsewhere. We use DefaultCredentialProvider and, in production, generally IMDSv2.
With this combination, it's theoretically possible that the generated IMDS credentials expire before the signed URL, rendering the signed URL useless. That's because a signed URL can only last as long as the credentials that created it, regardless of expiry.
This is a bit tricky or I would've opened a PR already. As I see it the simplest change is to SigningCredential::is_valid
If we change it to is_valid(at: Timestamp), then we can determine whether we need to refresh the credential before signing the request. However, it's a public trait, therefore a breaking change.
Activity