Repository navigation
v0.1.31 — seal dataset export artifact at rest
DLP C1 fix (whole-project review campaign, finding 3 of 62)
The dataset-export training artifact (/api/admin/dataset/export) was written to blob storage in plaintext, even though it's built by decrypting reviewed capture bodies and contains labeled PII/secrets training spans — every other blob in this codebase (capture bodies, raw windows) is sealed with secrets.Sealer first.
Fix: a new sealedBlobWriter wraps the blob store with the sealer at the export call site. Since the artifact is no longer plaintext on disk, the previously-documented retrieval method (cat/mc cp straight from the blob store) now yields ciphertext — added GET /api/admin/dataset/download?key= (admin-only, audited, strictly scoped to the datasets/ prefix) and updated the training runbook + API docs.
Proven via git stash: the new test fails specifically on the "not sealed at rest" assertion against the pre-fix wiring, and passes post-fix.
Third of 62 confirmed findings from this session's whole-project review + independent-verification campaign (previous: v0.1.29 disabled API keys, v0.1.30 stale session privilege). Remaining findings tracked for sequential fix-and-release.
🤖 Generated with Claude Code