Back to Cloudflare

Operate Zero Trust Policies Over Their Full Lifecycle

November 5, 2026 Updated November 6, 2026 Wasil Zafar 29 min read

Keep device posture, identity changes, and service access observable

Table of Contents

  1. Device Posture Is an Input With a Freshness Requirement
  2. User Provisioning, SCIM, and Deprovisioning
  3. Service Tokens and Session Revocation
  4. Policy Changes, Logs, and Emergency Access
  5. Run a Leaver and Device-Noncompliance Tabletop
  6. Show How Access Is Revoked and Investigated

Device Posture Is an Input With a Freshness Requirement

At 07:52 on a Monday, Nadia opens the payroll application from her MacBook. The dashboard says her device passes the disk-encryption check. It does โ€” but the passing result was uploaded nineteen hours earlier, just before she disabled FileVault to repair a failing drive. Access admits her at 07:53 because the last known result still says "pass." Nothing malfunctioned. The policy consumed a stale input and reached a defensible but wrong conclusion.

That is the whole operational problem in one scene. Device posture is a set of assertions about a device at a moment in time, produced by the Cloudflare One Client on the device or by a third-party endpoint provider that Cloudflare polls. It is not a property of the user, and it is not a permanent property of the device. Enrollment is the act of registering a device with your Zero Trust organization; posture checks only begin after enrollment, and a device can be enrolled while its user is long gone. Freshness is the age of the most recent assertion. A posture result is evidence of a past check, like a wristband stamped at reception: it proves someone looked, not that the holder is still healthy.

The mental model is a sampled control loop, not a gate. The client samples the device, ships a result, Cloudflare stores it per device and per check, and a policy reads the stored value. Every stage adds delay. Figure 1 shows the loop and the two enforcement points, including the branch where a device stops reporting and the stored value outlives the truth.

Device Posture Is an Input With a Freshness Requirement
%%{init: {'theme':'base','themeCSS':'.edgeLabel .label text, .edgeLabel text, .edgeLabel span { fill:#132440 !important; color:#132440 !important; }','themeVariables': {'primaryColor':'#16476A','primaryTextColor':'#ffffff','primaryBorderColor':'#132440','secondaryColor':'#3B9797','secondaryTextColor':'#ffffff','secondaryBorderColor':'#132440','tertiaryColor':'#c4873b','tertiaryTextColor':'#132440','tertiaryBorderColor':'#132440','lineColor':'#5a6e82','textColor':'#132440','titleColor':'#132440','mainBkg':'#16476A','nodeBorder':'#132440','clusterBkg':'#eef3f7','clusterBorder':'#132440','edgeLabelBackground':'#ffffff','actorBkg':'#16476A','actorTextColor':'#ffffff','actorBorder':'#132440','activationBkgColor':'#3B9797','activationBorderColor':'#132440','signalColor':'#5a6e82','signalTextColor':'#132440','noteBkgColor':'#c4873b','noteTextColor':'#132440','noteBorderColor':'#132440','labelBoxBkgColor':'#a8dede','labelBoxBorderColor':'#132440','labelTextColor':'#132440','loopTextColor':'#132440','altBackground':'#f8f9fa','fontFamily':'DM Sans, sans-serif'}}}%%
flowchart TD
    D["Managed device
disk, OS, EDR, certificate"] -->|"local check every 5 min by default"| C["Cloudflare One Client"] C -->|"result + device ID + timestamp"| P[("Posture store
per device, per check")] S["Third-party EDR or MDM
polled on an interval"] --> P P -->|"evaluated on each new request"| A{"Access policy
Require posture and Gateway"} P -->|"cached up to 5 min"| G{"Gateway policy
per request or session"} A -->|"pass"| OK["Issue or refresh application token"] A -->|"fail or missing"| DENY["403 or identity login page"] G -->|"pass"| FLOW["Forward traffic"] G -->|"fail"| BLOCK["Block and log the policy name"] P -->|"no upload before expiration"| STALE["Stale result
fails only if expiration is set"] STALE --> A STALE --> G classDef primary fill:#132440,color:#ffffff,stroke:#0b172b; classDef secondary fill:#16476A,color:#ffffff,stroke:#0f314a; classDef ok fill:#3B9797,color:#ffffff,stroke:#2a6f6f; classDef danger fill:#BF092F,color:#ffffff,stroke:#7a0420; classDef warn fill:#c4873b,color:#132440,stroke:#8a5a1f; class C,A,G,OK,DENY primary; class D,S,FLOW secondary; class BLOCK,STALE danger;

Two timers govern the loop. The Cloudflare One Client samples every five minutes by default, and service-provider checks run on a polling interval you choose. Access detects a posture change at the polling rate. Gateway adds its own five-minute cache because it evaluates network and HTTP policies on every request, so a ten-minute poll can take up to fifteen minutes to influence Gateway (posture checks). Figure 2 places those timers at the boundaries where they actually live.

Where a posture result is produced, stored, and consumed The device boundary samples local state and uploads a timestamped result. The Cloudflare boundary stores the latest result per device and check, with an expiry. The policy boundary reads it at login, on each new Access request, and through a five-minute Gateway cache. Expired or missing results are a denial only when expiration is configured. Device boundary Local checks disk, OS, EDR, cert sampled every 5 min Cloudflare One Client signs result with device ID and clock If the client is off, no new sample exists. Silence is not a pass. Cloudflare boundary Posture store last result per check last_seen timestamp expires_at (optional) expected vs received No expiry by default: old pass stays a pass Recommendation: expiry at least 2x polling Policy boundary Access: login and each new request non-identity checked Gateway: per request plus 5-minute cache active sessions survive Evidence posture log: expected Access log: allowed upload read cache expired = no result

The same two timers are configuration you can read back, which is the only reliable way to know what the organization actually enforces.

# Two timers, two jobs: how often to sample, and when to stop trusting the sample
resource "cloudflare_zero_trust_device_posture_rule" "require_gateway" {
  account_id = var.cloudflare_account_id
  name       = "require-gateway"
  type       = "gateway"
  schedule   = "5m"  # client sampling cadence
  expiration = "15m" # stored result stops counting after this
}
# Read back the cadence and staleness horizon in force
curl -sS "https://api.cloudflare.com/client/v4/accounts/$CF_ACCOUNT_ID/devices/posture" \
  -H "Authorization: Bearer $CF_API_TOKEN" \
  | jq '.result[] | { type, schedule, expiration }'

Silence is not a pass

By default the posture result on Cloudflare remains valid until new data overwrites it, so a departed laptop that never checks in again can keep passing forever. Set an expiration on the posture rule โ€” at least double the polling interval โ€” and test what happens while the client is offline. A deny is usually correct for payroll and usually wrong for the public intranet.

Client mode decides whether the check can pass at all. The Require Gateway check reads the mode the client is running in, not the health of the device.

Client modeRequire GatewayWhat the user sees
Traffic and DNSPassesNormal access
Traffic onlyPassesNormal access
DNS onlyFailsPosture denial on a healthy device
Posture onlyFailsPosture denial on a healthy device
Local proxyPasses only for explicitly proxied trafficMixed results, app by app

A help-desk fix can therefore create a false posture failure. Switching a user to posture-only to stop a VPN conflict produces a denial that says nothing about the device's health (Require Gateway).

Posture cannot gate enrollment

Device posture checks are not available in device enrollment policies, because the client can only report posture after the device is enrolled (device enrollment). Gate enrollment on identity, a service token, or an MDM deployment parameter. Posture gates what an enrolled device may reach, never whether it may enroll.

User Provisioning, SCIM, and Deprovisioning

Consider two leavers on the same Friday. Leaver A is a full-time employee disabled in Microsoft Entra ID at 10:00. Leaver B is a contractor removed from the contractors-payroll group at 10:05, with the account still active. Both lose their laptop at the end of the day. A week later, only one of them is reliably out.

Leaver A's outcome depends on SCIM. System for Cross-domain Identity Management (SCIM) is an open standard that lets an identity provider push user and group changes to Cloudflare. Cloudflare One supports SCIM 2.0 with SAML or OIDC identity providers, but the boundary is narrower than "provisioning" suggests: Cloudflare does not create a Zero Trust user when someone is added to the IdP. The user must first register a device with the Cloudflare One Client or authenticate to an Access application (SCIM provisioning). A new hire who has never logged in has nothing to deprovision.

The second boundary is evaluation. Access evaluates identity and group membership from the SAML assertion or OIDC token at authentication. SCIM supplies readable group names in the policy builder, but Access does not use SCIM group membership to decide a login. Gateway is different: it evaluates identity policies against the User Registry, which SCIM updates without waiting for the user to authenticate. One identity change can therefore alter network policy immediately while leaving an existing Access session untouched.

The third boundary is the deprovisioning switch. With Enable user deprovisioning on, removing a user from the SCIM application revokes their active Access sessions. With it off, the session survives until it expires. Neither setting wipes the laptop, unenrolls the device, or invalidates a service token.

ControlWhat it changesTime to effectWhat it does not doEvidence to check
IdP account disabledBlocks new IdP authenticationNext login attemptDoes not end an existing Access session or a SaaS app's own sessionIdP audit log; Access login failure
SCIM deprovisioning enabledRevokes active Access sessions and updates the User RegistrySeconds after the SCIM request is accepted; re-login blocked for up to a minuteDoes not unenroll the device, wipe files, or revoke service tokensSCIM provisioning log outcome; Access authentication log
SCIM group change onlyUpdates group names and, for Gateway, User Registry membershipGateway on the next policy evaluation; Access only at the next authenticationDoes not retroactively end an Access session unless session revocation on group change is configuredSCIM log; GraphQL identity fields
Per-user Access revokeEnds one user's sessions across all Access applicationsImmediateA still-active IdP identity can create a new sessionAccess authentication log; user's next 403
Per-application revokeEnds active tokens for one applicationImmediateOther applications and SaaS-side sessions are unaffectedApplication token expiry; Access log
Device revocationRemoves the registration that posture is keyed toAt the next posture evaluationDoes not erase local data or revoke service tokensDevice list; posture log gap
Service token revocationRejects requests using that tokenImmediateUser sessions, devices, and other tokens are unaffectedGateway or Access log serviceTokenId

Figure 3 shows the leaver path as a sequence with the two failure branches that matter: SCIM accepted but deprovisioning disabled, and SCIM rejected or never scoped to the user.

User Provisioning, SCIM, and Deprovisioning
%%{init: {'theme':'base','themeCSS':'.edgeLabel .label text, .edgeLabel text, .edgeLabel span { fill:#132440 !important; color:#132440 !important; }','themeVariables': {'primaryColor':'#16476A','primaryTextColor':'#ffffff','primaryBorderColor':'#132440','secondaryColor':'#3B9797','secondaryTextColor':'#ffffff','secondaryBorderColor':'#132440','tertiaryColor':'#c4873b','tertiaryTextColor':'#132440','tertiaryBorderColor':'#132440','lineColor':'#5a6e82','textColor':'#132440','mainBkg':'#16476A','nodeBorder':'#132440','clusterBkg':'#eef3f7','clusterBorder':'#132440','edgeLabelBackground':'#ffffff','actorBkg':'#16476A','actorTextColor':'#ffffff','actorBorder':'#132440','activationBkgColor':'#3B9797','activationBorderColor':'#132440','signalColor':'#5a6e82','signalTextColor':'#132440','noteBkgColor':'#c4873b','noteTextColor':'#132440','noteBorderColor':'#132440','labelBoxBkgColor':'#a8dede','labelBoxBorderColor':'#132440','labelTextColor':'#132440','loopTextColor':'#132440','altBackground':'#f8f9fa','fontFamily':'DM Sans, sans-serif'}}}%%
sequenceDiagram
    autonumber
    participant HR as HR system
    participant IdP as Identity provider
    participant SCIM as Cloudflare SCIM
    participant CF as Access and Gateway
    participant D as Enrolled device
    HR->>IdP: Terminate Leaver A
    IdP->>SCIM: PATCH user active=false
    alt SCIM request succeeds
        SCIM->>CF: Update User Registry
        alt Enable user deprovisioning is on
            CF->>CF: Revoke active Access sessions
            CF-->>HR: Leaver cannot start a new session
        else Deprovisioning is off
            CF-->>HR: Existing session survives to expiry
        end
    else SCIM returns ERROR or user was never registered
        SCIM-->>HR: No Zero Trust identity changed
        Note over CF: Access session and device remain
    end
    CF->>D: Device stays enrolled
    Note over D: Posture may still pass
No remote wipe HR->>CF: Service token is a separate credential Note over CF: Revoke the token explicitly

For Leaver B, the group removal is weaker than it looks. Access reads group membership at login, so the contractor keeps the current session until the session duration ends, unless you configure SCIM to revoke sessions after group changes. Gateway's User Registry view changes sooner, which can produce a confusing split: the web app still opens, but a private-network request starts failing. That is not inconsistency for its own sake; it is two products reading identity through different clocks.

Onboarding has the mirror-image problem. A user who has never authenticated cannot be fixed by SCIM, and a device that has never enrolled cannot pass posture. Sequence onboarding as identity first, enrollment second, posture third, policy last. Do not publish a posture-required policy to a group before its members have enrolled devices, or the first day of work becomes a help-desk queue.

Three provider details belong in the runbook. Okta user sync and group sync are separate, so Push Groups must be configured. Microsoft Entra ID only syncs groups inside the provisioning scope, and userName should match the Cloudflare One email. Google Workspace requires a generic SAML integration; selecting Google groups as a provisioning scope does not send group membership (SCIM provisioning). If users appear but groups do not, diagnose the IdP-side SCIM app first.

Also keep the two SCIM integrations separate. Zero Trust SCIM synchronizes users into Cloudflare One. Dashboard SSO SCIM controls who can sign in to the Cloudflare dashboard. Provisioning a user into Zero Trust does not grant dashboard access, and a leaver removed from the wrong application can retain account-level access.

Service Tokens and Session Revocation

At 02:10, a nightly export job starts returning an HTML login page instead of JSON. The job presents CF-Access-Client-Id and CF-Access-Client-Secret, but the application policy is an Allow policy, so Access treats the request as an unauthenticated browser and redirects it to the IdP. The fix is not a new token; it is a Service Auth policy that includes the Service Token selector. The token is valid, the policy action is wrong.

A service token is a machine credential made of a Client ID and a Client Secret. The secret is displayed once at creation; if it is lost, the token must be replaced. Tokens have a duration, optional key-value tags, and a lifecycle independent of every human identity in the organization. That independence is the point and the hazard.

Revoking a user does not revoke their automation. A service token is not a user session with a device attached. Disable a leaver in the IdP, revoke their Access sessions, and unenroll their laptop, and a CI token they created six months ago keeps working until someone rotates or revokes it. The same applies to posture: a Service Auth request carries no interactive user identity, and unless the caller is itself a managed device running the Cloudflare One Client, there is no posture signal to evaluate.

Combining Service Auth and a posture Require rule denies your own job. Split machine access and human access into separate policies so each can be reasoned about and logged on its own.

# Machine path: a Service Auth policy, no posture requirement
resource "cloudflare_zero_trust_access_policy" "ci_export" {
  account_id = var.account_id
  name       = "Export service token"
  decision   = "non_identity"
  include    = [{ service_token = { token_id = cloudflare_zero_trust_access_service_token.export.id } }]
}

# Human path: Allow, with posture required
resource "cloudflare_zero_trust_access_policy" "payroll_humans" {
  account_id = var.account_id
  name       = "Employees on compliant devices"
  decision   = "allow"
  include    = [{ email_domain = { domain = "example.com" } }]
  require    = [{ device_posture = { integration_uid = cloudflare_zero_trust_device_posture_rule.require_gateway.id } }]
}
# A machine call should never come back as an HTML login page
curl -sS -o /dev/null -w '%{http_code}\n' \
  -H "CF-Access-Client-Id: $CF_ACCESS_CLIENT_ID" \
  -H "CF-Access-Client-Secret: $CF_ACCESS_CLIENT_SECRET" \
  https://export.example.com/api/nightly

Rotation is now a first-class operation. You can rotate a service token secret while keeping the Client ID, choosing a grace period from one hour to thirty days during which both secrets work.

# Rotate the secret, keep the Client ID; both secrets work until the grace period ends
curl -sS -X POST "https://api.cloudflare.com/client/v4/accounts/$CF_ACCOUNT_ID/access/service_tokens/$TOKEN_UUID/rotate" \
  -H "Authorization: Bearer $CF_API_TOKEN" \
  -H "Content-Type: application/json" \
  --data '{"previous_client_secret_expires_at":"2026-11-13T00:00:00Z"}'

Omitting the grace field revokes the old secret immediately. Tokens can also be refreshed for another year, given a new duration, tagged (up to five tags), disabled, or revoked.

Inactivity cleanup is a trap for quiet jobs. Access can disable or delete tokens that have not successfully authenticated within an inactivity period of 30 to 365 days, provided the token is older than that period and is not directly referenced by a policy (service tokens). Turn it on only after inventorying policy references; otherwise a legitimate quarterly job becomes a Monday incident.

Make token failures legible

Turn on strict service token authentication. A failed token request then returns 401 or 403 instead of an HTML login redirect, and only Service Auth policies can authorize it. "My cron got a login page" becomes a clear authentication failure, and an Allow policy can no longer accept a token-bearing request.

Session revocation has its own boundaries. Per-application revocation terminates active tokens for one application; per-user revocation ends a user's sessions across applications. Neither prevents a new session if the IdP identity is still active, and Access blocks re-login for up to a minute after a revoke. SaaS applications keep their own authorization cookies, so Access controls the front door, not the interior.

Access session duration is not protocol session duration. Shortening it does not close an SSH, RDP, or VNC connection already in progress; infrastructure applications have a separate session duration, and Cloudflare does not control the length of the underlying protocol session (session management). If the requirement is "the contractor is out now," revoke the IdP identity, revoke the Access user, revoke the device, and close the infrastructure session separately.

Policy Changes, Logs, and Emergency Access

A policy change is a production change even when it is one dropdown. Access evaluates policies by action and order: Bypass and Service Auth policies run first, top to bottom, then Block and Allow policies run in their listed order, and the first match ends evaluation (policies). Inserting a new Allow rule above an existing Block rule can silently reverse the outcome for an overlapping population. There is no global "deny wins" rule in Access to save you.

The safe pattern is boring: keep policies in Terraform or the API, review the diff, attach posture requirements to a rule group rather than copying them into twenty applications, and roll out to a canary group before everyone. Figure 4 contrasts the two change paths. On the left, an identity-only policy admits everyone who authenticates and produces no posture evidence. On the right, the new policy adds a posture Require rule and a Gateway check; a small canary either passes, fails with a specific posture log, or triggers rollback before the broad rollout.

Policy change with a canary and a rollback path Before the change, an identity-only Allow policy admits any authenticated user and records only an Access login. After the change, a canary group is evaluated against posture and Gateway requirements. Passing users proceed, failing users receive a denial with a posture log and Ray ID, and operators can roll back the policy version if the canary denial rate is wrong. Before: policy v1, identity only Authenticated user any managed or not Allow policy email domain only Evidence produced Access login allowed=true No posture assertion at all Risk Unmanaged laptop and stale device both look identical in the log. No basis to distinguish them. After: policy v2, posture plus Gateway Canary group five percent of users Require posture and Gateway check Pass issue token, log Fail 403 plus Ray ID Evidence: posture log expected vs received Access log allowed=false, approvingPolicyId If denials are wrong: roll back the policy version

Emergency access needs a design, not a hope. Access does not document a dedicated break-glass mode, so teams compose one from primitives: a separate IdP account that is not daily-driven, a FIDO2 hardware key stored offline, a dedicated group, a narrowly scoped Allow policy that does not depend on the device that is broken, and an alert on every authentication. Test it quarterly by locking the primary administrator out on purpose.

Bypass is not break-glass

Bypass disables Access enforcement, does not support identity-based rules, and does not log requests at all. Posture rules in a Bypass policy also fail when Zaraz or a Worker intercepts the request (policies). A silent, unlogged hole is the opposite of emergency readiness.

Five evidence planes answer five different questions. Using the wrong one wastes an incident, so the table doubles as the runbook order.

OrderPlaneWhat it recordsWhat you read first
1Access authentication logsallowed, application, connection method, Ray IDThe decision for the 403's Ray ID
2Access login events (GraphQL)Non-identity events, including posture denials, which are dashboard-invisible; accessLoginRequestsAdaptiveGroups filtered by cfRayIdhasWarpEnabled, hasGatewayEnabled, deviceId, approvingPolicyId, serviceTokenId
3Posture logsEach check's expected and received values, whether conditions were met, and the registration IDExpected vs received, and the timestamp
4Gateway activity logsDNS, network, and HTTP decisions with policy name and actionThe policy name and the action taken
5SCIM provisioning logsThe inbound request, SUCCESS or ERROR, and both Cloudflare and IdP resource IDsThe outcome and the resource IDs
6Admin audit logsWho changed the policyAny change in the same window

Retention is plan- and product-dependent. Cloudflare's late-2026 table lists Access log retention from 24 hours to 180 days depending on plan, while posture logs are listed at 30 days across plans (logs). Treat those numbers as configuration inputs to verify, not constants.

Read the planes in order when a request is denied. Start with the Ray ID from the 403 page, confirm allowed in the authentication event, then compare the posture log's expected and received values (GraphQL tutorial). If Access allowed the request but traffic still failed, move to Gateway and read the policy name and action; finally check SCIM and admin logs for an identity or policy change in the same window. Each plane answers a different question, and guessing which one is at fault is how a fifteen-minute fix becomes a two-hour bridge call.

Run a Leaver and Device-Noncompliance Tabletop

The exercise below is a design-only tabletop; it was not executed for this article. It uses a non-production Zero Trust organization and controlled test identities. No hosted validation, no measured timings, and no produced log excerpts are claimed.

Guided exercise

Run a Leaver and Device-Noncompliance Tabletop

Execution status: design-only. No Cloudflare organization, identity provider, or endpoint was configured for this article, and no result below is a measurement.

Prerequisites and plan requirements. A non-production Cloudflare Zero Trust organization with permission to create Access applications, policies, posture checks, and service tokens; an IdP test tenant with two users (one "employee," one "contractor") and SCIM configured if your plan supports it; one spare macOS or Windows device that can be enrolled and wiped; and an Access-protected test hostname. Device posture checks and SCIM availability vary by plan and IdP, so confirm entitlements first. If posture is unavailable, run the fixture variant: use exported posture JSON and a written policy table, and label it architecture review rather than hosted validation.

Minimal setup. Create a test application at a hostname you control. Create one posture check your device can actually satisfy (for example, disk encryption) and, separately, the Require Gateway check. Create an Access policy with Include = the employee test group and Require = both checks. Enroll the test device and confirm the posture tab shows a pass before changing anything. Create a second administrator account that is not subject to the test policy; this is your rollback path.

StepActionExpected evidence
1. BaselineRecord the posture log's expected and received values, the Access authentication event with allowed=true, its Ray ID, and the device registration IDOne posture result per configured check, with a recent timestamp
2. Break complianceDisable disk encryption or stop the endpoint agent, without unenrolling the device. Wait longer than the polling interval plus the Gateway cacheThe next Access request is denied on a non-identity basis and the posture log shows conditions met is false with the received value. An open Gateway session may continue, because Gateway evaluates posture at session start
3. Remove the deviceRevoke or delete the device registration, then retryPosture can no longer be evaluated. Whether that denies depends on the expiry setting and on how the policy treats a missing result; record "no result" against "failed result"
4. Leaver, deprovisioning offDisable the employee in the IdP, confirm the SCIM request in the provisioning log, then try the app in an existing browser sessionThe session can survive to its Access session duration, depending on policy and application type. Record the actual expiry path rather than assuming immediate revocation
5. Leaver, deprovisioning onRe-enable the user, establish a session, then disable them againActive sessions are revoked, a new login fails, and re-login is blocked for up to one minute. Check whether the device stays enrolled and whether posture still reports
6. Group pathRemove the contractor from the IdP group without disabling the accountAccess may keep the current session until re-authentication, while the Gateway User Registry view can change sooner. That split is the lesson, not a bug to file
7. Machine credentialCreate a service token, add a Service Auth policy to a separate test path, call it with the token headers, then revoke the employee and retryThe token still works. Revoke the token and retry: 401 or 403 with strict service token authentication on, or a login redirect without it. No human revocation touched the token
8. LockoutAdd the posture Require rule to the policy used by the first administrator, then try to administer the accountThe first administrator is locked out; recover with the second administrator and roll back the policy version. Record recovery time as process data, not a product benchmark

Failure checks. Each symptom below has one usual cause, so start there.

  • Posture tab shows no result. The client is not running, not enrolled, or not in a supported mode.
  • Require Gateway fails on a healthy device. Posture only or DNS only mode is a mode mismatch, not a sick device.
  • A leaver still has access. Usually an active IdP identity, an unrevoked service token, or a SaaS session outside Access.
  • An unmanaged device gets in. The Include rule is broader than intended, or the posture rule was added to the wrong policy.
  • A stale pass survives for days. Expiration was never set.

Cost dimensions. Two test identities consume seats if your plan is seat-based, and the test hostname can use an existing zone. SCIM and posture entitlements depend on plan and IdP. No paid add-on is required to rehearse the decision logic on paper.

Cleanup. Delete the test application, policies, posture checks, group, and service token; unenroll and wipe the test device; remove the two test identities and confirm seat count; delete exported logs; restore any posture setting changed during the drill; and document the recovery path used in step 8.

Show How Access Is Revoked and Investigated

Verification status. Product behavior below was checked against Cloudflare documentation on 2026-11-05, with page updates dated October and November 2026. No Cloudflare organization, IdP, endpoint, or hosted test was used. No tool or client version was exercised, because the exercise is a design-only tabletop. The planning baseline is 2026-11-02; availability, plan entitlements, log fields, retention, and API shapes should be re-checked before implementation.

Pass evidence

A posture-enforced deployment is working when all of the following hold:

  • A posture log shows expected and received values for the specific device and check.
  • An Access denial is traceable to a Ray ID and a non-identity decision, and the GraphQL record for that Ray ID shows device and client state rather than blanks.
  • A SCIM deprovision produces a SUCCESS log and the user cannot start a new session.
  • A revoked service token returns 401 or 403.
  • A policy change appears in both the admin audit log and the next authentication event.

Fail evidence. Treat each of these as a failure, not a rough edge:

  • An Access session that survives a completed SCIM deprovision with deprovisioning enabled.
  • A device that passes posture after its registration is removed.
  • A token that still authenticates after revocation.
  • A 403 with no corresponding posture or authentication record.
  • A policy that admits an unmanaged device because an Include rule matched first.
  • A runbook that cannot name who owns device revocation, token rotation, and break-glass testing.

Self-check.

The dashboard says the device passed disk encryption, but the user disabled it an hour ago. Why might Access still allow the session? Access evaluates the last reported posture result at the polling rate. If the client has not uploaded a new result, or the result has no expiration, the old pass remains the current answer. Fix the freshness contract, not the user.

A user is disabled in the IdP and their Access session is revoked, but a nightly job still works. What did the runbook miss? The job uses a service token. It has its own Client ID, secret, duration, and revocation action, and it is not tied to the user's session or device. Inventory and rotate machine credentials separately.

SCIM shows the group change as successful, but the contractor still reaches the app. Why? Access reads group membership from the IdP assertion at authentication, so the existing session persists until expiry or explicit revocation. Gateway may already see the new group through the User Registry, which explains a split between web and network access.

The Require Gateway check fails on a healthy laptop. What do you check first? The client mode. Posture only and DNS only modes fail the check by design, and Local proxy mode passes only for traffic explicitly sent through the local proxy. Check mode before reinstalling the client.

Unresolved limitations. No latency, denial rate, false-positive rate, or recovery time was measured. Access's continuous non-identity evaluation and Gateway's session-start evaluation are documented, but the practical effect depends on application type, session duration, and client mode. Service-token requests are assumed to lack device posture unless the caller is itself a managed device; that is a design inference, not a measured test. Third-party posture provider outages were not tested. Plan matrices, retention windows, SCIM provider quirks, and GraphQL field names are moving targets.

References (verified 2026-11-05):

  • Cloudflare One overview: https://developers.cloudflare.com/cloudflare-one/
  • Posture checks, polling, expiration, enforcement rate: https://developers.cloudflare.com/cloudflare-one/reusable-components/posture-checks/
  • Cloudflare One Client checks and OS support: https://developers.cloudflare.com/cloudflare-one/reusable-components/posture-checks/client-checks/
  • Require Gateway check and client modes: https://developers.cloudflare.com/cloudflare-one/reusable-components/posture-checks/client-checks/require-gateway/
  • Device enrollment permissions: https://developers.cloudflare.com/cloudflare-one/team-and-resources/devices/cloudflare-one-client/deployment/device-enrollment/
  • Access policies, actions, order, selectors: https://developers.cloudflare.com/cloudflare-one/access-controls/policies/
  • Common Access policies including posture: https://developers.cloudflare.com/cloudflare-one/access-controls/policies/common-policies/
  • Session management and revocation: https://developers.cloudflare.com/cloudflare-one/access-controls/access-settings/session-management/
  • SCIM provisioning: https://developers.cloudflare.com/cloudflare-one/team-and-resources/users/scim/
  • Service tokens, rotation, strict authentication: https://developers.cloudflare.com/cloudflare-one/access-controls/service-credentials/service-tokens/
  • Access authentication logs: https://developers.cloudflare.com/cloudflare-one/insights/logs/dashboard-logs/access-authentication-logs/
  • Posture logs: https://developers.cloudflare.com/cloudflare-one/insights/logs/dashboard-logs/posture-logs/
  • SCIM provisioning logs: https://developers.cloudflare.com/cloudflare-one/insights/logs/dashboard-logs/scim-logs/
  • Gateway activity logs: https://developers.cloudflare.com/cloudflare-one/insights/logs/dashboard-logs/gateway-logs/
  • Zero Trust log retention: https://developers.cloudflare.com/cloudflare-one/insights/logs/
  • Querying Access login events with GraphQL: https://developers.cloudflare.com/analytics/graphql-api/tutorials/querying-access-login-events/

Next in the Series

In Understand Cloudflare's Enterprise Network Services, we'll explore Separate WAN routing, IP protection, transport proxying, and on-ramps.