docs
Key custody
Which keys live on which machine, and what stays after the first canary.
Serinus separates four key roles. Do not put them all on one public host.
| Role | Machine | Stays there? |
|---|---|---|
| Root key | offline / trusted ceremony host | No. Keep offline; use only for rotation. |
| Epoch key | signer machine | Yes, for the epoch lifetime. Avoid the public web host. |
| Log key + Tessera note key | log/service host | Yes. The log needs them continuously. |
| Mirror key | mirror builder | Yes, for the mirror lifetime. |
First setup
- Run
serinus initon an offline/trusted host. It creates the root and first epoch key. - Move
epoch.key,epoch.pub.json,key-cert.json,config.json, androot.pub.jsonto the signer. - Keep
root.keyoffline. - On the service host, run
serinus log keygen. Keeplog.key,tessera-note.key, and the note vkey there. - Generate the mirror key where you build the mirror.
- Generate
trusted_roots.jsonand browsertrust.jsonfrom the public keys; copy those to the index/web/mirror.
The first canary changes nothing
The first canary is just the first statement. It does not mean the log keys can be removed. The log key and note key must stay on the log host. Only the root key should be absent from the public host.
Rotation
To rotate an epoch key:
- Bring the root key back to the offline ceremony host.
- Generate a new epoch key and root-signed certificate.
- Move the new epoch key/cert to the signer.
- Publish a rotation statement signed by the old epoch key.
- Return the root key offline.
Log and mirror keys rotate separately; publish the new public keys in the trust pins and rebuild the index/web/mirror.