| 1 | --- |
| 2 | type: decision |
| 3 | id: dcr-2f03be3 |
| 4 | status: superseded |
| 5 | title: Hosts serve groups; groups on a shared host are strongly isolated |
| 6 | created: 2026-08-22 |
| 7 | source: design conversation, 2026-08-22 |
| 8 | --- |
| 9 | |
| 10 | # Hosts serve groups; groups on a shared host are strongly isolated |
| 11 | |
| 12 | **Decided 2026-08-22**; the current decision about hosts and the units they serve is [[dcr-9b5da04]] |
| 13 | ([dcr-9b5da04-hosts-serve-isolated-valleys.md](./dcr-9b5da04-hosts-serve-isolated-valleys.md)). |
| 14 | |
| 15 | A host is shared infrastructure. Host and group stand in an N : M relation, and the two directions |
| 16 | are not equally near: a host serving several groups is present intent and is what the machinery is |
| 17 | built for, while a group spanning several hosts is unprecluded and deferred. Replication stays |
| 18 | backup-depth until a rung of the ladder asks for more ([[dcr-d7952bc]] |
| 19 | ([dcr-d7952bc-phase0-replication-github-transitional.md](./dcr-d7952bc-phase0-replication-github-transitional.md))). |
| 20 | Every project has exactly one owning group, which is the group whose floor and registry govern it. |
| 21 | |
| 22 | ## Strong isolation between groups on a host |
| 23 | |
| 24 | Two groups on one host are separated as strongly as the mechanisms allow. As long as git access over |
| 25 | ssh rides the unix user model, the users are per group: each group has its own push user, and that |
| 26 | user's `authorized_keys` is compiled from that group's registry alone. No compiled artifact is ever |
| 27 | a union across groups, so a group's blast radius is its own user. The ssh user is the group selector |
| 28 | — it is what a clone URL names to reach one group's repositories rather than another's. Repositories |
| 29 | and service state split per group on the same principle, and the service split of [[bd-500adf7]] |
| 30 | ([bd-500adf7-bus-shares-git-user.md](../bugs/bd-500adf7-bus-shares-git-user.md)) extends group-wise: |
| 31 | what earns a user of its own earns one per group. |
| 32 | |
| 33 | Cross-group event visibility is not a default. How the bus provides group scoping — one bus per |
| 34 | group, or one bus with authenticated group-scoped subjects — is open |
| 35 | ([openquestions.md](../../design/openquestions.md)). |
| 36 | |
| 37 | ## An identity may belong to several groups |
| 38 | |
| 39 | The same person, machine, or service may act in more than one group. Each group's registry cites the |
| 40 | identity's keys independently and decides for itself what they may do there. Nothing is minted once |
| 41 | and shared: this is the cited-not-minted shape of [[dcr-b87f6e8]] |
| 42 | ([dcr-b87f6e8-identity-is-a-governed-registry.md](./dcr-b87f6e8-identity-is-a-governed-registry.md)), |
| 43 | applied between groups on one host rather than across an organizational boundary. |
| 44 | |
| 45 | ## One integrator principal per group |
| 46 | |
| 47 | Each group's registry declares one integrator principal, and every controller the group runs signs |
| 48 | as it. Controllers are processes, not identities — a group with many protected projects runs many |
| 49 | controllers under one principal. A principal already holds several keys, so a group whose |
| 50 | controllers run on more than one host needs nothing new. |
| 51 | |
| 52 | ## Registry compilation refuses to orphan governance |
| 53 | |
| 54 | A registry state that leaves no non-expired key holding governance of the registry's own stream is |
| 55 | invalid, and compilation refuses to render it. An invalid render never touches the last-good |
| 56 | artifacts, so a group cannot lock itself out of its own governance by landing a change whose only |
| 57 | effect is arrived at later, when the last governing key expires. |
| 58 | |
| 59 | ## The host declaration, and what isolation is not |
| 60 | |
| 61 | The host declaration is content in the repository of the group that owns the host: a host is |
| 62 | declared by a group, like any other thing a group is responsible for. |
| 63 | |
| 64 | Isolation is between peer groups, not from the group that owns the host. Root on the host sees |
| 65 | everything on it, and no arrangement of unix users changes that. A group that requires independence |
| 66 | from the owner of the machine it runs on wants federation ([[ida-8482624]] |
| 67 | ([ida-8482624-federation-groups.md](../ideas/ida-8482624-federation-groups.md))) — its own host, |
| 68 | peered — and that is the eventual answer, not a stronger separation within one machine. |
| 69 | |
| 70 | ## Open |
| 71 | |
| 72 | - The bus's group scoping, gated on bus authentication ([[bd-d853d9c]] |
| 73 | ([bd-d853d9c-bus-unauthenticated.md](../bugs/bd-d853d9c-bus-unauthenticated.md))). |
| 74 | - Per-group user naming and filesystem layout, and which services beyond the push boundary split per |
| 75 | group. The isolation principle answers the last of those in the affirmative; the mechanics are |
| 76 | designed when the second group on a host arrives. |
| 77 | |
| 78 | ## Related |
| 79 | |
| 80 | - [[dcr-0e9278a]] ([dcr-0e9278a-group-is-the-unit.md](./dcr-0e9278a-group-is-the-unit.md)) — the |
| 81 | unit this decision is about. |
| 82 | - [[dcr-b87f6e8]] |
| 83 | ([dcr-b87f6e8-identity-is-a-governed-registry.md](./dcr-b87f6e8-identity-is-a-governed-registry.md)) |
| 84 | — the registry each group's push boundary compiles from. |
| 85 | - [[bd-500adf7]] ([bd-500adf7-bus-shares-git-user.md](../bugs/bd-500adf7-bus-shares-git-user.md)) — |
| 86 | the service split this extends group-wise. |
| 87 | - [[ida-8482624]] ([ida-8482624-federation-groups.md](../ideas/ida-8482624-federation-groups.md)) — |
| 88 | the layer above, and where a group that wants independence from a host owner goes. |