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

Use new ADO credential type for connections over azure credentials #9058

Merged
merged 1 commit into from
Sep 26, 2024

Conversation

hallipr
Copy link
Member

@hallipr hallipr commented Sep 26, 2024

Backround workers are persistent and hold a reference to a Processor.
Processors hold VssConnections and VssConnections hold a reference to a credential. When that credential is baked around a token, the whole token -> credential -> connection -> processor -> worker chain needs to be recreated when the token expires.

We weren't doing this and the service would throw vss unauthorized exceptions when the token expired after 24 hours. Rather than reconstruct the whole chain or shim factories in the mix, we can use the preview version of the ado client libraries that support Azure Identity credentials and dynamic token requests.

@hallipr hallipr requested review from benbp and weshaggard September 26, 2024 17:46
@hallipr
Copy link
Member Author

hallipr commented Sep 26, 2024

/check-enforcer override

@hallipr hallipr merged commit 7ac9d4f into main Sep 26, 2024
8 checks passed
@hallipr hallipr deleted the users/pahallis/better-vssconnection branch September 26, 2024 18:06
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