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

ApplicationTokenCredentials.initOIDCToken: Extend retry mechanism for exceptions #280

Merged
merged 1 commit into from
Feb 14, 2024

Conversation

onetocny
Copy link
Contributor

@onetocny onetocny commented Feb 13, 2024

In several mseng release pipelines we are experiencing flaky issues when trying to fetch OIDC token for AzureKeyVault tasks (see the bug here). OIDC token is provided by OIDC token API (see controller and API specification). It turned out that in some cases request does not reach the server (ECONNRESET or similar) which leads to the exception on the build agent side, but retry mechanism is missing for these cases. This PR introduces such logic and refactors ApplicationTokenCredentials.initOIDCToken to async/await style function.

@onetocny onetocny requested review from manolerazvan and a team as code owners February 13, 2024 19:13
@onetocny onetocny merged commit 3822b8a into main Feb 14, 2024
5 checks passed
@onetocny onetocny deleted the users/onetocny/retry_fetch_oidc branch February 14, 2024 09:35
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.

2 participants