Skip to content

Remove dn-bot-dnceng-artifact-feeds-rw PAT from vault-config - #17079

Merged
missymessa merged 1 commit into
dotnet:mainfrom
missymessa:remove-dnceng-artifact-feeds-rw-pat
Jul 8, 2026
Merged

missymessa merged 1 commit into
dotnet:mainfrom
missymessa:remove-dnceng-artifact-feeds-rw-pat

Conversation

@missymessa

Copy link
Copy Markdown
Member

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

Copilot AI review requested due to automatic review settings July 7, 2026 20:50

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-rw secret entry from .vault-config/product-builds-engkeyvault.yaml.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@missymessa missymessa left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@missymessa
missymessa force-pushed the remove-dnceng-artifact-feeds-rw-pat branch from c3f0e42 to 932391d Compare July 7, 2026 20:58
Copilot AI review requested due to automatic review settings July 7, 2026 21:09
@missymessa
missymessa force-pushed the remove-dnceng-artifact-feeds-rw-pat branch from 932391d to 3ec4663 Compare July 7, 2026 21:09

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

Comment on lines 48 to 50
#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
@missymessa
missymessa force-pushed the remove-dnceng-artifact-feeds-rw-pat branch from 3ec4663 to ae0adc8 Compare July 7, 2026 21:13

@mmitche mmitche left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you confirm that there's no lingering secret usage in servicing branches?

@missymessa

missymessa commented Jul 8, 2026 •

Copy link
Copy Markdown
Member Author

Servicing branch status

Checked all three release branches:

Branch vault-config entry Template \legacyCredential\ usage
release/8.0 Present None — templates don't pass legacyCredential
release/9.0 Present None — templates don't pass legacyCredential
release/10.0 Present Still present in \publish-build-assets.yml\ and \post-build.yml\

release/10.0 issue

PR #16921 was merged on June 30 but the commit (\848aca53) is no longer an ancestor of current
elease/10.0\ — it was lost to a subsequent branch reset (likely the v4 publishing backport #16696). The \legacyCredential: \ lines are back.

Impact assessment

  • release/8.0 and release/9.0: Safe. No template references to this PAT, so builds use the modern WIF/NuGetAuthenticate path regardless.
  • release/10.0: The templates still reference the variable. However, since the variable was removed from the \AzureDevOps-Artifact-Feeds-Pats\ VG yesterday, it resolves to empty at runtime, which causes the \�nable-internal-sources.yml\ template to fall through to the WIF service connection path anyway (the NuGetAuthenticate task ignores empty \�xternalFeedCredentials).
  • vault-config entries on release branches: These are inert — the secret-manager pipeline only runs against \main.

Recommendation

I'll re-submit the legacyCredential removal to
elease/10.0\ to keep things clean. But functionally, there's no breakage — the empty variable falls through to the working WIF path.

PR for 10.0: #17081

@ViktorHofer

Copy link
Copy Markdown
Member

This broke the VMR authentication pre-step. See the FR channel. Gonna react to this via dotnet/dotnet#7686

@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 11.0-preview7 milestone Jul 13, 2026
@ViktorHofer

Copy link
Copy Markdown
Member

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.

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.

5 participants