Cloudflare
What it does in Varman
Section titled “What it does in Varman”Varman reads the settings of every zone your API token can see and runs five checks. Each zone gets its own pass or finding.
| Check | Passes when | Evidence task |
|---|---|---|
| Zone SSL mode enforces end-to-end encryption | SSL mode is Full or Full (strict) | TLS / HTTPS |
| Zone redirects all traffic to HTTPS | Always Use HTTPS is on | TLS / HTTPS |
| Zone requires TLS 1.2 or newer | Minimum TLS version is 1.2 or 1.3 | TLS / HTTPS |
| Zone sends HSTS | HSTS is on with a max-age of at least six months (15552000 seconds) | TLS / HTTPS |
| Zone has DNSSEC enabled | DNSSEC status is active |
None (posture only) |
The DNSSEC check is not mapped to a task, so an unsigned zone never fails the TLS / HTTPS task.
What you need
Section titled “What you need”- A Cloudflare user who can create API tokens (My Profile > API Tokens).
- Access to the zones you want audited.
Permissions requested
Section titled “Permissions requested”Create an API token with these read permissions, scoped to the zones you want audited:
- Zone > Zone > Read
- Zone > Zone Settings > Read
- Zone > DNS > Read (only needed for the DNSSEC check)
Varman sends the token as Authorization: Bearer <token> to https://api.cloudflare.com/client/v4.
It only reads.
Connect
Section titled “Connect”-
In Cloudflare, go to My Profile > API Tokens and create a custom token with the permissions above. See Cloudflare’s guide: Create API token.
-
Copy the token. Cloudflare shows it only once.
-
In Varman, open Integrations, find Cloudflare and click Set up.
-
Paste the token into API Token and click Connect account.
What gets synced and how often
Section titled “What gets synced and how often”Nothing is copied into Varman except the check results. The checks list up to 50 zones and read the
ssl, always_use_https, min_tls_version and security_header settings plus the DNSSEC status of
each one. Checks run on the daily schedule described in the
overview, or when you click Run now.
Disconnect
Section titled “Disconnect”Open Integrations > Cloudflare, click Settings, then Disconnect. Then delete the API token in Cloudflare under My Profile > API Tokens. See Disconnecting for what Varman keeps.
Troubleshooting
Section titled “Troubleshooting”- No results and the log says
No Cloudflare zones visible to this API token. The token has no zone access. Edit the token’s Zone Resources to include your zones. HTTP 403on the DNSSEC check. The token lacks DNS > Read. The check logs an error and records no result. The other four checks are not affected.HTTP 401: Unauthorized. The token was deleted, expired or pasted wrong. Create a new one, then disconnect and connect again with the new token.- A finding such as
example.com uses weak SSL mode "flexible". Fix it in Cloudflare at SSL/TLS > Overview by setting the encryption mode to Full (strict), then click Run again.