Get past Cloudflare Access¶
- You'll end up with: a service behind Cloudflare Access that Quartermaster can connect to.
- Takes: about 10 minutes.
Cloudflare Access puts a login page in front of your service. That's great in a browser, but it blocks apps, so Quartermaster fails with QM-EDGE-01. The fix is a service token: a key that lets Quartermaster past the login page without weakening it for anyone else.
Using Cloudflare Tunnel without Access?
A plain Tunnel is just another address and works normally. You only need this guide if there's an Access login page.
1. Create a service token¶
- In the Cloudflare dashboard, go to Zero Trust → Access → Service auth → Service Tokens.
- Click Create Service Token and name it, for example
Quartermaster. - Copy the Client ID and Client Secret.
Warning
Cloudflare only shows the Client Secret once. Copy it before you leave the page.
2. Allow the token on your application¶
- Go to Access → Applications and open the application that protects your service.
- Add a policy with the action Service Auth.
- Under Include, choose Service Token and pick the token you just made.
- Save.
3. Save the headers in Quartermaster¶
You only do this once per domain. Every service on that domain then uses them automatically.
- Tap the profile icon at the top right of Home, then Profiles.
- Tap the key icon on your profile to open its credentials.
- Scroll to Edge access by domain and tap Add domain.
-
Enter your domain, for example
example.com. The two header names are already filled in, so just paste the values:Header name Value CF-Access-Client-IdYour Client ID CF-Access-Client-SecretYour Client Secret -
Tap Save.
- Open a service on that domain and tap Test. Its Cloudflare Access dropdown shows the saved domain. You can also pick it there when adding a new service.
If it still fails¶
Still QM-EDGE-01, or a login page
- Check the policy action is Service Auth, not Allow.
- Check the token is included in that application's policy.
- Check both headers are spelled exactly as above.
- Check the service's address is on the domain you saved, and that its Cloudflare Access dropdown doesn't say None.
“Cloudflare is rate-limiting, backed off” (QM-EDGE-02)
Cloudflare's bot protection is slowing Quartermaster down, so the app backs off to keep your address from being blocked. Relax bot protection for that hostname, or connect over Tailscale instead.
SSH
This doesn't work for SSH. Cloudflare Access SSH hostnames that need the cloudflared client aren't supported. Use Tailscale, WARP, a VPN or a forwarded port.