# Security Annex — PrivSift (TEMPLATE)

> Attach to the DPA. Describes measures **actually implemented**; do not promise more.

## 1. Hosting and data residency

- Application: **Hetzner Online GmbH, Falkenstein (Germany, EU)**.
- Documents: **tmpfs / RAM-backed temporary storage**, no persistent document volume.
- Inputs deleted after processing; outputs deleted **before the ZIP response**; abandoned jobs expire
  after **1 hour**.
- Receipts/log tickets: content-free hashes and timestamps in a small volume.
- The host disk is **not encrypted at rest today**; this must be addressed before high-volume
  sensitive client documents. Active client documents are not written to that disk.

## 2. Encryption and secrets

- TLS 1.2+ in transit (Caddy/Let’s Encrypt).
- Active documents in RAM; report outputs are image/OCR PDFs held temporarily.
- Secrets: root-only environment file; Ed25519 receipt key mounted read-only.
- No client document content in logs, telemetry or reports.

## 3. Access and isolation

- One token per tenant/cabinet; token hashes are stored, not plaintext.
- Jobs are stored under `DATA/<tenant>/<job_id>`; a tenant cannot read, download or delete another
  tenant’s job.
- Admin access is separated; support does not access document content.
- Access review and token rotation on request.

## 4. Logging

- Events: upload, job, download, deletion, errors; job IDs and counts.
- **No text, file names, PII or document content** in logs.
- Log retention: 30 days; restricted access.

## 5. Retention and deletion

- No client-document backup or archive.
- Deletion receipt: Ed25519 signature, job hash, input hashes, date, file count; no content.
- Append-only Merkle log ticket with signed checkpoint; no content.
- Receipts may be retained to evidence deletion.

## 6. Development and vulnerability management

- Code review before deployment; dependencies pinned; vulnerability scanning.
- Critical fixes within 7 days; high within 30 days.
- Pen test before self-serve launch, then annually; attestation under NDA.
- Docker image digest and SBOM to be maintained.

## 7. Incident response

- Runbook, named owner, timestamped record.
- Client notification without undue delay; 72 hours where GDPR applies.
- Content-free post-mortem and tracked corrective actions.

## 8. AI and data

- No training on Client documents.
- No external LLM call for Client documents; models run in the service environment.
- OCR/redaction models: PDFium/pdfplumber, PaddleOCR/Tesseract, Qwen LoRA adapters where configured.
- Reports contain no content, only counters, types and job IDs.

## 9. Personnel and subprocessors

- Confidentiality obligations; annual security training.
- Subprocessors listed with DPAs and reports where available; 30 days’ notice before adding a
  document-processing subprocessor.

## 10. Limits to disclose

- OCR quality varies; degraded scans may require human review.
- The service is document QC, not legal advice.
- A signed receipt proves a recorded deletion, not the absence of every possible copy.
- No SOC 2 certification today; do not claim one.
