Skip to content

chore(signer): name the skilld-production-2026-11 signing key - #703

Merged
harlan-zw merged 4 commits into
mainfrom
chore/signer-key-2026-11
Nov 19, 2026
Merged

harlan-zw merged 4 commits into
mainfrom
chore/signer-key-2026-11

Conversation

@harlan-zw

@harlan-zw harlan-zw commented Nov 18, 2026 •

Copy link
Copy Markdown
Collaborator

🔗 Linked issue

Signer step of the trusted root rotation. Needs #711 live and skilld CLI 3.7.0 released first. No GitHub issue.

❓ Type of change

  • 📖 Documentation
  • 🐞 Bug fix
  • 👌 Enhancement
  • ✨ New feature
  • 🧹 Chore
  • ⚠️ Breaking change

📚 Description

Signing key skilld-production-2026-08 stops at 2026-11-20T00:00:00Z, and the root that was meant to list its successor is lost. The new roots skilld-root-2026-11 and skilld-root-backup-2026-11 (#711) list skilld-production-2026-11.

This PR names that key in the signer's secondary slot, from 2026-11-19T20:00:00Z to 2027-05-20T00:00:00Z, and regenerates the signer types. The signer signs with the newest open key, so signing switches at 20:00Z without another deploy. That leaves four hours to roll back before the old key closes.

📝 Migration

Keep this PR a draft until all three hold:

  1. feat(artifacts): serve trusted roots by root key id #711 is live: https://skilld.dev/api/v1/trusted-roots/skilld-root-2026-11 lists skilld-production-2026-11.
  2. skilld CLI 3.7.0 is published.
  3. The signer's wrangler secret list names ARTIFACT_SIGNING_SECONDARY_PRIVATE_KEY_PKCS8.

If this deploys before step 3, the signer refuses every request with SIGNING_KEY_INVALID. Merge before 2026-11-19T16:00:00Z. To roll back before 23:30Z, revert this PR.

🤖 AI disclosure: Harlan Agent Kit modified this description. My AI open-source policy.

Signing key skilld-production-2026-08 stops at 2026-11-20T00:00Z, and
every skilld run fails after that. This is step 5 of the rotation
runbook: name the new key in the secondary slot with the runbook window.
It must deploy only after the new trusted root is live and the secondary
private key secret exists.
The root that was meant to sign skilld-production-2026-11 is lost, so
the key is now listed by the new roots skilld-root-2026-11 and
skilld-root-backup-2026-11. The signer picks the newest open key, so the
window start sets the switch: 2026-11-19T20:00Z leaves four hours to
roll back before skilld-production-2026-08 closes.
@harlan-zw
harlan-zw marked this pull request as ready for review November 19, 2026 01:27
@harlan-github-agent

harlan-github-agent Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

🤖 MERGED

Harlan Agent Kit posted this automated review. It is not Harlan's personal review or approval. AI open source policy. Last updated: 2026-11-19 02:04 UTC.

GitHub merged this pull request.

No material findings were recorded.

The pull request closed.

@harlan-github-agent harlan-github-agent Bot added the harlan-agent-blocked The automated Review found a material defect in this head commit. label Nov 19, 2026

@harlan-github-agent harlan-github-agent Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Harlan Agent Kit posted this automated review. AI open source policy.

Automated Review: BLOCKED.

Read the Review results

@harlan-github-agent harlan-github-agent Bot added harlan-agent-running An Agent holds a Task on this issue or pull request right now. and removed harlan-agent-blocked The automated Review found a material defect in this head commit. labels Nov 19, 2026
The preflight from b89599c required the newest slot's signing key in
GitHub Actions secrets and re-uploaded it on every deploy. No signing key
lives in Actions secrets, so every production deploy would have failed at
the signer step and the 2026-11-19T20:00Z switch would never deploy. It
also moved signing key custody to GitHub without a decision. The staged
secondary key was verified against both live roots before upload.
@harlan-zw

Copy link
Copy Markdown
Collaborator Author

🤖 Harlan Agent Kit Agent assessment of head 4970373.

4970373b reverts the Repair b89599ce. That Repair required the newest slot's signing key in GitHub Actions secrets on every signer deploy. No signing key lives in Actions secrets, so every production deploy would have failed at "Deploy Artifact signer" and this switch would never ship. It also moved signing key custody to GitHub without a decision.

Finding 86 (a wrong staged secondary secret passes the deploy smoke and fails builds at the switch), for this rotation:

  • The exact file uploaded as ARTIFACT_SIGNING_SECONDARY_PRIVATE_KEY_PKCS8 was checked with scripts/trusted-root.ts verify --signing-key against both live roots, skilld-root-2026-11 and skilld-root-backup-2026-11. Both printed OK.
  • selectSigningKey with this PR's vars picks skilld-production-2026-08 up to 19:59Z (including statements created at 19:59Z and signed at 20:01Z) and skilld-production-2026-11 from 20:00Z, with no gap at the old key's close.
  • At 20:00Z the agent checks new attestation key IDs in D1 and Sentry. Reverting this PR restores the old key until 2026-11-20T00:00Z.

A preflight that proves the staged secret without copying keys into GitHub is a follow-up. Harlan approved merging over finding 86.

@harlan-github-agent harlan-github-agent Bot removed the harlan-agent-running An Agent holds a Task on this issue or pull request right now. label Nov 19, 2026
@harlan-zw
harlan-zw merged commit 7a5ef91 into main Nov 19, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant