What you can export from Cloudflare Access and what you cannot
Most of the access logic you run on Cloudflare Access can be read back out: Access applications, their policies, groups, identity provider settings, service tokens and the tunnel routes that publish internal services. You can pull these through Cloudflare's API or its Terraform provider, which is the practical starting point for a renewal, a pricing change or a residency requirement that forces a move. What has no self-hosted counterpart is the edge layer itself, including WARP device profiles and device posture settings, which depend on Cloudflare's client and its network. Plan for those to be rebuilt from your own endpoint management and identity signals, not copied.
Treat the export as a inventory exercise before it is a migration. Start by listing every Access application with its hostname, type and session settings, then map each policy to its include, exclude and require rules, and record which identity provider and group claims each rule depends on. Service tokens and any non-HTTP tunnel routes need separate handling, because their credentials cannot be recovered from the API once created and must be reissued in your new tooling. Export the tunnel configuration as well, so you know which internal hostnames resolve through cloudflared today.
Before you rely on any command or resource name in this process, confirm the current endpoints, Terraform resource schemas and field names in Cloudflare's own Zero Trust documentation, since these change between provider releases. The same applies to any limits on applications, policies or API rate that you find in older guides. Keep a dated copy of each export, because it becomes the evidence trail for the cutover and for any compliance review of the old controls.
Which Access objects export, by method and format
This table lists each Cloudflare Access object type, the export path that captures it, the format you get back, and what you must confirm before relying on the export. Read it as a checklist: an object missing from your export is an object you will rebuild by hand in the self-hosted target.
| Object type | Export path | Output format and what to confirm |
|---|---|---|
| Access applications | Cloudflare API application listing, or Terraform provider import of cloudflare_access_application | JSON API responses or HCL state. Confirm pagination and rate limits in Cloudflare's API documentation, and record each application's domain, type and session duration. |
| Access policies | API policy listing per application, or Terraform import of cloudflare_access_policy | JSON or HCL. Confirm that include, exclude and require rules are all captured, including rules that reference groups, email domains, device posture or service tokens. |
| Reusable groups | API reusable group listing, or Terraform import of cloudflare_access_group | JSON or HCL. Confirm whether policies reference groups by ID, so the group definitions must be exported alongside them. |
| Identity provider configurations | API identity provider listing, or Terraform import of cloudflare_access_identity_provider | JSON or HCL. Confirm which secrets are returned in plaintext and which are masked, since client secrets may need to be re-entered from your identity provider. |
| Service tokens | API service token listing, or Terraform import of cloudflare_access_service_token | JSON or HCL. Confirm that token secrets are shown only at creation, so existing secrets cannot be recovered from the export and must be reissued. |
| Tunnel routes and public hostnames | API tunnel and route listing, or Terraform import of cloudflare_tunnel and related resources | JSON or HCL. Confirm each hostname, internal service URL and origin TLS setting, and map each to a Pomerium route or another target. |
| Edge and device settings | No complete export path confirmed for every setting through the API alone | Confirm with Cloudflare which WARP device profiles, device posture checks and edge settings are exposed and in what form. Plan to document these manually. |
What does not export and how to handle each gap
Some Cloudflare Access and Zero Trust settings live at the edge or in the device fleet and never appear in an application or policy export. Treat each gap as a decision to make before cutover, not a surprise after it. The cards below cover the items with no self-hosted counterpart and the workaround for each.
WARP device profiles and posture rules
Device profiles, enrollment rules and posture checks such as OS version, disk encryption or certificate presence are configured in Cloudflare Zero Trust and enforced by the WARP client. Access policies that reference a device posture check reference an ID that means nothing once you leave. Before cutover, export the posture rule definitions, list every policy that uses them, and decide which checks you will rebuild. Pomerium's device posture integrations are an Enterprise feature, so confirm which checks your edition can evaluate and which must move to endpoint management.
Pomerium pricingEdge protection settings
DDoS protection, WAF rules, CDN caching and bot settings apply to traffic at Cloudflare's network edge, in front of Access. They are not part of the Access application or policy objects, so they will not appear in an Access export. When traffic moves to a self-hosted proxy, these protections disappear unless you replace them. Inventory the zone and WAF configuration separately, then decide whether to keep Cloudflare in front of the proxy, add a self-hosted WAF, or accept the change and document it in your risk register.
Gateway and DNS policies
Cloudflare Gateway filtering rules for DNS, HTTP and network traffic are separate from Access. They control what users can reach from managed devices and are typically managed in the Zero Trust dashboard or through the API under their own resource types. Export them as a distinct set, because a Terraform export of Access applications will not include them. Each rule needs a named replacement, such as a self-hosted DNS filter or endpoint control, or a documented decision to stop filtering.
Service token secrets
The client secret for a service token is shown once at creation and cannot be retrieved later through the API or Terraform. Exported service token records carry the ID and name, but not the secret. Before migration, record the client ID and secret for each token in your secrets manager at creation time, or rotate every token and reissue credentials to the consuming services. Mark each token with its owner and the systems that depend on it, so a missing secret does not break a scheduled job during cutover.
Tunnel credentials and connector tokens
The tunnel secret and connector token used by cloudflared are generated when a tunnel is created and are not returned by the API afterward. A route export records which hostnames map to which tunnel, but the new proxy or overlay cannot inherit the running connector identity. Plan to create new credentials on the replacement side and point DNS at it during a planned window. Confirm which of your internal hostnames rely on tunnel-based routing and check each one against the new listener before retiring the old connector.
How to structure the export so it can be reviewed and reused
Store the raw API responses from your Cloudflare Access export as plain JSON files in a dated folder, and keep the Terraform state or generated configuration beside them rather than replacing one with the other. The raw JSON is your evidence of what existed on a given day, so a reviewer can check a rewritten Pomerium route or policy against the exact application and policy objects that Cloudflare returned. Terraform state is useful for re-importing and diffing, but state files can contain sensitive attribute values, so treat them as restricted artifacts. Record the Cloudflare account identifier, the export date, the API token scope used and the tool version in a short manifest next to each export so the snapshot can be reproduced later. Confirm with your own Cloudflare administrator which account and organization the token was issued for before you rely on the output.
Keep secrets out of version control from the start. Service token values, identity provider client secrets and any other credential that Access exposes or that your Terraform configuration references should be pulled from a secrets manager or injected at run time, never committed to a Git repository. Scrub exported JSON and state files before they are shared with reviewers, and add a pre-commit check that blocks files matching common secret patterns. Note which values Cloudflare will not return in plain text after creation, because you will need to regenerate those credentials on the self-hosted side and not try to copy them across. Store the export in a repository with restricted access and an audit trail, and review who can read the restricted artifacts before the migration starts.
Build a single inventory sheet that maps each Access application to a named owner, its public hostname, the policy or policies that gate it, and the identity source that authenticates its users. Add columns for the internal service behind the hostname, the environment, the business justification and the date the owner last confirmed access is still needed. This inventory is what a security or compliance reviewer will check first, and it is also the list you will use to decide which applications move to Pomerium, which stay on Cloudflare and which should be retired. Flag applications with no owner, policies that rely on broad group membership, and identity sources that you plan to change. Illustrative example: an internal wiki with an unassigned owner and a policy based on an everyone-in-domain rule is a candidate for review before any routes are written.
The export sequence, step by step, with verification at each stage
This sequence captures every Cloudflare Access object you need to rebuild, in dependency order, and leaves a dated inventory that shows what migrated, what was rebuilt and what has no self-hosted counterpart. Each stage ends with a check you can repeat before anything is switched off.
Freeze change control on Access
Before any export, the security or platform lead agrees a short change freeze on Access applications, policies, groups and tunnel routes, and tells the application owners who can still edit them. Someone records the current state in a dated snapshot, including the account ID, the list of teams and who approved the freeze. The step is done when the change freeze is written down and the snapshot is stored where the migration team can reach it, so later differences can be traced to a known baseline.
Create a read-only API token
An administrator creates a dedicated API token in the Cloudflare dashboard with the narrowest read permissions for Zero Trust and Access that Cloudflare documents, and limits it to the account being exported. Do not reuse a personal or broadly scoped token. Confirm the exact permission names in Cloudflare's current documentation, since they change over time. The step is done when a test call returns the expected account's applications and the token cannot write, which you check by attempting a harmless write in a sandbox account or by confirming the scope listing.
Inventory accounts, zones and Access objects
Using the token, list every account, zone and Access application in scope, and record counts for applications, policies, groups, identity providers, service tokens and tunnels. Store the output as JSON or as Terraform state from the Cloudflare Terraform provider, using read-only plan runs where possible. Compare each count against the Zero Trust dashboard for the same account. The step is done when the counts match the console for every object type, and any mismatch, such as paginated results or applications hidden in another account, is resolved before you go further.
Export identity providers and groups first
Export identity provider configurations and reusable groups before applications, because Access policies refer to them by identifier. Record the provider type, the client ID reference (without the secret) and the group membership rules. Confirm that each provider you plan to keep is already configured in the target environment, or that you have a plan to reconnect it, such as an OIDC client registration with the same identity provider. The step is done when every policy reference to a group or provider resolves to an exported object, and a list of unresolved references is empty.
Export applications and policies
Export each Access application with its hostnames, session duration, CORS and cookie settings, and its ordered allow, deny and bypass policies with their include, exclude and require conditions. Keep the policy order, because Access evaluates it in sequence. Write a short table that maps each application to its target hostname and owner. The step is done when a sample policy in the export reproduces its results: for at least one allowed user, one denied user and one bypass path, you confirm the expected outcome from the Access logs or the dashboard's policy test feature.
Export service tokens and tunnel routes
Record each service token's name, expiry and the applications it can reach, without copying the secret values, which Cloudflare does not return after creation. For tunnels, export the tunnel names, ingress rules and the private network routes that cloudflared publishes. Map each route to the internal hostname or CIDR it serves. The step is done when every service token has a named owner and a replacement credential plan, and every tunnel route appears in the mapping table with its internal destination, which you check against the cloudflared configuration on the connector hosts.
Record what cannot be exported
Document the settings that have no self-hosted counterpart, such as WARP device profiles, device posture integrations tied to Cloudflare's client, edge caching, WAF and DDoS rules, and Cloudflare-managed certificates. Mark each item as replace, accept the loss, or keep on Cloudflare. Ask the vendor or your own admin console to confirm any setting you cannot read through the API. The step is done when the gap register is signed off by the security owner and each row has a decision and an owner, so the cutover plan does not depend on memory.
How the export pulls configuration from Cloudflare into a working copy
The export starts in the Cloudflare Zero Trust dashboard and API or the Terraform provider, which read Access applications, policies, groups, identity providers, service tokens and tunnel routes. Those reads land in two places: a raw JSON archive kept as a point-in-time record, and a Terraform state file that serves as a working copy. Edge settings and WARP device profiles have no self-hosted counterpart, so they go into a manual inventory. Before any cutover, verify object counts and compare sample policy decisions against the source.
Export sources, the three working-copy artifacts, and the verification gate before cutover.
Questions teams ask before exporting Access configuration
How much effort does exporting Cloudflare Access configuration take?
The effort depends mostly on how many Access applications, policies and groups exist, how tangled the policies are, and how many accounts and zones they span. A tenant with a few applications and simple allow rules is a short, bounded job. A tenant with hundreds of applications, nested group logic, per-path rules and several accounts needs an inventory step, a mapping exercise and a reconciliation pass before anyone trusts the output. Ask any provider to break the estimate into inventory, mapping, validation and cutover, and to state which of those depend on your counts rather than on a flat day rate.
Can our team export Access configuration without outside help?
Yes, if one engineer can read Cloudflare's API documentation, run the export tooling and compare the results against the live dashboard. The harder part is judging which settings carry meaning in the destination. Teams usually struggle with policy precedence, identity provider mappings and device posture checks, not with the export itself. If your team has no one who has operated Access policies end to end, budget time for a written review of the exported objects before you rely on them.
What does the export need from security, network and identity staff?
Security staff must confirm which applications are sensitive and which policies enforce MFA, device checks or country restrictions, because those rules must survive the move. Network staff must confirm which hostnames, internal addresses and tunnel routes are live, and who owns the DNS records that point at them. Identity staff must confirm which identity providers and group sources Access uses, and whose directory group names the policies reference. Each group should sign off on its part of the inventory before anyone rewrites a policy.
Can the Cloudflare Terraform provider import existing Access objects?
The Cloudflare Terraform provider supports importing existing resources into state, so teams can bring current Access applications, policies and related objects under Terraform management without recreating them. Import captures what the provider models, not every setting shown in the dashboard. Run a plan after import and treat any proposed change as a gap to explain, not as noise to accept. Confirm the provider version and resource types you need against the provider's current documentation before you start.
How should we handle service token secrets during an export?
Treat service token client secrets as credentials. Cloudflare shows a secret only at creation, so an export captures token IDs and metadata, not the secret value. Plan to rotate or reissue tokens in the new system and to update every client that uses them, such as CI jobs or scripts. Store new secrets in your secrets manager with restricted access, and keep the export files free of secret material. Remove old tokens only after the replacement is confirmed in production.
Can exported Access policies be applied unchanged on a self-hosted platform?
No. Access policies use Cloudflare's own model of applications, include and exclude rules, and identity or device conditions. A self-hosted proxy or identity-aware gateway expresses access with its own routes, policy language and identity claims, so the export is an input to a rewrite, not a file you can load. Some rules map directly, such as allowing a named group from a given identity provider. Others, such as device posture or edge-based geographic checks, need a different control or a documented decision to drop them.
What should we ask a consultant to include in a written scope?
Ask for the list of Access objects and zones in scope, the export method, the target platform and version, and how each policy will be mapped with a record of any rule that cannot be carried over. Ask who signs off on mapped policies, how the team tests access for both allowed and denied users, how DNS and TLS cutover is handled, and how service tokens are rotated. Ask which deliverables are documents, which are working configuration and which need a retest after cutover. Scope and deliverables should be agreed in writing before work begins.
Which parts of Access have no self-hosted counterpart to plan for?
Edge features such as WARP device profiles, Cloudflare's network-level protections and the global edge path have no direct self-hosted equivalent in an identity-aware proxy. Device enrollment and posture checks need a separate tool or a documented replacement. Record these during the export so they become explicit decisions, not surprises at cutover. Confirm each one with the destination vendor, because capabilities differ by edition.
What to plan before the Cloudflare contract renews or ends
The export gives you the configuration, but the contract date sets the deadline. These cards cover the decisions that have to be settled before notice dates pass, so the move does not depend on the edge service still being on.
Confirm the export is complete
Run the export against every Access application, policy, group, identity provider, service token and tunnel route, then compare the counts with the Cloudflare dashboard. Check whether any policy references a group or identity provider that the export did not capture. Store the output in version control, because you will need it after the account is closed. Treat an export that has not been tested against a second environment as unproven. Finish the export before your notice date, not after.
Pomerium docsSet a read-only window after cutover
Keep the Cloudflare account readable for a defined period after traffic moves, so you can check policy decisions, look up old logs and re-export if something was missed. Ask Cloudflare what read-only or downgraded access remains after a plan change or cancellation. Make sure your team knows who can still sign in to the account and who holds the recovery credentials.
Plan DNS and certificates for internal hostnames
Internal hostnames that resolve through Cloudflare need a new owner for DNS records and TLS certificates before the proxy goes live. List every hostname, record its current CNAME or tunnel target, and confirm who can edit that zone. Issue certificates for the new proxy in advance, and plan the cutover so that the old and new records do not conflict during the switch.
Decide what happens to tunnels and connectors
Each cloudflared connector runs on a host in your network, and each tunnel route points to an internal service. Decide for each route whether it is retired, replaced by a proxy route, or kept on a different overlay. Stop connectors only after traffic has moved and the replacement has been verified, since stopping them early takes services offline. Remove tunnel credentials from hosts once they are no longer in use.
Record audit log retention needs
Access logs record who reached which application and when, and your auditors may ask for them for a defined period. Identify which logs your compliance program depends on, then decide where they will be stored after the Cloudflare account closes. Confirm with your compliance lead and auditors how long these records must be kept, and whether Cloudflare's own retention period meets that requirement before you rely on it.
Confirm terms for data return and deletion
Read your Cloudflare agreement for notice periods, termination rights, and what happens to customer data at the end of the term. Ask Cloudflare in writing what data it will return, in what format, and when it will delete remaining copies. Check your own notice period before the renewal date, since missing it may lock you into another term.
What to do with the export once you have it
Treat the exported inventory as the migration backlog. Each Access application becomes one row in a mapping sheet with its hostname, path rules, allowed identities, session duration and the service behind it. For Pomerium, that row turns into a route with a from address, a to upstream and a policy block. For authentik, it turns into an application with a proxy provider and an outpost assignment. Mark any application whose policy depends on a Cloudflare-only feature, such as a device posture check or a WARP requirement, as a gap to decide on before cutover rather than discovering it in production.
Reconnect identity before you move any traffic. Access policies usually reference identity provider groups, so confirm that the same provider (Entra ID, Okta, Google or another) is configured in the new platform with the same group claims. Pomerium documents its supported identity providers, and authentik supports reconnecting its own identity sources. Export the group membership your policies rely on from the provider itself, because the Access export only shows the names used in rules. Record which users get access today so you can compare the result after the move.
Verification does not end when the new routes load. Test each migrated application with real users from each group, both allowed and denied, and check that session length, logout and re-authentication behave as the old policy did. Run the same checks again after the DNS and TLS cutover and again after you retire the cloudflared connectors, because the path a request takes changes at each step. The sibling guides on migrating from Cloudflare Access to Pomerium and the authentik migration cover the rewrite steps in detail, but they do not replace your own test record. Keep that record as evidence for your access review.
Verifying the export is complete before you rely on it
This sequence checks that the exported Cloudflare Access configuration is complete, repeatable and owned, so the team can trust it as the basis for the self-hosted replacement. It ends with a signed record that security and identity leads have accepted the export as the baseline.
Reconcile object counts per type
Compare the number of Access applications, policies, groups, identity providers, service tokens and tunnel routes in the export with the counts shown in the Cloudflare dashboard and the account API listing for the same account. Do this for each object type separately, so a missing policy group is not hidden by a surplus of applications. Record both figures side by side in the migration tracker. The step is done when every type has a matching count or a written explanation for each difference, such as a deleted object or a filter that excluded a test account.
Re-export and diff against the first run
Run the same export method again, using the same API token or Terraform state source, and store the second output beside the first. Use a plain text diff on the normalized files, after removing fields that change on every read such as timestamps or internal identifiers. Any remaining difference is either a real change made in the account during the export window or an export gap, and each one must be traced before the export is accepted. The step is done when the diff is empty or every line is explained and linked to a change record.
Check policy rule logic against the source
Pick a sample of applications that cover different policy types, including allow rules, service token rules, country or device conditions and bypass rules. For each one, compare the include, exclude and require conditions in the export with the rules shown in the Access console. Confirm that rule order and precedence match, because Access evaluates policies in order and a reordered rule can change who gets in. The step is done when the sampled rules match exactly and the team has noted which conditions have no self-hosted equivalent yet.
Map each policy to a documented owner
Create a table with one row per policy and fields for the application it protects, the business owner, the technical owner and the review date. Assign owners from the change history, the application team or the service catalog, and ask each owner to confirm the purpose of the policy in writing. Policies with no identifiable owner are flagged rather than copied into the new system as they are. The step is done when every policy has a named owner who has confirmed it, and every unowned policy has an open decision.
Record items with no self-hosted counterpart
List each setting in the Cloudflare account that the export does not cover, such as WARP device profiles, edge security rules, managed DNS records and TLS settings at the edge. For each item, note the business function it supports and the decision taken, whether that is a replacement control, an accepted gap or a retained Cloudflare service. Confirm the list with the platform owner so nothing is dropped silently at cutover. The step is done when the gap register is complete and each entry has a decision and an owner.
Store the export with access controls and retention
Place the exported files, diffs and owner table in a restricted repository or document store that the migration team can access and that logs reads and writes. Remove any API tokens or secrets from the files before storage, and confirm that service token values were not written to disk in plain text. Set a retention rule that matches the organization's own records policy. The step is done when the access list is recorded, secrets scan clean and the storage location is written into the migration plan.
Obtain sign-off from security and identity leads
Present the reconciliation results, the diff summary, the owner table and the gap register to the security lead and the identity lead. Ask each to confirm in writing that the export is the accepted baseline for the replacement, and to name any items they want tested before cutover. Store the signed record with the migration plan. This sign-off is an internal decision and does not amount to an audit opinion or certification. The step is done when both sign-offs are on file and any conditions raised are logged as open items.
How DeployOpen works on this
DeployOpen starts with a written inventory of what your Cloudflare Access configuration actually contains, then maps each item to a self-hosted target such as Pomerium, authentik or OpenZiti. The export is treated as evidence for your security and change teams, so each object is recorded before anything is rebuilt or switched off.
How we scope
- Inventory Access applications, policies, groups, identity providers, service tokens and tunnel routes in your account before quoting.
- Agree in writing which edge features and WARP device profiles are out of scope because they have no self-hosted counterpart.
- Confirm the target platform, identity provider and hosting location, and whether engagements are fixed-scope with an optional retainer.
How we build
- Export configuration through Cloudflare's API or Terraform provider into version-controlled files that can be reviewed.
- Map each exported policy to a Pomerium route or policy, or to the target platform you choose, and record every gap.
- Test access paths, including SSO sign-in, group membership and service credentials, in a staging environment before any DNS change.
How we hand over
- Deliver the export archive, a mapping document listing each object and its target, and a list of unsupported settings.
- Document the cutover steps for DNS, TLS and retirement of cloudflared tunnels, with a rollback plan agreed in advance.
- Provide evidence of access logging and policy configuration so your compliance and security teams can review the result.
How we support
- Offer post-cutover checks and a retest of access policies once traffic has moved to your own infrastructure.
- Make ongoing support, upgrades and continuous testing available as a retainer after handover.
- Ask for a written quote tied to the agreed scope, since DeployOpen does not publish a price list.

