Repository navigation
Remove dn-bot-dnceng-artifact-feeds-rw PAT from vault-config - #17079
Conversation
There was a problem hiding this comment.
Pull request overview
This PR updates the EngKeyVault secret-manager configuration to stop managing/rotating the dn-bot-dnceng-artifact-feeds-rw Azure DevOps PAT, aligning with the stated migration to WIF-backed authentication.
Changes:
- Removes the
dn-bot-dnceng-artifact-feeds-rwsecret entry from.vault-config/product-builds-engkeyvault.yaml.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
missymessa
left a comment
There was a problem hiding this comment.
Re: Copilot review comment on duplicate-feed.ps1
This script is an ad-hoc manual utility (not referenced by any pipeline or automation). Its -UseKeyVault\ codepath is a convenience shortcut — callers can always pass -AzDOPat\ directly instead.
More importantly, once this PAT is gone, feed duplication should use \NuGetAuthenticate\ or an Entra-based token rather than a PAT at all. The script itself is a candidate for removal/update as a follow-up, but it should not block the vault-config cleanup.
Dismissing as low-risk — this is a rarely-used manual script with an alternative code path.
c3f0e42 to
932391d
Compare
932391d to
3ec4663
Compare
| #AzureDevOps-Artifact-Feeds-Pats | ||
| dn-bot-dnceng-artifact-feeds-rw: | ||
| type: azure-devops-access-token | ||
| parameters: | ||
| domainAccountName: dn-bot | ||
| domainAccountSecret: | ||
| location: helixkv | ||
| name: dn-bot-account-redmond | ||
| name: dn-bot-dnceng-artifact-feeds | ||
| organizations: dnceng | ||
| scopes: packaging_write | ||
|
|
||
| dn-bot-all-orgs-artifact-feeds-rw: | ||
| type: azure-devops-access-token |
This PAT has been migrated to the WIF-backed 'dnceng-artifacts-feeds-read' service connection (managed identity). The legacyCredential references have been removed from Arcade templates (PRs dotnet#16920, dotnet#16921) and propagated to all major consuming repos. The variable has also been removed from the AzureDevOps-Artifact-Feeds-Pats variable group in DevDiv. Work item: AB#10143
3ec4663 to
ae0adc8
Compare
mmitche
left a comment
There was a problem hiding this comment.
Can you confirm that there's no lingering secret usage in servicing branches?
Servicing branch statusChecked all three release branches:
release/10.0 issuePR #16921 was merged on June 30 but the commit (\848aca53) is no longer an ancestor of current Impact assessment
RecommendationI'll re-submit the legacyCredential removal to PR for 10.0: #17081 |
|
This broke the VMR authentication pre-step. See the FR channel. Gonna react to this via dotnet/dotnet#7686 |
|
This also broke msbuild which was in the middle of upgrading from Arcade 10 to main. We had to react to it via dotnet/msbuild@82b927b. I expect other repositories will be impacted as well which will eventually update to latest Arcade. Some guidance / communication might be appropriate here. |
Summary
Removes the \dn-bot-dnceng-artifact-feeds-rw\ PAT entry from the EngKeyVault vault-config. This PAT has been fully migrated to the WIF-backed \dnceng-artifacts-feeds-read\ service connection (managed identity \dncengmiexperiment-identity).
Migration Complete
What This Does
Tells the secret-manager pipeline to stop managing/rotating this PAT. The secret will naturally expire in Key Vault.
Fixes AB#10143