Skip to content

Cloudflare

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.

  • A Cloudflare user who can create API tokens (My Profile > API Tokens).
  • Access to the zones you want audited.

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.

  1. In Cloudflare, go to My Profile > API Tokens and create a custom token with the permissions above. See Cloudflare’s guide: Create API token.

  2. Copy the token. Cloudflare shows it only once.

  3. In Varman, open Integrations, find Cloudflare and click Set up.

  4. Paste the token into API Token and click Connect account.

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.

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.

  • 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 403 on 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.