No reviewers
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!77
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/m1-audit-musts-73-75"
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?
Closes #73, #74, #75 (M1-close ponytail-audit MUSTs, issue #65 — gated into early M2)
#73 — UpdateFile status whitelist
Only legal transition is pending → uploaded (creator-driven). Flipping back to pending re-armed the unauthenticated blob window; arbitrary strings corrupted the state machine — both now 400 with state unchanged. Test proves the blob PUT stays closed after a rejected flip.
#75 — UploadBlob enforces declared size
Content-Length pre-check +
SizeLimitedStreamaborting the storage copy mid-stream (the sink never writes past the cap).BlobSize <= 0legacy rows fall back to the CreateUploadUrl 5 GB cap. Rejects 413 PayloadTooLarge (newAppError.PayloadTooLarge). Interim containment until UPL-02 signed upload tokens (Phase 7). Counts toward the Phase 7 quota work.#74 — anonymous probes leave evidence
FileActivity.ActorId→ nullable (entity + service + migration);GetRecoveryShare's failed branch logs a NULL actor instead ofGuid.Empty(FK-fail silently swallowed by the fire-and-forget = zero probe evidence — same class as the #32 audit-sink bug). Probes for unknown DIDs now land infile_activitieswithactor_id IS NULL+ the probed DID in details.Also fixed (exposed by this branch)
RateLimitSecurityTests.EmailVelocityasserted an unorderedFirstOrDefaultoversecurity.ratelimitedrows — sibling limiter tests in the same fixture also write those rows → intermittent Debug-order gate failure (not reproducible on clean main). Assertion now scoped to the email-velocity partition.Verification
TDD: 6 tests first, RED ×5, then implemented. Suite 853 / 0 failed / 39 skipped (Release ×2 + Debug ×2) · coverage gate 85.07% ≥ 80