Masking pipeline

Masking is fail-closed and happens at the SDK, inside your infrastructure, before any data is transmitted. The following describes the full pipeline from SDK to storage.

  1. SDK: primary masking (edge). The SDK applies your project's masking rules before posting to ingest. Every value is hidden unless a keep rule explicitly permits it. By default every string, including an email address, becomes <masked>; numbers become 0 and booleans become false. A stub email address is only produced when a mask rule for that field carries type: "email" and the STUBSMITH_MASK_SALT environment variable is set, in which case the SDK generates a format-preserving placeholder on your project's placeholder domain (default stub.invalid). A new field in a response is masked automatically until you configure a rule for it. The masking rules, both the per-fingerprint field_rules and the project-level global rule sets, are downloaded from the server and cached locally by the SDK. The server never applies these rules itself; it only provides them to the SDK.
  2. Ingest: checks. The ingest service accepts only payloads marked sdk_masked=true, which the official SDKs set after masking. Payloads lacking this flag are rejected with a 400 sdk_required error. Ingest does not scan captures for personal data: masking happens in the SDK, and a server-side scan could only recognise an arbitrary subset of formats. On accepted payloads the server runs one safety net, clearly secondary to the masking layer:
    • Image backstop. Request and response bodies with an image/* content type that do not match the canonical 1×1 pixel placeholder for their subtype are replaced with that placeholder. This enforces the same image-placeholder invariant the SDK applies.
  3. Fingerprint pending gate. Every capture is classified into a fingerprint, the structural identity of its request shape. New fingerprint shapes are held in a pending state. While a fingerprint is pending, occurrence counts and response-variant metadata are recorded, but no capture bodies are stored. An operator opens the fingerprint in the Request Types editor, reviews the field names and paths (not stored plaintext), and saves a set of field_rules to approve it. Only after approval does the ingest service begin writing matching capture bodies to permanent storage.