Repository navigation
Commit de3b55c
feat(hub): add Copilot connection administration (#232)
## Why
Hub needs one deployment-level Copilot connection that administrators
can verify and control without storing the operator's token. The rebuilt
Hub retained the page but did not have real APIs, durable state, fresh
authorization, or audit behavior behind it.
## What changes
Administrators can inspect, connect, recheck, and disconnect Copilot
through `/settings/copilot`. Each change requires explicit confirmation
and fresh authorization through the current GitHub, Entra, or local
session provider.
Hub checks `REPLICA_COPILOT_TOKEN` through the Copilot SDK, stores only
its digest and connection provenance, and rejects stale overlapping
changes. Losing the connector's final effective administrator source
disconnects the connection in the same authority transaction. No rebuilt
Hub product feature consumes the connection yet.
## Storybook screenshots
**Hub/Pages/Security/Copilot / Not Connected — dark theme, 1280×720**

**Hub/Pages/Security/Copilot / No Token — dark theme, 1280×720**

**Hub/Pages/Security/Copilot / Connected — dark theme, 1280×720**

**Hub/Pages/Security/Copilot / Refused — dark theme, 1280×720**

**Hub/Pages/Security/Copilot / Access Removed — dark theme, 1280×720**


---------
Co-authored-by: Ben Thomas <bentho@Bens-MacBook-Pro.local>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>1 parent a072eec commit de3b55c
78 files changed
Lines changed: 2336 additions & 658 deletions
File tree
- hub
- client/application/hub
- copilot-connection-contracts
- requests
- cancel-copilot-authorization
- change-copilot-connection
- continue-copilot-authorization
- get-copilot-authorization
- start-copilot-authorization
- routes
- settings-copilot-authorization
- settings-copilot
- docs
- schema
- migrations
- 20261112170000_copilot_connection
- 20261112170100_copilot_connection_state
- server
- create-app
- domains
- administrator-authorization
- run-administrator-authorization-verification-transaction
- verify-administrator-authorization
- administrator-management
- create-administrator-management-repositories
- designate-hub-administrators
- revoke-hub-administrator-with-repositories
- revoke-hub-administrator
- run-administrator-management-transaction
- admission
- admit-authentication-proof
- apply-provider-assignment-evidence
- run-admission-transaction
- copilot-connection
- connect-copilot
- continue-copilot-authorization
- disconnect-copilot
- identity
- reconcile-authentication-providers
- run-provider-revision-transaction
- repositories
- copilot-connection-state
- disconnect-copilot-connection-for-membership
- disconnect-copilot-connection-without-effective-administrator
- security-audits
- create-security-audit
- parse-security-audit-event
- sensitive-authorizations
- cancel-sensitive-authorization
- claim-copilot-authorization-check
- continue-copilot-sensitive-authorization
- create-sensitive-authorization
- finish-copilot-authorization-check
- finish-copilot-authorization-with-failure
- get-sensitive-authorization-audit-data
- get-sensitive-authorization
- lock-sensitive-authorization
- verify-sensitive-authorization
- routes
- api
- auth
- callback/get
- create-authentication-route-dependencies
- copilot-connection
- authorizations
- cancel/post
- continue/post
- get
- start/post
- connect/post
- create-copilot-connection-route-dependencies
- disconnect/delete
- security-audits/present-security-audit
- run-api
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
0 commit comments