Skip to content

Add Roslyn PR tagger GitHub App secret - #17783

Merged
missymessa merged 2 commits into
dotnet:mainfrom
missymessa:users/mjanecke/wi12159-roslyn-issue-tagger-app
Nov 10, 2026
Merged

missymessa merged 2 commits into
dotnet:mainfrom
missymessa:users/mjanecke/wi12159-roslyn-issue-tagger-app

Conversation

@missymessa

Copy link
Copy Markdown
Member

Summary

  • Declare the dotnet-roslyn-issue-tagger GitHub App secret in the EngKeyVault manifest for Secret Manager projections.
  • App ID: 5701303; its registered permissions are Issues: write and Metadata: read, with webhooks disabled.

Validation

  • Parsed the manifest YAML and verified the declaration requests only a private key, with no webhook or OAuth secret.
  • git diff --check passes.

Follow-up before rollout

  • Initialize the Secret Manager projections after this declaration is reviewed/merged.
  • Install the app on dotnet with only roslyn and fsharp selected.
  • Grant the PR tagger WIF identity secret-scoped Key Vault read access.

Related: dnceng/internal work item 12159. Draft: requires human review before merge.

Co-authored-by: Copilot <[email protected]>

Copilot-Session: d26282b8-9273-4e0e-84d9-c1998140bef1
Copilot AI balanced review requested due to automatic review settings November 10, 2026 18:44

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.

🔵 Needs a closer look

Human review is required to verify the privileged GitHub App’s identity, permissions, repository installation scope, and secret-scoped WIF access, which the manifest alone cannot establish.

No open issues 🎉

What changed in this PR

Adds the Roslyn issue-tagger GitHub App secret declaration to the EngKeyVault manifest for Secret Manager projections. Projection initialization, app installation, and access grants remain rollout follow-ups.

Changes:

  • Declares dotnet-roslyn-issue-tagger as a github-app-secret.
  • Requests only a private key, with webhook and OAuth secrets disabled.
File Description
.vault-config/​product-builds-engkeyvault.yaml Adds the issue-tagger app’s private-key-only secret declaration.

Review effort: Balanced

@missymessa
missymessa marked this pull request as ready for review November 10, 2026 19:09
@missymessa
missymessa requested review from garath and mmitche and a balanced review from Copilot November 10, 2026 19: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.

🔵 Needs a closer look

Human owner review is required before merge to verify the external GitHub App identity, permissions and repository scope, Secret Manager projections, and secret-scoped WIF access that the manifest alone cannot establish.

No open issues 🎉

Review effort: Balanced

@missymessa
missymessa enabled auto-merge (squash) November 10, 2026 19:19
@missymessa
missymessa merged commit 305558e into dotnet:main Nov 10, 2026
10 of 12 checks passed
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 12.0-preview1 milestone Nov 11, 2026
akhera99 pushed a commit to dotnet/roslyn that referenced this pull request Nov 11, 2026
## Summary
- Replace the PR tagger PAT input with a short-lived installation token
for `dotnet Roslyn Issue Tagger` (App ID 5701303).
- Check out the repository for the shared Arcade script, and use `@self`
so the token template resolves correctly beneath the external 1ES
extends template.
- Keep the existing PAT mapping unchanged until the actual tagger
succeeds with the App token.

## Provisioning verified
- Secret Manager manifest merged:
dotnet/arcade#17783.
- Initialized App credential projections in EngKeyVault through Secret
Manager, including rotation metadata.
- Existing `Roslyn PRTagger: DevDiv` WIF principal has Secrets User only
on the two exact App credential secret scopes; no vault-wide grant.
- Stored credentials authenticate as the expected App, with Issues write
and Metadata read.
- Installation 180677353 contains exactly `dotnet/roslyn` and
`dotnet/fsharp`; installation-token issue searches passed on both.
Temporary token revoked; local key copy removed.
- Ownership transfer to `dotnet` is requested but still pending
acceptance; current owner remains `dotnet-bot`.

## Validation
- YAML parsing, required-template-parameter/path assertions,
checkout/token-binding checks and `git diff --check` pass.
- Actual consumer pipeline 1333 dry-run compilation with this PR YAML
succeeds and includes token minting and tagger tasks. The dry run does
not execute the tagger.
- Isolated WIF canary
[3132307](https://dev.azure.com/dnceng/internal/_build/results?buildId=3132307)
**succeeded**: actual tagger WIF identity -> both exact Key Vault secret
scopes -> shared Arcade helper -> installation token -> exact repository
scope and successful issue searches on both repositories. Token revoked
afterward. No issues created or changed.
- Canary compilation caught the missing `@self` qualifier; corrected in
e827602.

## Remaining gates
Keep this PR draft pending human review and explicit production rollout
authorization. Full tagger execution/issue creation is not yet
validated. No production pipeline run or merge was performed. After an
explicitly authorized rollout, verify the actual consumer succeeds
before removing the PAT mapping or revoking the PAT; first confirm no
remaining consumers.

Related: https://dev.azure.com/dnceng/internal/_workitems/edit/12159.

Canary cleanup verified: scratch repository deleted, pipeline 1722
disabled, and scratch endpoint/agent-queue authorizations revoked.
Successful run retained as evidence.
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