Skip to content

Deploy: refresh token if close to expiry#228

Merged
itowlson merged 1 commit intofermyon:mainfrom
itowlson:refresh-token-if-close-to-expiry
May 21, 2025
Merged

Deploy: refresh token if close to expiry#228
itowlson merged 1 commit intofermyon:mainfrom
itowlson:refresh-token-if-close-to-expiry

Conversation

@itowlson
Copy link
Contributor

Fixes #225.

Per discussion there, this now refreshes the token if it is within 5 minutes of expiry. So we should be safe for deployment operations that last less than 5 minutes, and less likely to suffer mid-operation expiry even on very long-running operations.

Tested by setting the "must have remaining" time to 28 minutes and verifying that it refreshed after 2 minutes.

Signed-off-by: itowlson <ivan.towlson@fermyon.com>
@itowlson itowlson merged commit d7b0bdf into fermyon:main May 21, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Check login status before uploading OCI bits

2 participants