0.7 Crypto/testing foundations — KDF floors + state signing (audit H-2/M-7) #15
Labels
No labels
epic
phase-0
phase-1
phase-2
phase-3
phase-4
phase-5
phase-6
phase-7
phase-8
phase-9
priority/P0
priority/P1
priority/P2
type/backend
type/client
type/docs
type/ops
type/security
type/spike
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
primatekuntech/failsulit#15
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Argon2id floor parameters + KAT vectors (native m ≥ 64 MiB, t ≥ 3, p = 1; WASM m ≥ 32 MiB); passphrase floor component; OAuth state signing design (single-use, TTL ≤ 10 min, IKeyStore asymmetric key).
SRS: KEY-13, IDA-10
Exit: floor vectors pass; downgrade-rejection test exists.
Part of epic #1. Source: §4 (0.7)
Re-verified against main @
7f853c8(2026-11-11). This issue is HALF done and half re-scoped.DONE (verified in code + tests):
RE-SCOPED — the KDF-floor half is a COORDINATED CLIENT+SERVER change (milestone M3), not a server-only patch:
Why the server cannot floor alone: floors reject p=4, and every current desktop/iOS wrap carries p=4 — a server-side floor without the client migration bricks wrap uploads. Sequence: client profiles first (or in the same milestone), then the server gate.
Exit criteria (updated): below-floor wrap upload rejected with 4xx + tests; clients mint only floor-conforming profiles; legacy fallback removed; KATs regenerated.
PASSPHRASE FLOOR COMPONENT LANDED 2026-11-11 (PR #150, #142 slice 2):
REMAINING #15 items (unchanged disposition): server-side floor validation on wrap write paths + client KDF-profile migration (desktop/iOS p=4 -> p=1, raise the 19 MiB low tier, remove the silent legacy fallback, regenerate KATs) — the coordinated client+server slice, milestone M3. The .NET-suite Argon2id KATs stay deferred to M7 golden vectors (no server-side Argon2 by design).
CLOSED by PR #197 (squash
cd5b234, all three CI legs green: api-ci 12941 / desktop-ci 12942 / security-ci 12943)Exit criteria check:
kdf_paramsrefused on every passphrase layer (real/decoy/wipe), including the unlock-flow fix so the refusal surfaces instead of counting as a wrong passphrase; server: below-floor wrap uploads → 400 + nothing stored (WrapKdfFloorTests, 5 tests).IDA-10 (state signing) required no work —
IdpStateServicealready ships asymmetric IKeyStore signing, TTL 10 min, atomic single-use nonce consume (landed with the IdP work; doc comment cites M-7).Server floor values: absolute minimum = WASM tier (32 MiB / t ≥ 3) on the three wrap-write paths; native 64 MiB stays client-side per KEY-13 tier semantics. Fields remain optional (pre-#15 rows legal).
Follow-ups filed separately: #198 (iOS
Argon2idLow19 MiB is below every KEY-13 floor — mobile tier-ladder decision, dormant tier), #196 (Postgres migration smoke test).