| 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. |
| 10 | package identity |
| 11 | |
| 12 | boundaries: { |
| 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 | |
| 22 | genesis: "patrick" |
| 23 | |
| 24 | principals: { |
| 25 | // The operator. Five keys across four machines, and the signing name |
| 26 | // varies per key rather than per entry: two keys on makers-mark sign |
| 27 | // under that machine's attestations name, the plain key on |
| 28 | // classic-laddie signs under the operator's own name, and the two that |
| 29 | // sign nothing push and never attest. |
| 30 | "patrick": { |
| 31 | kind: "human" |
| 32 | keys: [ |
| 33 | { // makers-mark, ubuntu |
| 34 | class: "ssh-ed25519" |
| 35 | bound: "host" |
| 36 | public: "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILc8u2oEFD+sn9vmX0gEbf62V4fmHGSvu10ENPkci3Yd" |
| 37 | signs: "makers-mark/attestations" |
| 38 | }, |
| 39 | { // makers-mark, nixos |
| 40 | class: "ssh-ed25519" |
| 41 | bound: "host" |
| 42 | public: "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIG8B2eVhu/TpXZPyOt/6w0ELdtO6X6cTiWz3CvofxDCR" |
| 43 | signs: "makers-mark/attestations" |
| 44 | }, |
| 45 | { // classic-laddie |
| 46 | class: "ssh-ed25519" |
| 47 | bound: "host" |
| 48 | public: "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGCxVUxXoyFYV40QureqqSMSA17CvK9IrFB33BA6UOip" |
| 49 | signs: "patrick" |
| 50 | }, |
| 51 | { // cloud-ssh |
| 52 | class: "ssh-ed25519" |
| 53 | bound: "host" |
| 54 | public: "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHo0Oc728AfV2EMn30DhTWSqdWhmY8xR6np/qf6U7xvn" |
| 55 | }, |
| 56 | { // weller |
| 57 | class: "ssh-ed25519" |
| 58 | bound: "host" |
| 59 | public: "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICkzfSlbK9YX3KztdvtgfyJelixdI6QN3c41eme9HOWv" |
| 60 | }, |
| 61 | ] |
| 62 | grants: { |
| 63 | push: boundary: "classic-laddie-push" |
| 64 | govern: boundary: "registry" |
| 65 | } |
| 66 | } |
| 67 | |
| 68 | // A scratch machine: it clones and pushes, decrypts nothing, and holds |
| 69 | // its raw key until the certificate issuance service exists. Hence the |
| 70 | // expiry, which is what makes the compilation a revocation already |
| 71 | // scheduled (bd-8a591dc). |
| 72 | "stoned-flynn": { |
| 73 | kind: "machine" |
| 74 | keys: [{ |
| 75 | class: "ssh-ed25519" |
| 76 | bound: "host" |
| 77 | public: "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAvpmbUKEDVsejgv2vxWaY/t4xl0JNnjFswb9SxcG9GG" |
| 78 | }] |
| 79 | grants: push: boundary: "classic-laddie-push" |
| 80 | expires: "2026-10-01" |
| 81 | } |
| 82 | |
| 83 | // The host itself, signing the execution claims `attest run` produces on |
| 84 | // it. It pushes nowhere, so it holds no grant — and it is still in the |
| 85 | // compiled known-signers, because that artifact is every |
| 86 | // attestation-capable key rather than the holders of some grant. |
| 87 | "classic-laddie": { |
| 88 | kind: "machine" |
| 89 | keys: [{ |
| 90 | class: "ssh-ed25519" |
| 91 | bound: "host" |
| 92 | public: "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIE7/mipW9wcQwVlDmEqBZksGDO3BEG94gb6VBuyDJUgk" |
| 93 | signs: "classic-laddie/attestations" |
| 94 | }] |
| 95 | expires: "2027-06-01" |
| 96 | } |
| 97 | |
| 98 | // The integrator, signing its transfer statements under its own name. |
| 99 | // No push grant: it reaches the repositories through the git group on |
| 100 | // the host, not through sshd. |
| 101 | "integrator": { |
| 102 | kind: "service" |
| 103 | keys: [{ |
| 104 | class: "ssh-ed25519" |
| 105 | bound: "host" |
| 106 | public: "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINyd1zTLxcPuMDojZpjOdUxGj6AYl6RP7yiWb3Cd/fOQ" |
| 107 | signs: "integrator" |
| 108 | }] |
| 109 | expires: "2027-06-01" |
| 110 | } |
| 111 | } |