Quarantine / inspect-first-store-later workflows
Many production systems need more than allow or reject. A quarantine-first workflow lets you isolate suspicious files without pretending they are safe.
For storage-backed upload paths, the same promotion model is covered in Scan Files Before S3 Upload in Node.js.
Recommended flow
Section titled “Recommended flow”- Receive the upload into memory or a restricted staging area.
- Scan with Pompelmi.
- Reject
malicious. - Quarantine
suspicious. - Promote
cleanfiles into the live storage path.
Good fits
Section titled “Good fits”- Document portals with human review.
- High-sensitivity internal tools.
- Direct-to-object-storage flows where you need a promotion step anyway.
Repository example
Section titled “Repository example”The repository includes an end-to-end example under examples/quarantine-workflow.ts.