| 1 | # Test data for the identity compiler |
| 2 | |
| 3 | These files are test vectors. Nothing here belongs in a registry. |
| 4 | |
| 5 | ## The-valley operator's approval key |
| 6 | |
| 7 | `valley-approve.*`, `yubico-f9.pem` and `spike.*` are the-valley operator's own approval key: a |
| 8 | YubiKey Ed25519 key in PIV slot 9c, the certificates the YubiKey wrote for it, and a text it signed. |
| 9 | They are public. They are here because only a real device's chain verifies to Yubico Attestation |
| 10 | Root 1, and the compiler's tests need one that does. |
| 11 | |
| 12 | Never enroll this key in any other registry. Enrolling it would grant the-valley operator's YubiKey |
| 13 | approval rights there. |
| 14 | |
| 15 | - `valley-approve.pub` and `valley-approve.pub.pem`: the public key, in SSH and PKIX form. |
| 16 | - `valley-approve.attest.pem`: the slot certificate. |
| 17 | - `yubico-f9.pem`: the device's f9 certificate. |
| 18 | - `valley-approve.report`: what the compiler reports for the attestation. |
| 19 | - `spike.txt` and `spike.sig.b64`: a 2075-byte text and the key's signature over it, made with a |
| 20 | touch. |
| 21 | - `compiled/`: the approval signers files the identity-e2e check compiles from this key. |
| 22 | |
| 23 | ## The example chain |
| 24 | |
| 25 | `example-root.pem`, `example-f9.pem` and `example-slot.pem` are the attestation in |
| 26 | [examples/identity/attested/](../../examples/identity/attested/registry.cue). They chain to a |
| 27 | test-only root, "the-valley example attestation root, not Yubico", and to nothing Yubico signed. The |
| 28 | compiler refuses them under its pinned Yubico roots, and its tests check that they verify under this |
| 29 | test-only root alone. |