Skip to content

Keyless Build Promotion publishing (re-apply #17185) — gated on null-guard deploy - #17189

Merged
missymessa merged 1 commit into
dotnet:mainfrom
missymessa:keyless-publish-only
Jul 28, 2026
Merged

missymessa merged 1 commit into
dotnet:mainfrom
missymessa:keyless-publish-only

Conversation

@missymessa

Copy link
Copy Markdown
Member

Keyless Build Promotion publishing (re-apply #17185)

Removes AzureDevOpsFeedsKey and the enable-cross-org-publishing.ps1 -token step from eng/publishing/v3/publish.yml. Publishing runs under the maestro-build-promotion federated identity (Entra/WIF) instead of the dn-bot-all-orgs-artifact-feeds-rw PAT.

This re-applies #17185, which was reverted by #17186 after it broke production Build Promotion.

⚠️ DO NOT MERGE until the null-guard task is deployed to Build Promotion

The publishing task ships in the arcade SDK pinned by global.json. Keyless publishing is only safe once the fixed task (null-guard from the companion PR) is the version Build Promotion actually runs. Required order:

  1. Revert #17185: restore AzureDevOpsFeedsKey (task NREs on null FeedKeys, breaking prod promotions) #17186 (revert) merged — prod unblocked. ✅
  2. Null-guard PR merged (companion PR).
  3. New arcade SDK built with the fix; global.json bumped so Build Promotion consumes it.
  4. Only then merge this PR.

Merging this before the fixed task is live will reproduce the #17185 regression. Kept as draft until the gate above is satisfied.

Context

Copilot AI review requested due to automatic review settings July 24, 2026 22:52

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.

Copilot wasn't able to review any files in this pull request.


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

Copilot AI review requested due to automatic review settings July 27, 2026 23:54
@missymessa
missymessa force-pushed the keyless-publish-only branch from 840ff1c to ab970e8 Compare July 27, 2026 23:54

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 1 out of 1 changed files in this pull request and generated no new comments.

@missymessa
missymessa marked this pull request as ready for review July 27, 2026 23:59
@missymessa

Copy link
Copy Markdown
Member Author

Keyless publishing validation — evidence

Before merging, I ran a controlled validation of this keyless publish.yml against the real Build Promotion pipeline (def 750, Maestro Build Promotion), off this branch (keyless-publish-only), now rebased onto main so it builds against the null-guarded Arcade SDK (11.0.0-beta.26377.1, which contains the SetupTargetFeedConfigV3 null-feedKeys guard from #17188).

Validation build: dnceng/internal build 3032979

  • Source branch: refs/heads/keyless-publish-only (confirmed Checkout dotnet-arcade@keyless-publish-only)
  • Promoted: BAR 324595 (arcade's own null-guard build) → channel 2 (.NET Eng - Latest)
  • Result: partiallySucceeded

What it proves:

  • ✅ The "Publish packages, blobs and symbols" task succeeded with 0 Error(s).
  • ✅ The task successfully built the full target-feed config (dotnet-eng + Azure storage containers) — this is the exact code path (SetupTargetFeedConfigV3 with null feedKeys) that previously threw an ArgumentNullException when publishing keyless. No NRE.
  • ✅ No 401/403/Unauthorized, and no missing-AzureDevOpsFeedsKey error — the task ran keyless without the removed dn-bot-all-orgs-artifact-feeds-rw PAT.
  • ✅ All publish targets resolved to dnceng-org feeds (dnceng/public + dnceng/internal). There are no cross-org publish targets in PublishingConstants, so the removed enable-cross-org-publishing.ps1 step + AzureDevOpsFeedsKey were supplying cross-org credentials this pipeline doesn't need. NuGetAuthenticate@1 (retained) covers same-org dnceng feeds via the pipeline identity.

The partiallySucceeded is benign: the only warning was Build validation audit failure for production channel 2. This is currently treated as a warning. — not an auth/publish failure.

Caveat (full transparency): BAR 324595 was already on channel 2, so this run almost certainly did not push net-new packages — it authenticated and evaluated the feeds without error, but a brand-new authenticated upload will only be definitively confirmed on the first real post-merge promotion of a fresh build. I'll monitor that first promotion after merge.

Context / rollout

@missymessa
missymessa enabled auto-merge (squash) July 28, 2026 14:05
@missymessa
missymessa requested a review from mmitche July 28, 2026 14:05
@missymessa
missymessa merged commit 2257f1d into dotnet:main Jul 28, 2026
10 checks passed
@missymessa
missymessa deleted the keyless-publish-only branch July 28, 2026 18:18
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 11.0-rc1 milestone Jul 29, 2026
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.

3 participants