| 1 | --- |
| 2 | type: idea |
| 3 | id: ida-a0e5d03 |
| 4 | status: raw |
| 5 | title: "Choose how multiple GitHub mirrors authenticate" |
| 6 | created: 2026-07-31 |
| 7 | source: cosmo readiness analysis, 2026-07-31 |
| 8 | --- |
| 9 | |
| 10 | # Choose how multiple GitHub mirrors authenticate |
| 11 | |
| 12 | Mirroring several projects to GitHub requires a credential arrangement that works across those |
| 13 | repositories. The current mirror declaration lists URLs and leaves credentials to the host. |
| 14 | |
| 15 | The deployment uses a repository deploy key for the-valley's mirror. That key cannot simply be |
| 16 | registered as the deploy key for another GitHub repository. The migration needs a deliberate choice |
| 17 | before adding a mirror that depends on it. |
| 18 | |
| 19 | ## Options |
| 20 | |
| 21 | Per-repository keys can use SSH host aliases to select the correct key for each mirror URL. This |
| 22 | limits each credential to one repository. It also creates host configuration that must stay |
| 23 | consistent with the mirror declarations. An unresolved alias may fail only during a best-effort |
| 24 | push. |
| 25 | |
| 26 | A machine account can use one credential across the repositories granted to that account. This |
| 27 | simplifies key routing and rotation, but creates another account to operate and a credential with |
| 28 | access to several repositories. |
| 29 | |
| 30 | ## Declaration boundary |
| 31 | |
| 32 | A mirror could name a credential identity that the installer resolves. Such a name would not contain |
| 33 | the secret, but it would extend the domain model into an area currently owned by deployment |
| 34 | configuration. |
| 35 | |
| 36 | Alternatively, the installer could continue selecting credentials from the mirror URL. That |
| 37 | preserves the current split but prevents the mirror declaration alone from establishing that |
| 38 | authentication is configured. |
| 39 | |
| 40 | [[dcr-0f5d9b1]](../decisions/dcr-0f5d9b1-cue-config-host-module.md) defines the schema and |
| 41 | host-integration boundary. This node records the choice without settling it. |
| 42 | |
| 43 | [[oc-87deec8]](../outcomes/oc-87deec8-valley-can-host-cosmo.md) tracks the migration dependency. Any |
| 44 | resulting machine credential also needs the expiry and revocation treatment described in |
| 45 | [[bd-8a591dc]](../bugs/bd-8a591dc-machine-credentials-never-expire.md). |