Replace PAT with WIF service connection for VS insertion (v2)#19703
Open
missymessa wants to merge 1 commit into
Open
Replace PAT with WIF service connection for VS insertion (v2)#19703missymessa wants to merge 1 commit into
missymessa wants to merge 1 commit into
Conversation
- Remove DotNet-VSTS-Infra-Access variable group reference - Add AzureCLI@2 step to acquire bearer token via dnceng-fsharp-vs-insertion-wif SC - Set InsertAccessToken as secret pipeline variable from WIF-acquired token - Disable GCM credential store to prevent 0x6f7 errors with oversized Entra JWTs
Contributor
✅ No release notes required |
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.
Summary
Re-apply the VS insertion pipeline migration from the
dn-bot-devdiv-build-rw-code-rw-release-rwPAT to thednceng-fsharp-vs-insertion-wifEntra Workload Identity Federation (WIF) service connection.This is a v2 of #19683, which was reverted. This version adds a GCM credential-store fix.
Changes
DotNet-VSTS-Infra-Accessvariable group reference (no longer needed)InsertAccessTokenvariable that pulled from the PAT secretAzureCLI@2step that authenticates via the WIF service connection and acquires a bearer token for Azure DevOpsInsertAccessTokenas a secret pipeline variable from the WIF-acquired tokenMicroBuildInsertVsPayload@5to prevent0x6f7errors caused by Entra JWT tokens exceeding the Windows Credential Store size limitContext
This is part of the dnceng PAT-to-Entra migration (WI 10091). The 1ES PAT disable policy requires all non-packaging PATs to be migrated to Entra-based credentials.
The replacement service connection
dnceng-fsharp-vs-insertion-wifuses:dnceng-fsharp-vs-insertion-wif(appId:bf297404-7399-4e71-ac5f-f9be7bca6904)84a9d9d1-ab12-4359-a544-0ac10c2934fd)What changed since v1 (#19683)
git config --global credential.helper ""step before the insertion task to prevent thefatal: Failed to write item to store. [0x6f7]error and ~8-minute clone delay caused by GCM trying to cache the oversized Entra JWTValidation
Post-merge: monitor the first insertion build to confirm
AzureCLI@2authenticates successfully, git operations complete without GCM delays, andMicroBuildInsertVsPayload@5creates the VS insertion PR.