Skip to content

PAT Migration: dn-bot-dnceng-public-build-r (telemetry)#6489

Open
missymessa wants to merge 12 commits intomainfrom
missymessa-10138
Open

PAT Migration: dn-bot-dnceng-public-build-r (telemetry)#6489
missymessa wants to merge 12 commits intomainfrom
missymessa-10138

Conversation

@missymessa
Copy link
Copy Markdown
Member

Work Item

AB#10138 — PAT Migration: dn-bot-dnceng-public-build-r

Summary

Migrates the \dn-bot-dnceng-public-build-r\ PAT to Entra bearer tokens using the same telemetry-service-identity Managed Identity already deployed for AB#10137 (dnceng org).

Code Changes (4 modified + 1 updated)

Configuration:

  • settings.json — Removed \AccessToken\ vault reference from \dnceng-public\ settings (MI will be used instead)
  • settings.Staging.json — Added \AzureDevOpsSettings.dnceng-public.ManagedIdentityClientId\ = \c05abe9e-b183-4c19-a7c3-6512f976548f\
  • settings.Production.json — Added \AzureDevOpsSettings.dnceng-public.ManagedIdentityClientId\ = \13eb78dc-2e79-4ae1-afbf-f95c5b1d2a4c\

Secret Manager:

  • telemetry-secrets.yaml — Deprecated \dn-bot-dnceng-public-build-r\ (changed to \ ype: text\ with deprecation notice)

Tests:

  • TelemetryManagedIdentityTests.cs — Added \ManagedIdentity_CanListBuilds_FromDncengPublic\ post-deployment test

Azure Resources Provisioned (out-of-repo)

Azure DevOps Organization Access (\dnceng-public):

MI AzDO Descriptor Group
Prod \�adsp.MWU5YjE1ZWMtYjI5Ni03ZDI5LTk4OTktMzA1ZDA2OGFlNTU0\ [public] Readers
Int \�adsp.ODkwMGUzYjktZTE1YS03NGVlLTlhNzAtMTY1YmQwOTFkMDI3\ [public] Readers

Both MIs were added as service principals in the \dnceng-public\ Azure DevOps organization and granted Readers scope on the \public\ project.

Post-Merge Cleanup

After validating the MI works in production:

  1. Delete the deprecated \dn-bot-dnceng-public-build-r\ entry from \ elemetry-secrets.yaml\
  2. Remove the corresponding PAT secrets from Key Vaults (\TelemetryServiceStaging, \TelemetryServiceLocal, \TelemetryServiceProd)
  3. Revoke the \dn-bot-dnceng-public-build-r\ PAT from the \dn-bot\ Azure DevOps account

missymessa and others added 8 commits March 18, 2026 09:07
Migrate dnceng-public build-read PAT to the same telemetry-service-identity
Managed Identity already used for dnceng (AB#10137).

Changes:
- settings.json: Remove AccessToken reference for dnceng-public
- settings.Staging.json: Add ManagedIdentityClientId for dnceng-public
- settings.Production.json: Add ManagedIdentityClientId for dnceng-public
- telemetry-secrets.yaml: Deprecate dn-bot-dnceng-public-build-r
- TelemetryManagedIdentityTests: Add dnceng-public/public post-deployment test

Infrastructure (out-of-repo):
- Added telemetry-service-identity MIs as service principals in dnceng-public org
- Granted [public] Readers access to both prod and int MIs
Main had the dn-bot-dnceng-build-r entry removed (PR #6488), which shifted
lines and conflicted with our deprecation comment block for
dn-bot-dnceng-public-build-r. Keep our deprecation as intended.
Fully delete the dn-bot-dnceng-public-build-r entry and its manifest file
instead of deprecating to type:text, per secret-manager tooling rules.
missymessa and others added 3 commits April 3, 2026 09:07
The shared/telemetry-secrets.yaml was deleted (its only entry was the
dn-bot-dnceng-public-build-r PAT). The vault configs still referenced
it via importSecretsFrom, causing the Verify Secret Usages build step
to fail with 'Could not find file'.
mmitche
mmitche previously approved these changes Apr 7, 2026
…edIdentityClientId

Address review feedback: the 'placeholder-activates-bearer-path' string
was not a valid client ID and didn't actually activate the bearer token
path (UseManagedIdentity must be true for that). Use UseManagedIdentity
= true, matching the other two tests.
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