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

Azure Authentication Token of the webapp expires after 24h #87

Open
harsha-chamarthi opened this issue Jun 20, 2023 · 0 comments
Open

Comments

@harsha-chamarthi
Copy link
Contributor

harsha-chamarthi commented Jun 20, 2023

Describe the bug
Azure Authentication token generated by the webapp expires after 24h, which is causing the VM deletion and creation to fail. https://github.com/liatrio/terraform-azure-github-runner/blob/main/app/runner-controller/azure/credentials.js, Azure authentication credentials are generated by this file but it fails to refresh the authentication token upon expiry which is 24 hours. For now as a workaround restarting the webapp refreshes the token

See error:
{"error":{"code":"ExpiredAuthenticationToken","message":"The access token expiry UTC time '6/9/2023 1:31:20 PM' is earlier than current UTC time '6/9/2023 4:48:41 PM'."}}},"details":{"error":{"code":"ExpiredAuthenticationToken","message":"The access token expiry UTC time '6/9/2023 1:31:20 PM' is earlier than current UTC time '6/9/2023 4:48:41 PM'."}}}

Expected behavior
Refresh the authentication token upon expiry.

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

No branches or pull requests

1 participant