gunk-dev/the-valley

ida-a0e5d03-second-mirror-identity.md

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