Release key ceremonyDraft
This page is a draft of the procedure the maintainer follows to create the project's release trust anchors. It describes steps that have not been run yet; no command here has been exercised on the real keys. The roles and what each key signs are in Release key roles.
Rules#
- The ceremony runs on a machine that is offline: no network interface up, not inside a git working tree, with removable
media for the output. The helper scripts in
tools/release/ceremony/refuse to run otherwise. - Private keys are created on the offline machine and never leave it. Only public halves are copied out and committed (for
example to
keys-public/). No private key, passphrase or token goes into the repository, CI secrets as files, logs or chat. - The maintainer's own development or "own keys" set is a separate set. It is never used for a public release, and CI refuses inputs signed with it.
1. Offline root#
Create an Ed25519 root key with a passphrase and make two encrypted copies on separate media held only by the maintainer:
tools/release/ceremony/mkroot.sh /media/ceremony/keys # root, a second copy, and a plain Ed25519 release key
The script creates the output directory (it never overwrites one), asks for the passphrases and prints the root fingerprint.
The public half of root is pinned in the bootstrap as the cert-authority key. Record its fingerprint (ssh-keygen -l -f root.pub)
in the release notes and the README.
2. Release key and its certificate#
The release key type is decided by an open item: a FIDO2 sk-ssh-ed25519 key if stock macOS verifies sk- signatures with
ssh-keygen -Y verify, otherwise a plain Ed25519 key. Create it, then certify it with the root for 90 days and the principal
openboot-release:
ssh-keygen -t ed25519-sk -O resident -f release # FIDO2 variant; then run mkroot.sh with CEREMONY_NO_RELEASE=1
tools/release/ceremony/certify.sh root release.pub 90
tools/release/sign.sh refuses a key without a user certificate that carries the principal openboot-release.
3. Secure Boot and driver CA keys#
New keys, separate from the root and from each other: the Secure Boot PK, KEK and db, and the driver / image CA that signs the Windows driver packages and the code-integrity policy. Generate them on the offline machine:
tools/release/ceremony/mksb.sh /media/ceremony/secureboot
Each *.key file is passphrase-protected; keep them with the root copies. Only pk.cer, kek.cer, db.cer and drvca.cer
are exported, with tools/release/ceremony/export-public.sh <ceremony-dir> <out>, which copies public files only and refuses
anything that contains private key material. They feed OB_SECUREBOOT_CERT_DIR for public firmware builds
(see docs/secure-boot-certs.md).
4. Signing a release offline#
For each release the maintainer, on the offline machine:
- Verifies the sha256 of every input listed in the release inputs lock against the CI build output and the local rebuild.
- Signs the public boot-object package and the code-integrity policy with the driver CA key (see
tools/release/ceremony/sign-driver-offline.md) and records their digests and the signer fingerprint in the lock. - Signs the release manifest with
tools/release/sign-release.sh <release-key> manifest.json <ci-SHA256SUMS> <local-SHA256SUMS> <local-out-dir>, which refuses unless the local rebuild equals the CI build (see Release workflow). - Copies the signed files and the public keys to removable media; nothing private is on that media.
tools/release/verify.sh and the installer bootstrap verify the manifest against the pinned root before anything is unpacked.
Rotation and compromise#
See Release key roles. A release key certificate expires after 90 days and is reissued by the root; a compromised
root means a new bootstrap with a new pin and a raised release_seq.
Open items#
- Release key type (FIDO2 or plain Ed25519): depends on the macOS verification check.
- The helper scripts are tested only with throwaway keys (
tests/installer_host/test_ceremony.sh); the interactive passphrase path and the FIDO2 path have not been run. - Nobody has run this ceremony; fingerprints are not published.