Putting development environments behind Cloudflare Access

Published 2026-11-06

Why development sites leak

Development environments tend to be the weakest link. They run newer, less reviewed code, use test data that is often a copy of real data, and carry debug settings. Yet they sit on a public hostname because that is the easy way to let a phone, a colleague or a payment provider reach them. Search engines and scanners find such hostnames through certificate transparency logs within hours.

An identity check in front of everything

Cloudflare Access puts an authentication step in front of a hostname, at the edge, before a request reaches your server. You define an application per hostname and a policy saying who may enter, for example specific email addresses or an identity provider group. Visitors who are not allowed never touch your origin.

The benefit over a VPN is that nothing needs installing. A browser login is enough, and the same mechanism covers phones and tablets. The benefit over HTTP basic auth is that credentials are tied to real identities and can be revoked centrally.

A rule that scales: every dev host gets an application

The discipline that keeps this working is procedural. Every new development hostname gets its Access application on the day it is created, the same way every new service gets a monitor. A checklist item in the new-app procedure is enough. Forgetting one hostname defeats the purpose, so make it hard to forget.

Things that need a bypass

Some traffic legitimately comes from machines, not people: payment webhooks, OAuth callbacks that are server to server, health probes and mobile app API calls. For those, create narrow bypass or service token policies on specific paths instead of opening the whole host. Keep the list short and review it, because each bypass is a hole by design.

Also keep development out of search results as a second layer. Serve a robots rule that disallows everything and a noindex header on non-production environments, so a mistake in the access policy does not become an indexing incident.

What it does not do

Access protects the front door. It does not fix weak application authentication, it does not replace patching, and it does not help if the origin server is reachable directly by its IP address. Restrict the origin firewall to the proxy's address ranges so the only path in is the one that checks identity.

© 2026 The Good Fellas