PAT Migration: dn-bot-dnceng-build-r-code-r-project-r-profile-r (dotneteng-status)#6490
Open
missymessa wants to merge 1 commit intomainfrom
Open
PAT Migration: dn-bot-dnceng-build-r-code-r-project-r-profile-r (dotneteng-status)#6490missymessa wants to merge 1 commit intomainfrom
missymessa wants to merge 1 commit intomainfrom
Conversation
…eteng-status) AB#10136 Migrate the build-monitor/dnceng PAT to dotneteng-status-identity Managed Identity for Entra bearer-token authentication. Changes: - settings.json: Remove AccessToken vault reference from build-monitor/dnceng - settings.Staging.json: Add ManagedIdentityClientId for build-monitor/dnceng - settings.Production.json: Add ManagedIdentityClientId for build-monitor/dnceng - dotneteng-status-secrets.yaml: Deprecate dn-bot-dnceng-build-r-code-r-project-r-profile-r Infrastructure (out-of-repo): - Created dotneteng-status-identity MI in monitoring RG (both subscriptions) - Assigned MI to dotneteng-status / dotneteng-status-staging App Services - Added both MIs as service principals in dnceng AzDO org - Granted [internal] Readers access to both prod and staging MIs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Work Item
AB#10136 - PAT Migration: dn-bot-dnceng-build-r-code-r-project-r-profile-r
Summary
Migrates the \dn-bot-dnceng-build-r-code-r-project-r-profile-r\ PAT used by the dotneteng-status web app (build monitor) to Entra bearer-token authentication using a new dotneteng-status-identity Managed Identity.
Code Changes (4 files)
Configuration:
Secret Manager:
Azure Resources Provisioned (out-of-repo)
Managed Identities Created:
App Service MI Assignments:
Azure DevOps Organization Access (\dnceng):
How It Works
The \AzureDevOpsClient\ already supports MI-based auth — when \ManagedIdentityClientId\ is set and \AccessToken\ is absent, it uses \ManagedIdentityCredential\ to acquire Entra bearer tokens for Azure DevOps. The existing \AzureDevOpsClient.PostDeploymentTests\ validate this code path.
Post-Merge Cleanup
After validating the MI works in production: