-
Notifications
You must be signed in to change notification settings - Fork 292
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
OIDC with Managed identity #441
Comments
I have also just today started to observe a 5 minute expiry when trying to operate some longer lived operations (deployments) with multiple steps which start after the expiry time. When attempting to perform an operation after the first (which succeeds) I am greeted with this error.
I have encountered this quite a few times in the past but only when some processes took over ~60 minutes which is more consistent with what I expect. |
I've also encountered this issue. I found this helpful: #372 (comment) |
Hi @vacuvi, sorrry for confusing you here. The token example you provided is the federated token generated by GitHub. It's correct that the lifetime of it is 5 mins. |
We are using a User Assigned Managed Identity with Federated Credentials from GitHub. According to the GitHub documentation (https://github.com/Azure/login?tab=readme-ov-file), we would expect the token to refresh and remain valid for 24 hours.
However, we are observing a token expiration of 5 minutes. The GitHub OIDC provider issues a JWT ID token with a 5-minute expiration time, although its lifespan is not officially documented. By decoding the OIDC token, we can confirm that it actually expires in 5 minutes. This can also be verified in the [sample token]
We would like to confirm if it is expected for this token to only be valid for 5 minutes, as the documentation suggests the following:
"By default, Azure access tokens issued during OIDC based login could have limited validity. Azure access token issued by Service Principal is expected to have an expiration of 1 hour by default. And with Managed Identities, it would be 24 hours. This expiration time is further configurable in Azure. Refer to access-token lifetime for more details."
Thanks
The text was updated successfully, but these errors were encountered: