Skip to content

[prerelease] Keep GitHub App private keys in Key Vault - #9979

Closed
missymessa wants to merge 3 commits into
dotnet:prereleasefrom
missymessa:users/mjanecke/12467-keyvault-signing-prerelease
Closed

missymessa wants to merge 3 commits into
dotnet:prereleasefrom
missymessa:users/mjanecke/12467-keyvault-signing-prerelease

Conversation

@missymessa

@missymessa missymessa commented Nov 12, 2026 •

Copy link
Copy Markdown
Member

Intent

Keep GitHub App private keys in Key Vault while the prerelease localization and release pipelines use workload identity federation and short-lived installation tokens. The standalone helper reads the configured App-ID secret and asks Key Vault to sign the JWT digest; it never retrieves the private key and has no local PEM-signing or PAT fallback. The helper uses az rest --query value to avoid Azure CLI secret deserialization failures on year-9999 expiry metadata.

The callers use the configured identifier contract (appIdSecretName / AppIdSecretName; GitHubAppIdSecretName for OneLoc) rather than hardcoded App IDs. This servicing branch retains its standalone helper and existing checkout behavior.

Validation

  • Current-head CI build 1688794 passed 32/32 checks on 9bc328ceb3901ad99a27d1be97137428a19456f4.
  • 14/14 focused mocked tests passed against the updated helper at 9bc328ceb. The changed YAML and embedded PowerShell scripts parsed successfully, and the complete diff passed git diff --check; this was not Azure DevOps template compilation.
  • Key Vault metadata confirms dotnet-vscode-csharp-release-tags-app-key is present, enabled, and RSA. Related release test-mode run 3140987 validated signing with this key and minted a dotnet installation token, but it did not execute this PR's standalone helper.
  • The protected Arcade canary 3140008 is upstream evidence only, not an exact-head run of this PR.

Remaining gates

  • User review and required human reviews.
  • Protected validation of this PR's prerelease localization and release authentication paths using their intended WIF/App configuration, without publishing.
  • Merge Arcade #17820, which declares the ReleaseTags signing key in the Secret Manager manifest; it is still open.

Tracking: https://dev.azure.com/dnceng/internal/_workitems/edit/12467

missymessa and others added 3 commits November 12, 2026 10:10
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: e6793769-8620-4b12-9a94-206a0db5e467
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: e6793769-8620-4b12-9a94-206a0db5e467
Use az rest for the configured App-ID projection and remove the temporary committed regression suite. Keep RSA signing in Key Vault.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 8f29c08e-f8a7-4acf-9ce1-2db3460d9cc5
@missymessa

Copy link
Copy Markdown
Member Author

Closing this in favor of #9978. That PR carries the Key Vault signing change on main; the change can flow to prerelease through the usual main-to-prerelease merge. If prerelease needs the fix before then, we can revisit this.

@missymessa missymessa closed this Nov 19, 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.

1 participant