Docs

Sign in, enter your domain, and the setup page gives you headers with your own endpoint. This page explains what they do.

Endpoints

Each site has its own host name, shown as https://YOUR-ID.… below.

PathUse it for
/rThe Reporting API: CSP, deprecations, interventions, crashes, COOP, COEP, Permissions Policy, Document Policy, Integrity Policy
/cspreport-uri on an enforced policy
/csp/roreport-uri on a report-only policy
/csp/watchA policy that reports every source, for the watch inventory. These never open issues.
/nelNetwork Error Logging
/tlsSMTP TLS reports over HTTPS
/ct, /staple, /hpkp, /xssOlder report types that some clients still send

A safe way to turn on CSP

  1. Send Content-Security-Policy-Report-Only with default-src 'self' for a week or two.
  2. In the policy wizard, allow what you recognise.
  3. Run the generated policy as report-only and fix what is left.
  4. Rename the header to Content-Security-Policy. Keep a stricter report-only policy beside it.

Include both report-uri and report-to. Browsers that understand report-to ignore the other.

DMARC and SMTP TLS

Use the mailbox on your setup page in the rua tag of each DNS record. Only reports about domains listed in your site settings are kept.

Webhooks

Requests carry Fencepost-Signature: t=TIME,v1=HMAC. Compute HMAC-SHA256 of TIME.BODY with your signing secret, compare in constant time, and reject old timestamps.

API

curl -H "Authorization: Bearer fp_…" https://fencepost.alexbrazier.co.uk/api/v1/sites
curl -H "Authorization: Bearer fp_…" https://fencepost.alexbrazier.co.uk/api/v1/sites/SITE_ID/issues?limit=100

Also available: /sources and /policies. Read only, 60 requests a minute per key in each location.