Skip to content
Lesson 1 of 70 completed · Sign in to track completionCourse overview →Glossary ↗
Course contents · Boundary and identity policy
  1. 1. Map one application before adding Cloudflare AccessFree
  2. 2. Build and test a Cloudflare Access identity policyFree
  3. 3. Connect a scoped Cloudflare Tunnel to the portalFree account
  4. 4. Validate the Cloudflare Access origin boundaryPremium
  5. 5. Test Access session expiry and revoke a departing reviewerPremium
  6. 6. Diagnose Access decisions, tunnel faults and origin failuresPremium
  7. 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

Keep a return link on this browser. No account needed.

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.

ItemNorth Quay's recordWho confirms it
Customer and Cloudflare accountOne named test account, recorded by ID in restricted notesCustomer account owner
Access applicationOne public hostname, with all its paths protectedProvider and application owner
Identity sourceThe customer's existing, tested corporate IdPIdentity administrator
Eligible peopleMira and Dev; Rowan explicitly excludedBusiness owner
OriginLoopback listener on the isolated connector hostHost administrator
Application permissionsReaders cannot perform administrator actionsApplication owner
RecoveryA protected management path independent of this portalCustomer 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.

APPLICATION BOUNDARY
Each layer answers a different question
  1. 1

    1 · Corporate identity

    • Which identity authenticated?
    • Which claims did the IdP provide?
  2. 2

    2 · Access policy

    • May this identity reach this application?
    • Which application and policy matched?
  3. 3

    3 · Tunnel and origin

    • Did the request reach the intended service?
    • Is the validation boundary enforced?
  4. 4

    4 · Application authorization

    • May this reader view this document?
    • Are administrator actions still refused?
Successful identity authentication does not establish permission at every later layer.

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

TestExpected observationWhat it does not prove
Mira uses the approved IdPAccess permits entry and the portal returns the approved documentEvery portal role is correct
Dev tries an administrator actionThe application refuses itAccess rejected Dev's identity
Rowan attempts entryThe intended Access policy refuses the identityAn old session has already been revoked
An unknown identity tries entryNo allowed application session is issuedThe origin has no alternate network path
An unauthorized remote host tries the documented origin routeThe origin is unreachable through that pathThe connector host itself is uncompromised
The connector is unavailableThe portal is unavailable without becoming publicRecovery 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

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.

  1. 1The tunnel is Healthy. Does that prove Rowan cannot reach the portal?

  2. 2A more specific Access application protects the administrative path. Does it inherit the parent application's policy?

  3. 3Why does the baseline record a loopback-only origin listener?

Sign in to track which lessons you have finished.