Repository navigation
[release/11.0] Restore server-side GitHub App signing - #17803
missymessa merged 4 commits into
Conversation
Co-authored-by: Copilot <[email protected]> Copilot-Session: e6793769-8620-4b12-9a94-206a0db5e467
There was a problem hiding this comment.
🔵 Needs a closer look
The required protected internal canary remains outstanding, so human validation must confirm that configured RSA keys match active GitHub App keys and that all WIF and promotion identities can sign before merge.
No open issues 🎉
What changed in this PR
Restores server-side Key Vault signing for GitHub App authentication in Arcade’s shared tooling. Build agents submit only JWT digests for signing, keeping private keys in Key Vault while retaining short-lived installation tokens and no PAT fallback.
Changes:
- Replaces private-key secret retrieval and local signing with Key Vault RSA signing, and rejects empty installation tokens.
- Restores the
KeyName/AppClientIdcontract across the shared helper, token template, OneLoc job, and promotion caller. - Adds nine focused Pester regression cases and updates migration, permissions, and key-rotation documentation.
Protected internal canary validation remains pending, as noted in the PR description.
| File | Description |
|---|---|
| eng/validation/Get-GitHubAppToken.Tests.ps1 | Adds mocked coverage for signing, pagination, failure handling, and token masking. |
| eng/validate-promotion.yml | Switches promotion authentication to App ID and signing-key parameters. |
| eng/common/Get-GitHubAppToken.ps1 | Restores digest-only Key Vault signing and adds empty-token validation. |
| eng/common/core-templates/steps/get-github-app-token.yml | Exposes and forwards the restored signing parameters. |
| eng/common/core-templates/job/onelocbuild.yml | Restores OneLoc App Client ID and signing-key defaults. |
| Documentation/OneLocBuildGitHubApp.md | Documents remote signing, caller migration, permissions, rotation, and canary requirements. |
| Documentation/OneLocBuild.md | Updates OneLoc authentication parameters and migration guidance. |
Review effort: Balanced
Co-authored-by: Copilot <[email protected]> Copilot-Session: e6793769-8620-4b12-9a94-206a0db5e467
There was a problem hiding this comment.
🔵 Needs a closer look
Protected canaries have not run, leaving WIF App-ID read and RSA Sign permissions, active GitHub keys, and successful installation-token minting unverified and requiring human validation.
No open issues 🎉
Review effort: Balanced
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 <[email protected]> Copilot-Session: 8f29c08e-f8a7-4acf-9ce1-2db3460d9cc5
There was a problem hiding this comment.
🔵 Needs a closer look
Human confirmation is needed that protected validation covers this release branch’s WIF read/Sign permissions and active GitHub key registration, since the upstream canary does not establish release-pipeline readiness.
No open issues 🎉
Review effort: Balanced
There was a problem hiding this comment.
🔵 Needs a closer look
The canary validated helper authentication but not release/11 OneLoc or Promotion template compilation or full workflows, leaving production-signing integration readiness for maintainer review.
No open issues 🎉
Review effort: Balanced
Intent
Backport the corrected GitHub App remote-signing helper from #17801 to release/11.0. Keep WIF and short-lived installation tokens, read the configured App-ID secret projection for the JWT issuer, and sign only the SHA-256 digest through Azure Key Vault's RSA Sign operation.
The identifier contract is
appIdSecretName/AppIdSecretName(GitHubAppIdSecretNamefor OneLoc).keyNameselects the RSA signing key; the private-key secret is never retrieved and there is no PEM/local-signing or PAT fallback.Scope and decisions
Updates the helper, token step, OneLoc job defaults, OneLoc documentation and the Promotion validation caller (
eng/validate-promotion.yml), which again uses its configured App-ID projection and RSA signing key.Get-GitHubAppToken.ps1andsteps/get-github-app-token.ymlare byte-identical to merged main. Generated downstream copies must receive this through normal Arcade dependency flow.App-ID retrieval uses
az rest --query valueto avoid Azure CLI's Windows deserialization failure on year-9999 secret expiry metadata. This PR does not change live credentials, keys, RBAC, pipeline definitions or deployments.Validation
ae809d7aac4daa26517de96d3abdae15fbf330ee(3 exact Git blobs verified). Both OneLoc and Promotion used WIF, read their App-ID projections, signed via Key Vault, verified read-only access (dotnet/vscode-csharpanddotnet/arcaderespectively), and revoked their installation tokens. Temporary canary authorizations were restored afterward.onelocbuild.ymlorvalidate-promotion.yml, or run a full OneLoc publishing or Promotion workflow.Gates before merging
Obtain the required review and keep required CI and policy checks green.
Downstream prerequisites
Tracking: https://dev.azure.com/dnceng/internal/_workitems/edit/12467
Main change: #17801