Skip to content

security: rotate registry publisher key to production (R1) - #3

Merged
NianLog merged 1 commit into
mainfrom
wip/v1.5.0-migration
Sep 5, 2026
Merged

NianLog merged 1 commit into
mainfrom
wip/v1.5.0-migration

Conversation

@NianLog

@NianLog NianLog commented Sep 5, 2026

Copy link
Copy Markdown
Owner

Summary

R1 收尾:registry publisher key 从 rehearsal 轮换为 production(ccb-publisher-2026-09),关闭 v1.5.0 最后一个发布阻塞项。

Changes

  • REGISTRY_TRUSTED_PUBLIC_KEYS 替换为 production SPKI public key(registry 与云模板通道共用;rehearsal key 移除)
  • registry-rehearsal.spec.ts trust map 断言改为 production 命名闭集校验;四场景以 production key 重跑 6/6(CCB_REHEARSAL_KEY_ID=ccb-publisher-2026-09)
  • CHANGELOG:R1 blocker 关闭 + ceremony 披露(维护者受控开发机完成,未满足断网离线机要求;离线介质双备份待补齐)
  • 维护侧(不入库):registry 1.2.1 / templates v1.0.0 已用 production key 重签,tools/verify.cjs 完整链 + 20/20 对抗自检通过,待上传 dev.niansir.com

Testing

  • production release:preflight 通过(0 error / 0 warning)
  • type-check / lint 零错误
  • Vitest 36 files / 252 tests(production key 驱动 rehearsal 6 项)
  • verify.cjs 完整客户端链 + selftest 20/20
  • Mimosa 深度审计 0 findings(seal sha256:8608be4e…312ae)

- REGISTRY_TRUSTED_PUBLIC_KEYS 轮换为 ccb-publisher-2026-09(rehearsal key 移除),registry 与云模板通道共用
- 远程 registry 1.2.1 与 templates v1.0.0 已用 production key 重签并通过 verify 完整链 + 20/20 对抗自检(web/ 维护侧工作区,待部署)
- registry-rehearsal.spec trust map 断言改为 production 命名闭集校验,四场景以 production key 重跑 6/6
- production release:preflight 通过;CHANGELOG R1 blocker 关闭并披露 ceremony 在维护者受控开发机完成
Copilot AI lite review requested due to automatic review settings September 5, 2026 02:17

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔵 Needs a closer look

It rotates a production signing trust key, and correctness/provenance of the new key material should be verified by a human maintainer before approval.

Pull request overview

This PR completes the R1 security release-blocker by rotating the registry publisher trust key from the rehearsal key to a production Ed25519 SPKI public key (ccb-publisher-2026-09), and updates tests/docs to reflect the new production trust map.

Changes:

  • Rotates REGISTRY_TRUSTED_PUBLIC_KEYS to the production publisher SPKI public key and removes the rehearsal key.
  • Updates the registry rehearsal unit test to validate the production trust map against non-production keyId naming.
  • Updates CHANGELOG.md to record the key-rotation ceremony and close the related release blocker.
File summaries
File Description
tests/unit/scripts/registry-rehearsal.spec.ts Adjusts trust-map assertions to ensure only non-rehearsal/test/dev-like keyIds are present and that entries are public keys.
src/main/services/registry-update-service.ts Replaces the rehearsal trusted public key with the production publisher SPKI public key (ccb-publisher-2026-09).
CHANGELOG.md Documents the production key ceremony, marks prior rehearsal-key notes as superseded, and closes the release blocker entry.
Review details
  • Files reviewed: 3/3 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

it('production trust map 应包含 rehearsal publisher key', () => {
expect(REGISTRY_TRUSTED_PUBLIC_KEYS[DEFAULT_REHEARSAL_KEY_ID]).toMatch(/BEGIN PUBLIC KEY/)
expect(REGISTRY_TRUSTED_PUBLIC_KEYS[DEFAULT_REHEARSAL_KEY_ID]).not.toContain('PRIVATE KEY')
it('production trust map 应只包含 production 命名的 SPKI publisher key', () => {
@NianLog
NianLog merged commit f514b5c into main Sep 5, 2026
3 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.

2 participants