Every nightly snapshot writes secret.key beside forge.db into the same S3 bucket (src/snapshot/snapshot.ts:133, docs/SNAPSHOT.md). Whoever can read the bucket opens every sealed value, and the bucket credentials themselves sit outside the seal.
Intent: the snapshot carries the key only wrapped under a passphrase or KMS-style key the operator holds elsewhere, or not at all with a documented recovery path; restore proves it.
Acceptance:
Files: src/snapshot/snapshot.ts, src/snapshot/store.ts, docs/SNAPSHOT.md, docs/EXTRACT.md. Risk: an operator who loses the passphrase loses sealed values — the page must say so before it is turned on. One run.
Every nightly snapshot writes
secret.keybesideforge.dbinto the same S3 bucket (src/snapshot/snapshot.ts:133, docs/SNAPSHOT.md). Whoever can read the bucket opens every sealed value, and the bucket credentials themselves sit outside the seal.Intent: the snapshot carries the key only wrapped under a passphrase or KMS-style key the operator holds elsewhere, or not at all with a documented recovery path; restore proves it.
Acceptance:
Files: src/snapshot/snapshot.ts, src/snapshot/store.ts, docs/SNAPSHOT.md, docs/EXTRACT.md. Risk: an operator who loses the passphrase loses sealed values — the page must say so before it is turned on. One run.