M9-close ponytail-audit: umbrella (8 MUST, 10 SHOULD, 20 NICE) — fix-all before next phase #167

Closed
opened 2026-11-12 06:30:07 +01:00 by amiryahaya · 2 comments
Owner

Whole-repo audit at M9 close (main @ ff0e62f), 5 parallel passes + deep-read; every MUST verified in source. Decisions taken 2026-11-12: pinning = implement TOFU; decoy = amend docs + gate UI; client CI = re-enable auto-triggers. Fix-all approved; batches land as PRs closing individual issues. Small items (fixed opportunistically, tracked here): KillMemberDialog cancel-busy race; admin sign-out no server revoke; TenantDetailPage refetch loop + dead fetchTenantById (405); TenantRootFolderResolver race; pending-upload sweep; KillMember StoragePath guard + delete_content=false; wipe/setup unique-violation 500; pairing KemAlgorithm mismatch; TotpGuard MarkConsumed race; HMAC 5-min post-restart note; dead IdP pairing_code; crypto_service + chunk codec tests; zeroize deltas; 13 unused desktop npm deps; dead mock cases + preview_pairing dup; sign_data dead command; unused derive_* + new_in_memory; audit-log MYT filter skew + double-fetch.

Whole-repo audit at M9 close (main @ ff0e62f), 5 parallel passes + deep-read; every MUST verified in source. Decisions taken 2026-11-12: pinning = implement TOFU; decoy = amend docs + gate UI; client CI = re-enable auto-triggers. Fix-all approved; batches land as PRs closing individual issues. Small items (fixed opportunistically, tracked here): KillMemberDialog cancel-busy race; admin sign-out no server revoke; TenantDetailPage refetch loop + dead fetchTenantById (405); TenantRootFolderResolver race; pending-upload sweep; KillMember StoragePath guard + delete_content=false; wipe/setup unique-violation 500; pairing KemAlgorithm mismatch; TotpGuard MarkConsumed race; HMAC 5-min post-restart note; dead IdP pairing_code; crypto_service + chunk codec tests; zeroize deltas; 13 unused desktop npm deps; dead mock cases + preview_pairing dup; sign_data dead command; unused derive_* + new_in_memory; audit-log MYT filter skew + double-fetch.
Author
Owner

M9-close audit — ALL findings fixed, umbrella closed

All 8 MUSTs + 10 SHOULDs fixed and merged across 7 PRs; the 20 NICEs fixed where mechanical (lean batch), declined-with-rationale where the code is actually right.

Batch PR Merged as Closes
B — server auth gates #186 cf8b248 #168 #169 #180 #181 #182 + quota enforcement
A — wipe executor + kill #188 3e4d218 #172 #176 #177 + pending sweep + setup race
E — admin portal #187 055e460 #170 #185 + smalls
D — desktop UI #189 2910b92 #179 + §173 UI half
C — desktop Rust #190 4a8bb02 #174 #175 #178 #183 #171 + #20 partial
G+F — pipeline + docs #191 6b70ffa #184 + §173 docs half
H — lean #192 (this merge) 20 NICEs (mechanical ones)
— — — #173 closed 2026-11-12 (comment 29645)

Decisions executed as approved: pinning = public-roots-only TLS + armed SPKI pins (naive TOFU rejected in-doc: LE key rotation); decoy = docs amended + UI/Rust gating (JIT account = long-term closure); client CI = auto-triggers re-enabled with per-ref concurrency (proven live: first auto-triggered runs on main + cancellations pruning superseded runs).

