gunk-dev/the-valley

dcr-b87f6e8-identity-is-a-governed-registry.md

source3705a182e12bmain's published tip history
10.0 KiB · Rendered
1---
2type: decision
3id: dcr-b87f6e8
4status: decided
5title: "Identity is a governed registry: possession-proving keys, boundary-grounded grants, first-class expiry"
6created: 2026-08-06
7source: design conversation, 2026-08-06
8---
9
10# Identity is a governed registry
11
12An instance's identities are a governed registry: one declared CUE document in the instance
13repository, changed only through the integration path. A principal — a named actor the instance
14grants something to: a human, a machine, a service — is an entry in that document, holding a name,
15one or more keys, its grants, and where the kind warrants it an expiry. Keys prove possession, every
16grant is grounded in an enforcement boundary that checks it, and expiry is a first-class property of
17an entry. This node sits beside [[dcr-f41f718]]
18([dcr-f41f718-declared-verification-policy.md](./dcr-f41f718-declared-verification-policy.md)) as a
19sibling: the same schema-versus-instance split and the same floor machinery, applied to who may act.
20
21## The registry
22
23Granting, rotating, and revoking are ordinary changes — reviewed, landed, visible in history.
24Registry 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
26named set of paths carrying required checks, and for this class the required checks include human
27approval ([[ida-b7025b5]]
28([ida-b7025b5-human-decisions-are-signed-acts.md](../ideas/ida-b7025b5-human-decisions-are-signed-acts.md))).
29
30An entry, illustratively — the schema itself arrives with the first compiler, below:
31
32```cue
33principals: "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
48An 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)))
50and is named by its provenance ([[ida-45178f6]]
51([ida-45178f6-agent-identity-is-provenance.md](../ideas/ida-45178f6-agent-identity-is-provenance.md)));
52the registry holds the top of that chain, never its links.
53
54## The boundary rule
55
56A grant is a named permission. An enforcement boundary is the point in the running system that
57refuses an action when the grant is absent — the SSH server deciding whether a key may push, the bus
58deciding whether a connection may publish. A grant may exist only where an enforcement boundary
59checks it, and each grant names its boundary. The schema grows a capability when its gate ships,
60never before. The test: if removing a name from the schema breaks no enforcement point, it was
61ontology and never belonged.
62
63Roles are not schema. A deployment may define named grant bundles and groups as instance content —
64templates a registry embeds, compiled to what gates check — and the substrate never requires a role
65name.
66
67The one structural requirement is the genesis entry: created at instance birth, the anchor later
68boundaries verify against, holding governance of the registry's own stream.
69
70## Groups, bundles, and the floor
71
72A grant bundle is a named set of grants; a group is a named set of members. Both are
73instance-defined, and both compile into the same gate-checked artifacts as any entry. A grant's
74scope is its stream list: the streams of the instance it covers. The floor — the substrate's
75mandatory minimum over every instance registry, the counterpart of [[dcr-f41f718]]'s
76([dcr-f41f718-declared-verification-policy.md](./dcr-f41f718-declared-verification-policy.md))
77instance floor over project policy — mandates properties, never names: external principals carry
78expiry, and no external principal holds registry governance.
79
80## External identity is cited, not minted
81
82An external collaborator's entry references an identity the person already controls — a domain
83handle or a decentralized identifier — verified at onboarding and re-verifiable by anyone. The
84registry decides what that identity may do here; it never becomes the person's identity. This is the
85shape 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
90A passkey is an asymmetric, hardware-bound, presence-proving credential: a key pair whose private
91half lives in hardware the person holds and signs only on a physical gesture, with the browser
92supplying the ceremony. It is the same class of credential as a hardware SSH key. The registry holds
93a 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)))
95authenticates by assertion — the hardware signing a fresh challenge — against the registry, and
96issues a short session. There is no username or password store anywhere.
97
98A presence assertion whose challenge is the digest of a statement is a hardware signature over that
99statement. 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)));
101its envelope binding is deliberately open.
102
103## Long-lived credentials prove possession
104
105A bearer secret is a credential that authenticates whoever presents it — a token or password whose
106possession is the entire proof, copyable without trace. Bearer secrets are rejected. Long-lived
107credentials are asymmetric and bound — to hardware for humans, to a host for machines. They prove
108possession: the private half never travels, and authentication is a signature only its holder could
109produce.
110
111Machines hold no stored long-lived secrets beyond their bound keys. The direction for machine access
112is short-lived certificates derived from registry entries, issued per instance; that issuance
113service is deliberately deferred. For now machine and service entries carry their raw keys with
114mandatory expiry, and expiry is enforced at compilation: the step that renders the registry into
115gate artifacts refuses expired entries, so access ends at the first convergence after expiry.
116Revocation 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
119Bearer secrets the transition still requires are inventoried in the registry as liabilities with
120expiry, so they stay visible and lintable until their platforms are exited.
121
122## No identity provider at the root
123
124The registry is the root of identity for the instance. An external identity platform — outsourced or
125self-hosted — would reintroduce the account authority the registry replaces. Where an integration
126someday demands such a protocol, it can be a facade compiled from the registry, never the source.
127
128## The staged path: qinling first
129
130The first enforcement compilation is the existing push boundary: the registry renders the host's
131authorized 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
133real. 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
135namespace [[dcr-62ecc36]] ([dcr-62ecc36-signal-contracts.md](./dcr-62ecc36-signal-contracts.md))
136carved. 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.