| 1 | --- |
| 2 | type: decision |
| 3 | id: dcr-b87f6e8 |
| 4 | status: decided |
| 5 | title: "Identity is a governed registry: possession-proving keys, boundary-grounded grants, first-class expiry" |
| 6 | created: 2026-08-06 |
| 7 | source: design conversation, 2026-08-06 |
| 8 | --- |
| 9 | |
| 10 | # Identity is a governed registry |
| 11 | |
| 12 | An instance's identities are a governed registry: one declared CUE document in the instance |
| 13 | repository, changed only through the integration path. A principal — a named actor the instance |
| 14 | grants something to: a human, a machine, a service — is an entry in that document, holding a name, |
| 15 | one or more keys, its grants, and where the kind warrants it an expiry. Keys prove possession, every |
| 16 | grant is grounded in an enforcement boundary that checks it, and expiry is a first-class property of |
| 17 | an entry. This node sits beside [[dcr-f41f718]] |
| 18 | ([dcr-f41f718-declared-verification-policy.md](./dcr-f41f718-declared-verification-policy.md)) as a |
| 19 | sibling: the same schema-versus-instance split and the same floor machinery, applied to who may act. |
| 20 | |
| 21 | ## The registry |
| 22 | |
| 23 | Granting, rotating, and revoking are ordinary changes — reviewed, landed, visible in history. |
| 24 | Registry changes are a path class in the sense of [[dcr-f41f718]] |
| 25 | ([dcr-f41f718-declared-verification-policy.md](./dcr-f41f718-declared-verification-policy.md)): a |
| 26 | named set of paths carrying required checks, and for this class the required checks include human |
| 27 | approval ([[ida-b7025b5]] |
| 28 | ([ida-b7025b5-human-decisions-are-signed-acts.md](../ideas/ida-b7025b5-human-decisions-are-signed-acts.md))). |
| 29 | |
| 30 | An entry, illustratively — the schema itself arrives with the first compiler, below: |
| 31 | |
| 32 | ```cue |
| 33 | principals: "runner-03": { |
| 34 | kind: "machine" |
| 35 | keys: [{ |
| 36 | class: "ssh" |
| 37 | bound: "host" |
| 38 | public: "ssh-ed25519 AAAA…" |
| 39 | }] |
| 40 | grants: fetch: { |
| 41 | boundary: "qinling-push" |
| 42 | streams: ["the-valley"] |
| 43 | } |
| 44 | expires: "2026-09-01" |
| 45 | } |
| 46 | ``` |
| 47 | |
| 48 | An agent run holds no entry. A run acts under authority delegated from a principal ([[ida-a8243d2]] |
| 49 | ([ida-a8243d2-agent-runs-act-under-delegated-authority.md](../ideas/ida-a8243d2-agent-runs-act-under-delegated-authority.md))) |
| 50 | and is named by its provenance ([[ida-45178f6]] |
| 51 | ([ida-45178f6-agent-identity-is-provenance.md](../ideas/ida-45178f6-agent-identity-is-provenance.md))); |
| 52 | the registry holds the top of that chain, never its links. |
| 53 | |
| 54 | ## The boundary rule |
| 55 | |
| 56 | A grant is a named permission. An enforcement boundary is the point in the running system that |
| 57 | refuses an action when the grant is absent — the SSH server deciding whether a key may push, the bus |
| 58 | deciding whether a connection may publish. A grant may exist only where an enforcement boundary |
| 59 | checks it, and each grant names its boundary. The schema grows a capability when its gate ships, |
| 60 | never before. The test: if removing a name from the schema breaks no enforcement point, it was |
| 61 | ontology and never belonged. |
| 62 | |
| 63 | Roles are not schema. A deployment may define named grant bundles and groups as instance content — |
| 64 | templates a registry embeds, compiled to what gates check — and the substrate never requires a role |
| 65 | name. |
| 66 | |
| 67 | The one structural requirement is the genesis entry: created at instance birth, the anchor later |
| 68 | boundaries verify against, holding governance of the registry's own stream. |
| 69 | |
| 70 | ## Groups, bundles, and the floor |
| 71 | |
| 72 | A grant bundle is a named set of grants; a group is a named set of members. Both are |
| 73 | instance-defined, and both compile into the same gate-checked artifacts as any entry. A grant's |
| 74 | scope is its stream list: the streams of the instance it covers. The floor — the substrate's |
| 75 | mandatory minimum over every instance registry, the counterpart of [[dcr-f41f718]]'s |
| 76 | ([dcr-f41f718-declared-verification-policy.md](./dcr-f41f718-declared-verification-policy.md)) |
| 77 | instance floor over project policy — mandates properties, never names: external principals carry |
| 78 | expiry, and no external principal holds registry governance. |
| 79 | |
| 80 | ## External identity is cited, not minted |
| 81 | |
| 82 | An external collaborator's entry references an identity the person already controls — a domain |
| 83 | handle or a decentralized identifier — verified at onboarding and re-verifiable by anyone. The |
| 84 | registry decides what that identity may do here; it never becomes the person's identity. This is the |
| 85 | shape that the open cross-group identity mapping of [[ida-8482624]] |
| 86 | ([ida-8482624-federation-groups.md](../ideas/ida-8482624-federation-groups.md)) slots into. |
| 87 | |
| 88 | ## Web authentication is a registry key class |
| 89 | |
| 90 | A passkey is an asymmetric, hardware-bound, presence-proving credential: a key pair whose private |
| 91 | half lives in hardware the person holds and signs only on a physical gesture, with the browser |
| 92 | supplying the ceremony. It is the same class of credential as a hardware SSH key. The registry holds |
| 93 | a passkey like any key; a web surface ([[ida-23aa413]] |
| 94 | ([ida-23aa413-project-surfaces-are-derived-views.md](../ideas/ida-23aa413-project-surfaces-are-derived-views.md))) |
| 95 | authenticates by assertion — the hardware signing a fresh challenge — against the registry, and |
| 96 | issues a short session. There is no username or password store anywhere. |
| 97 | |
| 98 | A presence assertion whose challenge is the digest of a statement is a hardware signature over that |
| 99 | statement. That is the candidate mechanism for the human approval gate ([[ida-b7025b5]] |
| 100 | ([ida-b7025b5-human-decisions-are-signed-acts.md](../ideas/ida-b7025b5-human-decisions-are-signed-acts.md))); |
| 101 | its envelope binding is deliberately open. |
| 102 | |
| 103 | ## Long-lived credentials prove possession |
| 104 | |
| 105 | A bearer secret is a credential that authenticates whoever presents it — a token or password whose |
| 106 | possession is the entire proof, copyable without trace. Bearer secrets are rejected. Long-lived |
| 107 | credentials are asymmetric and bound — to hardware for humans, to a host for machines. They prove |
| 108 | possession: the private half never travels, and authentication is a signature only its holder could |
| 109 | produce. |
| 110 | |
| 111 | Machines hold no stored long-lived secrets beyond their bound keys. The direction for machine access |
| 112 | is short-lived certificates derived from registry entries, issued per instance; that issuance |
| 113 | service is deliberately deferred. For now machine and service entries carry their raw keys with |
| 114 | mandatory expiry, and expiry is enforced at compilation: the step that renders the registry into |
| 115 | gate artifacts refuses expired entries, so access ends at the first convergence after expiry. |
| 116 | Revocation is the default, not an act of hygiene — this resolves [[bd-8a591dc]] |
| 117 | ([bd-8a591dc-machine-credentials-never-expire.md](../bugs/bd-8a591dc-machine-credentials-never-expire.md)). |
| 118 | |
| 119 | Bearer secrets the transition still requires are inventoried in the registry as liabilities with |
| 120 | expiry, so they stay visible and lintable until their platforms are exited. |
| 121 | |
| 122 | ## No identity provider at the root |
| 123 | |
| 124 | The registry is the root of identity for the instance. An external identity platform — outsourced or |
| 125 | self-hosted — would reintroduce the account authority the registry replaces. Where an integration |
| 126 | someday demands such a protocol, it can be a facade compiled from the registry, never the source. |
| 127 | |
| 128 | ## The staged path: qinling first |
| 129 | |
| 130 | The first enforcement compilation is the existing push boundary: the registry renders the host's |
| 131 | authorized keys, replacing the hand-maintained list. That begins the service split of [[bd-500adf7]] |
| 132 | ([bd-500adf7-bus-shares-git-user.md](../bugs/bd-500adf7-bus-shares-git-user.md)) and makes expiry |
| 133 | real. Bus credentials compile from the same entries when the authentication of [[bd-d853d9c]] |
| 134 | ([bd-d853d9c-bus-unauthenticated.md](../bugs/bd-d853d9c-bus-unauthenticated.md)) ships, per the |
| 135 | namespace [[dcr-62ecc36]] ([dcr-62ecc36-signal-contracts.md](./dcr-62ecc36-signal-contracts.md)) |
| 136 | carved. The schema and worked example arrive with that first compiler, deliberately not before. |
| 137 | |
| 138 | ## Open |
| 139 | |
| 140 | - The certificate issuance service: its design, and what authenticates an issuance request — the |
| 141 | tailnet composition. |
| 142 | - The presence-assertion envelope for approvals, and how it composes with the signatures of the note |
| 143 | format ([[dcr-de9d996]] |
| 144 | ([dcr-de9d996-statement-text-and-signed-note.md](./dcr-de9d996-statement-text-and-signed-note.md))). |
| 145 | - Re-rooting after a genesis-key compromise. |
| 146 | - What a dispatch authorization names, and its signature — the top of the delegation chain |
| 147 | ([[ida-a8243d2]] |
| 148 | ([ida-a8243d2-agent-runs-act-under-delegated-authority.md](../ideas/ida-a8243d2-agent-runs-act-under-delegated-authority.md))) |
| 149 | as a first-class signed act; discussed, not settled. |
| 150 | |
| 151 | ## Related |
| 152 | |
| 153 | - [[dcr-f41f718]] |
| 154 | ([dcr-f41f718-declared-verification-policy.md](./dcr-f41f718-declared-verification-policy.md)) — |
| 155 | the sibling decision: the same declared-in-CUE, floor-plus-instance machinery, over verification |
| 156 | policy. |
| 157 | - [[ida-b7025b5]] |
| 158 | ([ida-b7025b5-human-decisions-are-signed-acts.md](../ideas/ida-b7025b5-human-decisions-are-signed-acts.md)) |
| 159 | — the human approval registry changes gate on, and the act a presence assertion carries. |
| 160 | - [[ida-a8243d2]] |
| 161 | ([ida-a8243d2-agent-runs-act-under-delegated-authority.md](../ideas/ida-a8243d2-agent-runs-act-under-delegated-authority.md)) |
| 162 | and [[ida-45178f6]] |
| 163 | ([ida-45178f6-agent-identity-is-provenance.md](../ideas/ida-45178f6-agent-identity-is-provenance.md)) |
| 164 | — agent runs hold no entry; the registry names the chain's top. |
| 165 | - [[ida-8482624]] ([ida-8482624-federation-groups.md](../ideas/ida-8482624-federation-groups.md)) — |
| 166 | the group-instance binding the registry lives inside, and the cross-group identity mapping this |
| 167 | gives a shape to. |
| 168 | - [[ida-23aa413]] |
| 169 | ([ida-23aa413-project-surfaces-are-derived-views.md](../ideas/ida-23aa413-project-surfaces-are-derived-views.md)) |
| 170 | — the web surface that authenticates against the registry. |
| 171 | - [[dcr-62ecc36]] ([dcr-62ecc36-signal-contracts.md](./dcr-62ecc36-signal-contracts.md)) — the bus |
| 172 | subject namespace registry-compiled credentials fill. |
| 173 | - [[bd-8a591dc]] |
| 174 | ([bd-8a591dc-machine-credentials-never-expire.md](../bugs/bd-8a591dc-machine-credentials-never-expire.md)), |
| 175 | [[bd-500adf7]] ([bd-500adf7-bus-shares-git-user.md](../bugs/bd-500adf7-bus-shares-git-user.md)), |
| 176 | [[bd-d853d9c]] ([bd-d853d9c-bus-unauthenticated.md](../bugs/bd-d853d9c-bus-unauthenticated.md)) — |
| 177 | the credential bugs this resolves, begins, and serves. |