Course contents · Boundary and identity policy
- 1. Map one application before adding Cloudflare AccessFree
- 2. Build and test a Cloudflare Access identity policyFree
- 3. Connect a scoped Cloudflare Tunnel to the portalFree account
- 4. Validate the Cloudflare Access origin boundaryPremium
- 5. Test Access session expiry and revoke a departing reviewerPremium
- 6. Diagnose Access decisions, tunnel faults and origin failuresPremium
- 7. Handover a protected portal with acceptance and recovery evidencePremium
Map one application before adding Cloudflare Access
Define the hostname, identity source, application permission and origin path for a browser portal. Turn those boundaries into acceptance cases before publishing a tunnel route.
18 MIN
By AISecurityInterviews · Updated
TL;DR: Specify which application and identities Access protects, and how requests reach the origin. A functioning tunnel proves connectivity; it does not establish who may use the application.
Where you are. First lesson. You will turn the customer's request into a boundary map and an acceptance table that every later step must satisfy.
Reference and lab scope. Cloudflare One documentation, checked November 2026. Browser access to one self-hosted application on a public hostname, using a remotely managed Tunnel. Product procedures are documentation-checked, not tenant-tested. Exercises are offline; optional changes belong only in an owned or explicitly authorized isolated lab.
Name the application and its owners
The fictional portal is review.northquay.example. It contains review documents and a separate application-level administrator role. Two current reviewers, Mira and Dev, should read documents. A former reviewer, Rowan, must be refused. Passing Access must not turn either reader into an application administrator.
The public hostname is a route to an authentication boundary. The origin remains on the customer-controlled host. In the lab, cloudflared and the portal run on the same isolated machine, and the portal listens only on 127.0.0.1:8080. Local privileged processes remain inside that host's trust boundary. A loopback listener is not protection against a compromised host.
The .example suffix is reserved for documentation. It cannot serve as the live test domain. Before an optional rehearsal, the customer must provide an owned test zone and explicitly approve the hostname, identities, connector host and change window. Do not repoint a real business application's DNS to follow a lesson.
| Item | North Quay's record | Who confirms it |
|---|---|---|
| Customer and Cloudflare account | One named test account, recorded by ID in restricted notes | Customer account owner |
| Access application | One public hostname, with all its paths protected | Provider and application owner |
| Identity source | The customer's existing, tested corporate IdP | Identity administrator |
| Eligible people | Mira and Dev; Rowan explicitly excluded | Business owner |
| Origin | Loopback listener on the isolated connector host | Host administrator |
| Application permissions | Readers cannot perform administrator actions | Application owner |
| Recovery | A protected management path independent of this portal | Customer operations owner |
Use actual account and application IDs in the customer's controlled record. In provider-wide teaching notes or reports, use pseudonymous references. A friendly name alone is insufficient when two customers both have a portal called “Review.”
Choose the correct application type
Cloudflare's web application guide separates self-hosted applications from SaaS SSO integrations. This course protects an application the customer hosts, reached through its public hostname. A user needs a browser for this workflow. We are not granting routed access to an entire subnet or configuring a third-party SaaS provider's SSO settings.
Write down what remains outside the change. There is no private CIDR route, no device posture requirement, no client-session authentication and no machine-to-machine policy in the baseline. If the customer requires any of these, the acceptance plan must grow before the provider claims the control exists. A product family name such as “Zero Trust” is not a configuration record.
- 1
1 · Corporate identity
- Which identity authenticated?
- Which claims did the IdP provide?
- 2
2 · Access policy
- May this identity reach this application?
- Which application and policy matched?
- 3
3 · Tunnel and origin
- Did the request reach the intended service?
- Is the validation boundary enforced?
- 4
4 · Application authorization
- May this reader view this document?
- Are administrator actions still refused?
Protect the hostname before publishing the route
Cloudflare's self-hosted public application procedure recommends creating the Access application before the tunnel route. Publishing a route without an Access application can make the service reachable by anyone on the Internet. A connector's Healthy status does not add an identity policy.
The intended sequence is therefore: agree on scope; create and review the Access application and policy; prepare origin validation; publish the matching tunnel route; then perform positive and negative tests. Use a harmless test portal while rehearsing. Sensitive content should not be the indicator that an unprotected route exists.
Creating a public-hostname Access application is separate from validating requests at the origin. The course returns to that distinction in the fourth lesson. Record every alternate path now: another DNS name, an old reverse proxy, a public IP or a non-loopback listener can leave an application reachable outside the intended route.
Review hostname and path coverage
For this lab, protect the exact hostname with the Path field empty. Review existing Access applications for a more specific matching destination before assuming the whole portal uses this policy.
Cloudflare's application path rules state that a more specific application path takes precedence and does not inherit the broader application's policies. A separate application at the portal's administrative path can therefore change which controls apply. It does not simply add another mandatory check on top of the parent application.
Wildcards also have boundaries. A wildcard subdomain does not automatically cover the apex domain or every deeper subdomain level. For a single portal, an exact hostname is easier to review than a broad wildcard. Maintain an inventory of actual application destinations and test representative URLs; do not infer coverage from the application name.
Define evidence before configuration
| Test | Expected observation | What it does not prove |
|---|---|---|
| Mira uses the approved IdP | Access permits entry and the portal returns the approved document | Every portal role is correct |
| Dev tries an administrator action | The application refuses it | Access rejected Dev's identity |
| Rowan attempts entry | The intended Access policy refuses the identity | An old session has already been revoked |
| An unknown identity tries entry | No allowed application session is issued | The origin has no alternate network path |
| An unauthorized remote host tries the documented origin route | The origin is unreachable through that path | The connector host itself is uncompromised |
| The connector is unavailable | The portal is unavailable without becoming public | Recovery has been rehearsed |
The provider owns account, destination, policy and connector evidence. The customer owns identity lifecycle, application permissions and the business result. Join their observations using the test case, time and resource identifiers. Never put session cookies, tunnel tokens or live JWTs in the acceptance packet.
Do this before moving on
Draw the browser, identity provider, Access application, tunnel connector and origin. Annotate the exact hostname, origin listener and all alternate paths. Add an owner and a success condition to each row of the acceptance table. Mark which tests require a product rehearsal and which can be reasoned about offline.
Review criteria: another engineer can identify the correct customer and application, explain why the route must wait for Access protection, and name a test that separates Access admission from application authorization. Missing origin exposure evidence remains an open condition.
Go deeper
- Authentication versus authorization separates the IdP, Access and application decisions.
- How tunnels and VPNs work explains what connectivity adds and what it does not authorize.
- VPN versus ZTNA tests the difference between network reachability and application access.
- Multi-tenant authorization extends the customer-scope check to shared services.
Key takeaways
- Bind the change to an account, hostname, application and origin.
- Create Access protection before publishing a matching tunnel route.
- Review more specific applications and alternate origin paths.
- Test application permissions separately from successful Access login.
Check yourself
Say or write your answer first, then reveal. Explaining it from memory, in your own words, is the skill an interviewer is checking.
1The tunnel is Healthy. Does that prove Rowan cannot reach the portal?
2A more specific Access application protects the administrative path. Does it inherit the parent application's policy?
3Why does the baseline record a loopback-only origin listener?
Sign in to track which lessons you have finished.