Skip to content

Land roadmap 9.3 on main (PR #228 merged into its stacked base, not main) - #229

Merged
404SecNotFound merged 1 commit into
mainfrom
claude/serene-carson-0739mv-one-derivation
Sep 28, 2026
Merged

404SecNotFound merged 1 commit into
mainfrom
claude/serene-carson-0739mv-one-derivation

Conversation

@404SecNotFound

@404SecNotFound 404SecNotFound commented Sep 28, 2026 •

Copy link
Copy Markdown
Owner

PR #228 (roadmap 9.3, one derivation per new backup) was merged into its stacked base branch, claude/serene-carson-0739mv-secret-buffers, at the same moment PR #227 merged that branch into main. So #228 was never retargeted. Its commit 487f8be is on that branch, as de969a5, and not in main. This is the case CLAUDE.md records for PR #23.

This PR carries the same, unchanged commit from the same branch into main. The diff is exactly 487f8be, because its parent 14937a1 is already in main via #227. It merges cleanly with main at 2adefa3.

Everything in #228's description still applies. That covers the change, the checks (Chromium, Firefox and WebKit green on 487f8be), the negative controls and the performance report. It is not repeated here.

After merging, confirm that main contains src/lib/keym-v2.ts with encryptKeym2WithSlots, and scripts/slot-transaction-test.mjs.

Roadmap 9.3. Creating a backup with a share set or a passkey wrote the
passphrase slot and then enrolled each extra way in, and each enrolment
reopened the container, deriving the password again: 1, 2, 2 and 3
derivations for password, +shares, +passkey, +both.

encryptKeym2WithSlots writes every initial slot while the generated
master key is still in hand, so the password is derived once and the
share and passkey slots take only their HKDF. writeKeym2 generalises to
writeKeym2Slots; the bytes are exactly the enrolment path's given the
same random inputs. The password, KDF parameters, version, share
threshold and count and passkey sizes are checked before any
derivation. The worker and its no-worker fallback call it through
encryptContainerWithSlots; §4.8 keeps its own writer, and enrolling
into an existing backup is unchanged. The worker now reads the key file
once, so the page transfers it on every path.

Adds test:slot-transaction (derivation counts through the shipping
worker for PBKDF2 and Argon2id, byte equality with the enrolment path
for every cipher, version, slot combination and key-file case, every
way in opens it, refusals cost no derivation, a failed write returns no
container or shares), a census block in secret-erase-core, a bridge
encryptslots subcommand compared byte for byte against the reference's
three-step path in crosstest2.py, and three appended v3-slots fixtures
(corpus 42 -> 45 in both languages).
@404SecNotFound
404SecNotFound merged commit 6aff83d into main Sep 28, 2026
30 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