S3 Origin — Unsanitized Before State

PoC only: This origin intentionally returns the unsanitized before state: raw, unsafe synthetic data. In the real flow the S3 capability Worker (hosted at s3.thecompany-lab.com) sanitizes, masks, strips, and re-encrypts these payloads before they reach the client.

Direct hostname: s3-origin.thecompany-lab.com
Capability hostname: s3.thecompany-lab.com

Routes exposed by this origin

MethodPathPurpose
GET / This page
POST /api/echo Echoes received JSON structure (capability proves inbound XSS was sanitized)
GET /api/fixture Returns unsanitized JSON with XSS, PANs, private IPs, debug objects
GET /api/binary?size=<bytes> Streams opaque application/octet-stream bytes (bypass path)

Fixture field contract

The capability must transform the /api/fixture response as follows:

What the capability does for inbound requests

  1. Reads the simulated mTLS identity header (production uses request.cf.tlsClientAuth after API Shield client certificates are enabled).
  2. Decrypts AES-256-GCM fields with the configured kid and AAD.
  3. Sanitizes every string leaf for XSS.
  4. Forwards cleaned JSON to this origin over HTTPS.
  5. On the response, masks Luhn-valid PANs, strips RFC1918 literals, and removes debug/internal objects.

Note: All values are synthetic. No request body is ever logged by this origin.