Exposure
Exposure is the first screen in Flarebox. It answers one question: can someone reach your origin without going through Cloudflare? It uses the same engine as pqdoctor exposure, so the CLI and the app give the same answers.
In five minutes
Section titled “In five minutes”- Connect Cloudflare. A read-only token is enough to see findings (Cloudflare → Token). Fixes use the write token, one change at a time, as everywhere in Flarebox.
- Pick the zone. Settings and leak signals show after the first run: SSL mode, AOP, DNS-only records, MX and SPF. None of them need a request to your origin.
- Choose what may be tested. Under What may be tested, tick the proxied hostnames you own. Tunnels, Workers and private addresses can’t be selected, and the reason is shown.
- Place the canary. Flarebox shows the path and the exact one-line body, with steps for a static file, nginx, Caddy and Apache.
- If the origin is this machine, choose its web root and Flarebox writes the file after you confirm.
- Remove it undoes that.
- Verify it through Cloudflare. Only verified hostnames are tested.
- Run checks. Each finding shows its state, the evidence (the exact request and answer), the fix, and how the fix will be re-verified.
What you see
Section titled “What you see”-
Summary: counts of confirmed bypasses, verified weaknesses and potential leaks, with one sentence on what they mean for this zone.
-
Findings, worst first. A confirmed bypass carries its proof:
GET https://203.0.113.24:443/.well-known/flarebox/<nonce> (Host/SNI www.example.com):HTTP 200, body matched the nonce exactlyConfirmed 2 s later: … body matched the nonce exactly -
Not actively tested: hostnames that weren’t selected or whose canary isn’t verified, with the reason.
-
Every request this run sent: the whole list, so you can see nothing but the canary was asked for.
Fixing
Section titled “Fixing”Each finding offers the fixes that close it.
Cloudflare changes, planned and confirmed in the usual dialog. It shows the diff and how to undo, then applies, verifies and records the change in History:
| Fix | Change |
|---|---|
| SSL/TLS Full (strict) | The zone’s ssl setting. Flarebox first checks each origin’s certificate. If strict would break a hostname (error 526), it says which one and points to Origin CA certificates instead. |
| Per-zone AOP, own certificate | Zone-level Authenticated Origin Pulls on, once your own certificate is uploaded. Without one, it opens Authenticated Origin Pulls to issue it. |
| Per-hostname AOP, own certificate | The hostname’s AOP with its own certificate. |
| Proxy the record | The DNS-only record, proxied. |
After the change is applied, Flarebox re-tests the finding from outside and checks the site still serves the canary through Cloudflare. If it doesn’t, the change is rolled back automatically, and you’re told why. The rollback is deliberately narrow:
- Healthy before: the site must have served the canary when the fix was planned (a canary you removed on purpose isn’t a broken site).
- Broken after, twice: two failed checks in a row are needed, and a cached answer doesn’t count.
- This change only: only the change this fix applied is undone, meaning the same zone, the same kind of change, applied in the last 30 minutes and not already undone.
Fixes outside Cloudflare are guided steps, followed by Re-check:
- Firewall: allow only Cloudflare’s ranges, and require the client certificate.
- New origin address: move the origin to an address that has never been public.
- Tunnel: opens Tunnels.
- Post-quantum origin hop: opens Post-quantum.
A fixed finding stays listed as Fixed, with the re-check that showed it.
The report
Section titled “The report”Report saves the last run in several forms:
- a one-page PDF (A4 or Letter);
- the HTML page;
- the report JSON;
- its ML-DSA signature (
.jws).
The report is signed with an ML-DSA-65 key Flarebox keeps next to its settings (exposure/signing/, with jwks.json to verify). The page shows the key and the report’s SHA-256. Anyone can check it with pqdoctor exposure verify-report.
The cross-account test
Section titled “The cross-account test”Zone-level AOP with Cloudflare’s shared certificate, or a firewall that allows Cloudflare’s ranges, keeps out the internet but not other Cloudflare accounts. To prove that, Flarebox needs a zone on a different Cloudflare account. Put it in exposure/testzone.toml next to Flarebox’s settings:
zone_id = "…"zone_name = "probe.example.net"token_env = "FLAREBOX_TESTZONE_TOKEN" # DNS Edit + Origin Rules Edit on that zone onlyWithout it, the test is reported as not configured, and AOP and allowlist findings stay verified weakness.
Every day
Section titled “Every day”The pqdoctor agent runs Exposure daily ([exposure] in its config) and pushes only sanitized findings to your fleet:
- Never sent: tokens, the nonce, or evidence lines.
- Origin addresses: sent only if you ticked Include origin addresses in fleet pushes.
The fleet alerts on regressions with confirm-before-alert: a confirmed bypass at once, anything else only when two runs in a row show it.
Safety
Section titled “Safety”- Only the canary: the only HTTP request to an origin is
GET /.well-known/flarebox/<nonce>, for hostnames you selected and whose canary you verified. Besides it, the origin sees only handshake-only TLS connections: the key-exchange check, and a certificate check before Full (strict) is offered, on those same hostnames. - Paced: about one request a second.
- No hidden changes: nothing in Cloudflare changes without your confirmation in the change dialog.
- Stored locally: the consent, nonce and last report are kept next to Flarebox’s settings (
exposure/).