Skip to content

Add Copilot requests token broker with workflow policy and Key Vault credentials - #20007

Merged
mnkiefer merged 3 commits into
mainfrom
copilot/update-go-server-token-broker-service
Oct 31, 2026
Merged

mnkiefer merged 3 commits into
mainfrom
copilot/update-go-server-token-broker-service

Conversation

Copilot AI commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

Add a Go token broker that uses an organization-installed GitHub App to issue Copilot inference credentials. Authorize workflows through cao.json and retrieve App private keys from Azure Key Vault; Copilot tasks remain unsupported.

  • Exchange: Add /api/token-broker for gh-aw’s copilot-request protocol, using GitHub Actions OIDC authentication and least-privilege copilot_requests: read installation tokens.
  • Authorization: Pin immutable owner/repository IDs and exact workflow references and revisions. Use signed check_run_id for job-scoped invalidation; deny PR, reusable-workflow and environment-based execution.
  • Credentials: Read private keys through Azure managed identity. Validate installation ownership, permissions, repository scope and token expiry.
  • Lifecycle: Bound request sizes, deadlines, issuance rates and encrypted credential state. Revoke tokens on job cleanup and graceful shutdown.
  • Configuration: Update policy validation, TypeSpec/OpenAPI and operator documentation. Default to disabled with an empty workflow allowlist.

Initial deployment boundary: One explicitly acknowledged HTTPS process replica. Revocation state is volatile; crashes can leave issued tokens usable until expiry, capped at one hour. Live Copilot integration requires operator acceptance.

Copilot AI and others added 2 commits October 31, 2026 00:25
…credentials

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title Add organization Copilot requests token broker with Key Vault-backed App credentials Add Copilot requests token broker with workflow policy and Key Vault credentials Oct 31, 2026
Copilot AI requested a review from pelikhan October 31, 2026 00:32
@pelikhan pelikhan closed this Oct 31, 2026
@pelikhan pelikhan reopened this Oct 31, 2026
@mnkiefer
mnkiefer marked this pull request as ready for review October 31, 2026 10:03
@mnkiefer
mnkiefer self-requested a review as a code owner October 31, 2026 10:03
@mnkiefer
mnkiefer merged commit 90b69b2 into main Oct 31, 2026
39 checks passed
@mnkiefer
mnkiefer deleted the copilot/update-go-server-token-broker-service branch October 31, 2026 11:09
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