Repository navigation
feat(artifacts): serve trusted roots by root key id - #711
Conversation
The private key for the root skilld-root-2026 is lost, so that root can
never list a new signing key, and skilld-production-2026-08 closes on
2026-11-20. skilld CLI 3.7.0 pins new roots and fetches each one by id
from /api/v1/trusted-roots/{rootKeyId}, while older CLIs keep reading
/api/v1/trusted-root.
The site verifies with the first served root and falls back to the
legacy root until ARTIFACT_TRUSTED_ROOTS_JSON is set. The ceremony tool
gains create-root, and the runbook records where each root key lives.
🤖 MERGED
GitHub merged this pull request.
42ead0fb-a3cf-4d7c-b85b-c69708b03298 Selected findings run after merge and open separate pull requests. |
There was a problem hiding this comment.
Harlan Agent Kit posted this automated review. AI open source policy.
Automated Review: BLOCKED.
There was a problem hiding this comment.
Harlan Agent Kit posted this automated review. AI open source policy.
Automated Review: BLOCKED.
There was a problem hiding this comment.
Harlan Agent Kit posted this automated review. AI open source policy.
Automated Review: BLOCKED.
The opt-in step that published roots and staged the signing secret through Actions secrets carried every remaining review blocker, and this rotation never uses it. The runbook stages both secrets with wrangler, as before, and sets the signer switch at 2026-11-19T20:00Z.
There was a problem hiding this comment.
Harlan Agent Kit posted this automated review. AI open source policy.
Automated Review: READY.
🔗 Linked issue
Signing key rotation for
skilld-production-2026-08, which closes 2026-11-20T00:00Z. No GitHub issue. Pairs with the skilld CLI 3.7.0 pull request.❓ Type of change
📚 Description
The private key for the trusted root
skilld-root-2026is lost, so that root can never list a new signing key. Every released CLI pins that root and reads it from/api/v1/trusted-root. skilld CLI 3.7.0 pins two new roots,skilld-root-2026-11andskilld-root-backup-2026-11, and fetches each one by id.This PR:
GET /api/v1/trusted-roots/{rootKeyId}from a newARTIFACT_TRUSTED_ROOTS_JSONsecret, a JSON array of roots. An unknown id answers 404.ARTIFACT_TRUSTED_ROOT_JSONwhile the new secret is unset, so the deploy order does not matter./api/v1/trusted-rootis unchanged for older CLIs.create-rootto the ceremony tool, which starts a root under a new root key with its first signing key.skilld.signing-keycheck-in at the new route.flowchart LR old["CLI 3.0.0 to 3.6.9<br/>pins skilld-root-2026"] -->|GET /api/v1/trusted-root| legacy["ARTIFACT_TRUSTED_ROOT_JSON"] new["CLI 3.7.0<br/>pins skilld-root-2026-11, then backup"] -->|"GET /api/v1/trusted-roots/{rootKeyId}"| served["ARTIFACT_TRUSTED_ROOTS_JSON"] served -->|first root| verify["site verifies attestations"] legacy -.->|until the new secret is set| verify📝 Migration
Put
ARTIFACT_TRUSTED_ROOTS_JSONbefore this deploys, so/api/v1/trusted-roots/skilld-root-2026-11answers on the first request. Both roots must passscripts/trusted-root.ts verify, and their root private keys must be escrowed first.