Declined with rationale (reviewed, not bugs): pairing_service/api_client zeroize clones (source KeyPair type does not zeroize; IPC return requires the String), lockout backoff overflow (release wraps + clamps — debug-only panic, expression still hardened), wipe/setup race (unique-index 500 → takeover landed in #188).

Final suite state on merged main: API 1029/0/39 (coverage gate ≥80%), admin 244/244, desktop 1316/1skip, Rust 46/46 lib. Net: −445 lines, −13 dependencies, +30 regression-pinning tests.

Residuals consciously deferred: streaming upload (multi-GB memory ceiling — the clone + caps landed, full streaming is a follow-up), SPKI pin provisioning (ops: current + backup pins per host), JIT decoy account (re-evaluate if the raw-API adversary class re-weights).

## M9-close audit — ALL findings fixed, umbrella closed All 8 MUSTs + 10 SHOULDs fixed and merged across 7 PRs; the 20 NICEs fixed where mechanical (lean batch), declined-with-rationale where the code is actually right. | Batch | PR | Merged as | Closes | |---|---|---|---| | B — server auth gates | #186 | cf8b248 | #168 #169 #180 #181 #182 + quota enforcement | | A — wipe executor + kill | #188 | 3e4d218 | #172 #176 #177 + pending sweep + setup race | | E — admin portal | #187 | 055e460 | #170 #185 + smalls | | D — desktop UI | #189 | 2910b92 | #179 + §173 UI half | | C — desktop Rust | #190 | 4a8bb02 | #174 #175 #178 #183 #171 + #20 partial | | G+F — pipeline + docs | #191 | 6b70ffa | #184 + §173 docs half | | H — lean | #192 | (this merge) | 20 NICEs (mechanical ones) | | — | — | — | #173 closed 2026-11-12 (comment 29645) | **Decisions executed as approved**: pinning = public-roots-only TLS + armed SPKI pins (naive TOFU rejected in-doc: LE key rotation); decoy = docs amended + UI/Rust gating (JIT account = long-term closure); client CI = auto-triggers re-enabled with per-ref concurrency (proven live: first auto-triggered runs on main + cancellations pruning superseded runs). **Declined with rationale** (reviewed, not bugs): pairing_service/api_client zeroize clones (source KeyPair type does not zeroize; IPC return requires the String), lockout backoff overflow (release wraps + clamps — debug-only panic, expression still hardened), wipe/setup race (unique-index 500 → takeover landed in #188). **Final suite state on merged main**: API 1029/0/39 (coverage gate ≥80%), admin 244/244, desktop 1316/1skip, Rust 46/46 lib. Net: −445 lines, −13 dependencies, +30 regression-pinning tests. Residuals consciously deferred: streaming upload (multi-GB memory ceiling — the clone + caps landed, full streaming is a follow-up), SPKI pin provisioning (ops: current + backup pins per host), JIT decoy account (re-evaluate if the raw-API adversary class re-weights).
Author
Owner

NICE stragglers — the audit is now FULLY closed

The honesty pass on this umbrella found 5 code + 2 doc/test NICEs that the first closure round had not actually landed. Both batches merged:

  • #193 (ee3ec24): tenant-root unique index + resolver unique-violation convergence (create + promote branches; migration self-heals staging duplicates), pairing KEM-mismatch 400 BEFORE the single-use consume, TotpSecurityGuard.MarkConsumed race catch, dead IdP pairing_code plumbing deleted, HMAC 5-min post-restart residue documented at the middleware.
  • #194 (917d1ce): lockout ladder DOUBLE bug fixed — 2u64.pow overflow AND a dead leading .min that made escalation constant-30s (exponent clamp + saturating ops, escalation live capped 900s; overflow test seeds failures=130); chunk-container codec extracted (chunk_container.rs) with roundtrip/truncation-at-every-boundary/caps/wire-format tests; crypto_service AEAD inline tests (nonce-split contract, wrong-KEK, tamper, wrong-key). Plus CI-only vitest retry for the rotating parallel-load flakes (ShareDialog/SharedWithMePage family).

Declined (with rationale, unchanged): pairing_service/api_client zeroize clones.

Final: every finding from the M9-close audit — 8 MUSTs, 10 SHOULDs, 20 NICEs — is either fixed, tested, or declined-with-rationale on the record. main @ 917d1ce.

## NICE stragglers — the audit is now FULLY closed The honesty pass on this umbrella found 5 code + 2 doc/test NICEs that the first closure round had not actually landed. Both batches merged: - **#193** (ee3ec24): tenant-root unique index + resolver unique-violation convergence (create + promote branches; migration self-heals staging duplicates), pairing KEM-mismatch 400 BEFORE the single-use consume, TotpSecurityGuard.MarkConsumed race catch, dead IdP pairing_code plumbing deleted, HMAC 5-min post-restart residue documented at the middleware. - **#194** (917d1ce): lockout ladder DOUBLE bug fixed — 2u64.pow overflow AND a dead leading `.min` that made escalation constant-30s (exponent clamp + saturating ops, escalation live capped 900s; overflow test seeds failures=130); chunk-container codec extracted (`chunk_container.rs`) with roundtrip/truncation-at-every-boundary/caps/wire-format tests; crypto_service AEAD inline tests (nonce-split contract, wrong-KEK, tamper, wrong-key). Plus CI-only vitest retry for the rotating parallel-load flakes (ShareDialog/SharedWithMePage family). Declined (with rationale, unchanged): pairing_service/api_client zeroize clones. Final: every finding from the M9-close audit — 8 MUSTs, 10 SHOULDs, 20 NICEs — is either fixed, tested, or declined-with-rationale on the record. main @ 917d1ce.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
primatekuntech/failsulit#167
No description provided.