gunk-dev/the-valley

registry.cue

source70805f590deemain's published tip history
4.0 KiB
1// The worked identity registry: the gunk-dev instance as it stands, written
2// against schema/identity.cue. The compiler renders it into
3// ../compiled/, which is what the enforcement boundaries read — so this
4// pair is the schema's evidence, and the golden case of the identity-e2e
5// check.
6//
7// The keys are the real published ones. Nothing here is a secret: a
8// registry holds public halves only, which is why it is an ordinary
9// document in the instance repository rather than a provisioned file.
10package identity
11
12boundaries: {
13 // The host serving the instance's repositories. sshd is the gate: a key
14 // in the compiled authorized_keys may push, and one that is not there
15 // cannot reach the repositories at all.
16 "classic-laddie-push": kind: "git-push"
17
18 // The integration path that admits a change to this document.
19 "registry": kind: "registry"
20
21 // The same host's pre-receive hook, deciding who may write an
22 // integration request. A key it does not find among the holders cannot
23 // file one.
24 "classic-laddie-request": kind: "request"
25}
26
27genesis: "patrick"
28
29principals: {
30 // The operator. Five keys across four machines, and the signing name
31 // varies per key rather than per entry: two keys on makers-mark sign
32 // under that machine's attestations name, the plain key on
33 // classic-laddie signs under the operator's own name, and the two that
34 // sign nothing push and never attest. The operator files integration
35 // requests, so the entry holds request beside push.
36 "patrick": {
37 kind: "human"
38 keys: [
39 { // makers-mark, ubuntu
40 class: "ssh-ed25519"
41 bound: "host"
42 public: "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILc8u2oEFD+sn9vmX0gEbf62V4fmHGSvu10ENPkci3Yd"
43 signs: "makers-mark/attestations"
44 },
45 { // makers-mark, nixos
46 class: "ssh-ed25519"
47 bound: "host"
48 public: "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIG8B2eVhu/TpXZPyOt/6w0ELdtO6X6cTiWz3CvofxDCR"
49 signs: "makers-mark/attestations"
50 },
51 { // classic-laddie
52 class: "ssh-ed25519"
53 bound: "host"
54 public: "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGCxVUxXoyFYV40QureqqSMSA17CvK9IrFB33BA6UOip"
55 signs: "patrick"
56 },
57 { // cloud-ssh
58 class: "ssh-ed25519"
59 bound: "host"
60 public: "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHo0Oc728AfV2EMn30DhTWSqdWhmY8xR6np/qf6U7xvn"
61 },
62 { // weller
63 class: "ssh-ed25519"
64 bound: "host"
65 public: "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICkzfSlbK9YX3KztdvtgfyJelixdI6QN3c41eme9HOWv"
66 },
67 ]
68 grants: {
69 push: boundary: "classic-laddie-push"
70 request: boundary: "classic-laddie-request"
71 govern: boundary: "registry"
72 }
73 }
74
75 // A scratch machine: it clones and pushes topic branches, files no
76 // request, decrypts nothing, and holds its raw key until the
77 // certificate issuance service exists. Hence the expiry, which is what
78 // makes the compilation a revocation already scheduled (bd-8a591dc).
79 "stoned-flynn": {
80 kind: "machine"
81 keys: [{
82 class: "ssh-ed25519"
83 bound: "host"
84 public: "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAvpmbUKEDVsejgv2vxWaY/t4xl0JNnjFswb9SxcG9GG"
85 }]
86 grants: push: boundary: "classic-laddie-push"
87 expires: "2026-10-01"
88 }
89
90 // The host itself, signing the execution claims `attest run` produces on
91 // it. It pushes nowhere, so it holds no grant — and it is still in the
92 // compiled known-signers, because that artifact is every
93 // attestation-capable key rather than the holders of some grant.
94 "classic-laddie": {
95 kind: "machine"
96 keys: [{
97 class: "ssh-ed25519"
98 bound: "host"
99 public: "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIE7/mipW9wcQwVlDmEqBZksGDO3BEG94gb6VBuyDJUgk"
100 signs: "classic-laddie/attestations"
101 }]
102 expires: "2027-06-01"
103 }
104
105 // The integrator, signing its transfer statements under its own name.
106 // No push grant: it reaches the repositories through the git group on
107 // the host, not through sshd.
108 "integrator": {
109 kind: "service"
110 keys: [{
111 class: "ssh-ed25519"
112 bound: "host"
113 public: "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINyd1zTLxcPuMDojZpjOdUxGj6AYl6RP7yiWb3Cd/fOQ"
114 signs: "integrator"
115 }]
116 expires: "2027-06-01"
117 }
118}