Skip to content

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.

  1. Receive the upload into memory or a restricted staging area.
  2. Scan with Pompelmi.
  3. Reject malicious.
  4. Quarantine suspicious.
  5. Promote clean files into the live storage path.
  • Document portals with human review.
  • High-sensitivity internal tools.
  • Direct-to-object-storage flows where you need a promotion step anyway.

The repository includes an end-to-end example under examples/quarantine-workflow.ts.