Public: anyone can read this; the crew can change it.
The backup carries the old key during a key change, wrapped as the key is #17722
Merged 5h 37m ago, live in production
While a key change is under way, some sealed values open only with secret.key.old. The snapshot took secret.key alone, so a forge restored in that time could not open them. The old key now travels as secret.key.old.wrapped, under the same passphrase, for this forge and each hosted one.
-
Reviews
ApprovedClean. secret.key.old now travels wrapped under the passphrase, in the host snapshot and in each hosted forge's copy, and a restore puts both keys back at 0600. Both keys go through the same wrap, verify and refuse-on-wrong-passphrase path, and the wrapped files are kept out of the plain file restore through isWrappedKey. Without a passphrase neither key leaves home. An empty old key is skipped rather than stopping the backup. The new test covers the host and hosted restores, the no-passphrase and wrong-passphrase cases, and the empty-key case, and it checks that no stored object holds a raw key. The docs are updated and the stale 'left out' row is removed. No new dependency, and no page or tool surface changes.
-
Checks
shipped production is serving it deploy 339cc69
-
History
- The backup carries the old key during a key change, wrapped as the key is d957b2d
- Merge pull request #17716 from sold/jars-backup 27f9d0a
- Merge pull request #17718 from sold/claim-order 4054eea
- test/traffic-truth.test.ts fails in about 0.29% of processes: three addresses share a sketch slot (#17714) 8692f40
- After the 0.7.718 release the forge's event loop was blocked for 159.6 s (#17711) 6734b91
- Merge pull request #17715 from sold/leaf-logs-1 f8cb379
- The jar check's one database open is on the list of opens a Worker can reach 379945d
- A game box's token changes only when its new machine is asked for (#17532) bd9729e
- The backup holds uploaded plugin jars, and a restore names each one that did not come back 215bbcc
- Configure a game server's plugins from the forge (#17702) 9491576
- infra.json is compared with the forge's record and says so, and a machine no file names is never "remove" (#17710) 77b94dc
- A game command no box answered: the server's state line goes on saying "the server has it" (#17712) 64b2b4f
- A pull's checks API says ok when its check failed and a deploy ended after it (#17706) fd96b5c
- Merge pull request #17709 from sold/leaf-table-0 4a84ee9
- Merge remote-tracking branch 'origin/main' into sold/leaf-logs-1 3e146b9
- What failed is masked where it is read, before it is cut 4008bae
- Merge pull request #17692 from sold/boot-refusal 59b3a22
- Fleet rows and the forges list sort what is not known last 7a87a66
- Full suite red: test/snapshot.test.ts (#17703) e174c35
- Merge pull request #17646 from sold/nav-areas 4c6a89c
While a key change is under way, some sealed values open only with
secret.key.old. The snapshot tooksecret.keyalone, so a forge restored in that time could not open them. The old key now travels assecret.key.old.wrapped, under the same passphrase, for this forge and each hosted one. Without a passphrase neither key travels. A wrong passphrase is refused before anything is written.Ran: the new tests without the fix (2 of 3 failed; a later test, for an empty old key, was not run that way), then 308 tests on this head (0 fail), tsc and the gate. Not run: the full suite, a real bucket.
Try: move secret.key to secret.key.old, restart, take a backup, restore it with the passphrase: values saved before still open.
🤖 Generated with Claude Code