Migrate from Cloudflare Access to authentik

Moving Access applications to authentik means rebuilding them as proxy providers and policies, moving DNS and TLS for internal hostnames, and reconnecting identity sources. This page covers what moves cleanly, what needs rework, and how to cut over safely.

On this page

Migrate from Cloudflare Access to authentik: what the move involves

The usual trigger for this move is a Cloudflare Access renewal, a cost review, a data residency requirement, or a decision to own the identity layer. Teams that already need an identity provider for their applications often find it simpler to gate those applications in the same system. In practice, the migration rebuilds each Access application and policy as an authentik proxy provider with its application and policy bindings, runs an outpost in front of the internal hosts, reconnects the identity sources that Access used, and moves DNS and TLS so that the internal hostnames point at the new proxy. authentik does not replace Cloudflare's edge: DDoS protection, WAF rules and CDN caching stay with Cloudflare or another provider, so teams should confirm which of those functions they still need before cutting over.

The work is usually led by platform or identity engineers, with each application owner confirming the paths, headers and access rules their app expects. Start by exporting the Access applications, policies, groups and identity providers through Cloudflare's API or Terraform provider, then map each one to an authentik application, provider, group and policy. Confirm which identity sources need to be reconnected (for example, Google Workspace and Microsoft Entra ID integrations are listed on the authentik pricing page as Enterprise features, so their licensing should be checked before you plan around them). Confirm the authentik edition, the supported release line and the PostgreSQL sizing against the authentik security policy before you pick a version to deploy.

The main risks are policy drift and access gaps during cutover. A policy that reads correctly in one tool can behave differently in another, so run both systems in parallel for a single low-risk application, test each group and device condition with real test accounts, and keep Access in place until every application has been verified. Plan a rollback path for DNS and TLS, because a broken certificate chain on an internal hostname can block users more quickly than a misconfigured policy. Ask your authentik and identity provider contacts to confirm the upgrade and session behavior for your version before the cutover date.

Which Access capabilities map to authentik and which need rework

This table maps each Cloudflare Access capability to its closest authentik provider, policy or outpost feature, and marks it as clean, needs rework or gap. Use it to scope the migration before exporting anything, and confirm each policy and posture behavior in a test environment, since authentik's documentation is the reference for what it supports.

Access capabilityauthentik equivalentStatusWhat to confirm or plan
Self-hosted applications behind Access (web apps)Proxy provider with an application in authentik, served by the embedded or a separate outpostCleanConfirm the outpost placement and upstream reachability for each hostname in your own network.
Application policies (include, require, exclude rules)authentik policies bound to applications, combining group, user and expression checksNeeds reworkAccess rule logic does not translate line for line. Rebuild each rule as bindings and test allow and deny cases.
Identity providers (for example, Google or Microsoft sign-in)Source connections for Google Workspace and Entra ID (Enterprise-only) and OAuth2/OIDC or SAML sourcesNeeds reworkEnterprise-only features on the pricing page include Google Workspace and Entra ID integrations. Confirm your edition before cutover.
Groups and user attributesauthentik groups and user attributes used in policy expressionsNeeds reworkGroup membership must be re-synced from the source directory. Map attribute names during export.
Service tokens for non-browser clientsService accounts or token-based flows; mTLS client certificates are Enterprise-onlyNeeds reworkConfirm how each machine client authenticates today and replace it with a tested flow.
Device posture checks and WARP device profilesNo equivalent in authentik's documented providersGapDo not assume posture parity. Plan an alternative control, such as endpoint management or VPN posture, and document the residual risk.
Cloudflare Tunnel (cloudflared) and private network routesNo direct equivalent. authentik proxies to upstreams it can reach; it does not run an outbound connectorGapPlan network reachability from the outpost to each origin, or pair authentik with a separate overlay such as OpenZiti.
Edge security (DDoS, WAF, CDN, bot management)Not provided by authentikGapKeep an edge or WAF layer in front, or accept the change in exposure. Confirm with your security team.

What moves cleanly and what does not

The identity layer and per-application access rules move most easily. Your identity provider connections are the first thing to re-create. authentik supports OAuth2/OIDC, SAML, LDAP and Google Workspace or Entra ID sources, though the Google Workspace and Entra ID integrations are listed as Enterprise-only features on the authentik pricing page, so confirm your edition before you plan around them. Group membership logic usually translates through authentik groups and policy bindings, and per-application rules (allowed groups, email domains, device or context conditions you can express in authentik) can be rebuilt from the exported Access policy definitions. Treat these as a one-to-one rebuild only after you have compared a sample of users against both systems, since Access policy include, exclude and require semantics do not always map literally.

The edge and the Cloudflare-hosted parts do not move. DDoS mitigation, WAF rules, CDN caching and the global edge path have no equivalent in authentik, which is an identity and proxy layer that runs in your infrastructure. WARP device profiles and posture checks depend on Cloudflare's client and its device signals, so any Access rule that relies on them needs a replacement signal or a documented gap. Tunnel routing through cloudflared is also Cloudflare-hosted in its design, so the origins behind it need a new reachability path before cutover. Service tokens are the item most likely to break silently: a token that Cloudflare validates at its edge will not be accepted by authentik unless you deliberately issue a replacement credential, and every automated client using it must be found and updated.

Confirm the gaps with Cloudflare's documentation and your own tests before cutover. Check the current Access and service token behavior in Cloudflare's Zero Trust documentation and export inventory, and list every application that depends on WARP, a service token or a tunnel route. Then run a parallel test for each: a reachable login path, a denied path for an unauthorized user, and a scripted client call for every service token. Record each difference as an accepted change or a blocker. Also confirm the current authentik release and its security support window in the authentik security policy and releases page before you pin a version, because authentik publishes named monthly releases and the supported branches change.

Which exports, identity sources and integrations to rebuild

A migration from Cloudflare Access to authentik is mostly an inventory exercise. The items below connect the applications, identity sources, DNS and upstream services that must keep working when traffic moves, and each one has a different export path or a manual step.

Exported Access applications and policies

Access applications, their policies and the include, exclude and require rules inside them can be read through Cloudflare's API or its Terraform provider, so you can write the inventory to version control before changing anything. Rebuild each one as an authentik application with a proxy provider and a matching policy binding. Policy logic does not transfer automatically, so check every rule against the authentik policy model before you assume equivalence.

Access control reference

Identity provider configurations and secrets

Each Access identity provider has a client ID and client secret that exists only in Cloudflare's configuration, and the secret is generally not returned by an export. Treat the existing IdP's application registration as the source of truth and create a new OIDC or SAML provider in authentik that points to it. Plan to re-enter the client secret manually and store it in your secrets manager, not in Terraform state.

Group mappings and attribute claims

Access policies usually match on IdP groups, email domains or specific user attributes, and authentik needs the same claims to arrive in the token or SAML assertion. Compare the group names and claim formats returned by the IdP with what each exported rule expects. Groups that are nested or renamed in the directory will break silently, so test with one account from each group before cutover.

DNS records and certificates for internal hostnames

Access-protected hostnames usually resolve to Cloudflare edge addresses or to a tunnel CNAME, and they will need records that point to your authentik outpost or reverse proxy. Certificates must be issued for each internal name, which means checking whether your DNS provider and ACME setup can validate internal zones. Lower the TTL on these records ahead of cutover and confirm which names are public and which resolve only inside your network.

Upstream apps that trust identity headers

Applications behind Access often read the identity headers or the JWT that Cloudflare injects, and authentik's proxy provider sends its own headers with different names and values. Inventory every upstream that parses these values, then map each one to the header authentik forwards. Apps that verify the Access JWT directly need code or configuration changes, and this is the most common reason a cutover fails after DNS has moved.

Monitoring and SIEM log forwarding

Access audit logs feed your SIEM today, so the destination and the event schema must be rebuilt for authentik, including its audit and event logging. Confirm which events you alert on, such as failed logins and policy denials, and map them to authentik event types. Keep the Cloudflare logs for the period you need for investigations before you disable the integration.

How authentik sits in front of internal apps after the move

The flow starts with a user resolving the application's DNS name to the edge, where the request meets the authentik outpost. The outpost hands the user to the authentik server for login against the identity source over OIDC or SAML, then evaluates the policy bound to the application before forwarding the request to the internal app. The trust boundary sits between the internet-facing edge and the private network, and the server and worker containers both depend on PostgreSQL, which stores all configuration. Check that the outpost is the only path to the app and that the database is reachable only from authentik.

Traffic reaches internal apps only after the outpost checks login and policy.

Migration sequence from inventory to decommission

This sequence moves Access applications from Cloudflare's edge to authentik's proxy provider and outposts one step at a time, keeping Access running until each hostname has been proven. Each step ends with a written record, so the team can roll back a cutover or retire Access with evidence.

  1. Inventory and export Access applications and policies

    Export every Access application, policy, group, identity provider connection and service token through Cloudflare's API or Terraform provider, and list the tunnel routes that publish each hostname. Record the owner, the hostname, the protocol and the policy logic for each application in one inventory sheet. Mark the items that have no authentik counterpart, such as edge settings and WARP device posture rules, so they are handled as explicit decisions. The step is done when the inventory sheet covers every hostname in the Access account and the owner of each application has confirmed the record.

  2. Pilot one low-risk internal app

    Choose one internal web application with a small user group and low business impact. Create the authentik proxy provider and an outpost for it, rebuild the access rules as authentik policies and bind them to the application, and connect the same identity source that Access uses. Test sign-in, session expiry, group-based denial and logout with a set of test accounts, including a user who should be blocked. The step is done when the tested policy set and the pilot results are recorded, and the owner accepts the behavior in writing.

  3. Prepare DNS and TLS in a parallel run

    Stand up the authentik outpost in its target network with its certificates and reachability to the upstream application, while the existing Access application and tunnel keep serving the public hostname. Write a runbook that lists each DNS record, certificate and tunnel route to change, the order of changes, the expected results and the checks after each change. Confirm that the new path is reachable from the test network only, so users are not moved yet. The step is done when the runbook has been reviewed by the network and identity owners and a dry run has been completed in a test zone.

  4. Cut over hostnames with a rollback path

    Move one hostname at a time during a change window agreed with the application owner. Point the DNS record to the authentik path, run the checks from the runbook, and confirm sign-in and access for both allowed and denied test users. Keep the Access application and its tunnel route in place and documented so the DNS record can be pointed back if a check fails. The step is done when a cutover record lists the time, the change made, the checks run, the results and the rollback steps that were kept available.

  5. Decommission Access applications and tunnels

    After each migrated hostname has run stable for a period the owner agrees on, remove the Access application, its policies and the related service tokens, and retire the cloudflared connector and tunnel routes that no longer serve traffic. Confirm with logs that no requests still reach the old path before deleting anything. Ask the Cloudflare account administrator to confirm which account settings and billing items remain, and keep the exported inventory as an archive. The step is done when a retirement record lists each removed object, the verification method and the archive location.

What drives cost and duration in this migration

This table lists the factors that move effort and spend when moving Cloudflare Access applications to authentik, with the reason each one matters and how to keep it down. Read it before requesting quotes, since the largest costs are people time and infrastructure, with any authentik Enterprise licence as an add-on decision. Authentik's published Enterprise price is $5 per user per month billed annually plus $0.02 per external user per month, and Enterprise Plus starts at $20k annually, so ask every bidder for written quotes that state scope.

DriverWhy it moves effort or costHow to keep it down
Number of Access applicationsEach application needs its hostname, upstream, session settings and policy rebuilt as an authentik application and provider, and then tested.Inventory all applications first, retire unused ones, and group similar apps behind shared patterns where the design allows.
Policy complexityAccess rules with nested include, exclude and require logic, device posture or country checks need manual translation and extra test cases.Export policies through the Terraform provider, simplify rules that duplicate group logic, and document each intended allow decision.
Number of identity sourcesEach identity provider connected to Access must be reconnected to authentik and its group claims mapped, which often surfaces naming and attribute gaps.Confirm which identity sources each application uses, map group names early, and test one login per source before cutover.
Non-web and SSH access carried by AccessAccess features such as SSH, TCP or private network routes have no direct authentik proxy equivalent, so they need a separate design and possibly other tools.List every non-HTTP route now, decide its replacement separately, and keep it out of the authentik scope unless its fit is confirmed.
authentik edition chosenThe Open Source edition covers the core provider types, while Google Workspace and Entra ID integrations, mTLS, privileged access management and enhanced audit logging are Enterprise-only features on the pricing page.Match each required feature to an edition before scoping. Ask vendors to confirm in writing which features your design needs and which edition includes them.
Hosting and high availabilityA production deployment needs a server, a worker and PostgreSQL, and the proxy outposts must sit where they can reach internal upstreams, which adds infrastructure and on-call work.Size from authentik's architecture guidance, use managed or well-tested PostgreSQL backups, and plan outpost placement near each upstream group.
DNS and certificate managementMoving hostnames away from Cloudflare means changing records, issuing or renewing TLS certificates for each internal name, and coordinating cutover windows.Lower TTLs before cutover, script certificate issuance, and keep a rollback path for each hostname.
Testing across applicationsEvery application needs login, logout, session timeout, group-based denial and upstream header checks, and each identity source multiplies the test paths.Write a per-application test checklist from the Access export, run it in a staging instance, and sign off each application before DNS moves.

How the migration changes by team size and starting point

A small estate with a handful of internal web applications and one identity provider is the simplest case. The work is mostly about proving the proxy path end to end on one application before moving the rest. Illustrative example: a team with three internal dashboards behind Access and one Okta tenant can usually export, rebuild and cut over in a single short window if the applications share a parent domain.

  • Start with one low-risk application: Build the authentik application and proxy provider for it, then route a test hostname through the outpost before touching production DNS.
  • Keep the Access policy list short: Most small estates use one or two groups, so rebuild those groups directly in authentik rather than mapping every rule.
  • Confirm the outpost placement: Decide whether the embedded outpost is enough or whether a separate outpost is needed near the applications.
  • Test session behavior once: Check logout, token lifetime and redirect loops with a real user account before cutover.
  • Plan the rollback path: Keep the Access application active until the new path has passed a full working day of use.

Before cutover, confirm the outpost's TLS and DNS setup with a test hostname, since this is the step most often skipped on small estates.

What usually goes wrong and how to prevent it

Most failed Access-to-authentik migrations break at the seams: the DNS cutover, the rules that were copied by hand, and the protections that Cloudflare provided without anyone listing them. The cards below cover the failure, why it matters for this move, and the check that prevents it.

Locking out users during DNS cutover

Access sits in front of hostnames that users already resolve through Cloudflare. If the record changes before the authentik outpost serves a valid certificate and the same callback URLs, users see errors on every app at once. Run the new hostname in parallel on a test record, confirm the login round trip for each application, and keep the Cloudflare record ready to restore until the last application passes.

Policy drift between Access and authentik

Access rules that were exported as JSON or Terraform often encode allow lists, group conditions and device or country checks that do not map one to one onto authentik policies and bindings. Diff the effective access list per application by testing a set of named accounts from each group against both systems before cutover, and record every rule that could not be reproduced.

authentik providers

Losing edge protection when Access leaves

Access only gates requests. It does not replace the DDoS, WAF and CDN functions that Cloudflare may also provide for the same hostname. Once the proxy is the only layer, an exposed origin answers floods and malicious payloads directly. Inventory which Cloudflare edge features are enabled for each zone, assign an owner for each replacement, and confirm that the origin accepts traffic only from the expected network path.

PostgreSQL connection growth after upgrades

authentik no longer uses Redis, so caching, tasks, sessions and WebSocket work all run on PostgreSQL. The 2025.10 release notes warn of roughly 50% more PostgreSQL connections after upgrading. Size the database connection limit and any pooler before the cutover, watch connection counts during the first days of traffic, and do not assume a Redis instance can absorb the load that moved.

2025.10 release notes

Version drift and unsupported releases

authentik's security policy lists 2026.5.x and 2026.8.x as the supported versions receiving security fixes, and the project announces security releases at least 24 hours in advance. A deployment pinned to an older tag stops receiving fixes without any visible error. Choose a supported minor line at install, subscribe to the releases feed, and schedule upgrades in a staging copy of the database before each security release.

authentik security policy

Identity claims upstream apps expect

Some applications read specific headers or token claims that Access previously supplied, such as the user email, group names or a custom subject format. If the authentik proxy forwards a different set, the app may grant the wrong role or reject the session. For each application, list the headers and claims it reads, compare them with the claims authentik sends for that provider, and test with a non-admin account before cutover.

Questions buyers ask before moving from Cloudflare Access to authentik

How much effort and cost does moving from Cloudflare Access to authentik involve?

The cost has two parts: the people who do the migration and the platform you run it on. The software license is not the main variable, because authentik's Open Source edition is free to use, while paid Enterprise tiers add cost per user. Effort is driven by how many Access applications, policies, groups and identity sources you have, how many hostnames change, and whether you also need to rebuild tunnel routes. Each of these is a one-time cost. Recurring costs include hosting the authentik server, worker and PostgreSQL database, certificates, and upgrades. Ask any provider for a quote that separates one-time migration work from recurring operations and states which authentik edition it assumes. DeployOpen issues quotes only from a written scope.

How long does a Cloudflare Access to authentik migration take?

The timeline depends on the size of your Access estate and how many applications need manual rebuilding. The main drivers are the number of applications and policies to rebuild, the number of identity sources to reconnect, how much DNS and TLS work is needed for internal hostnames, and how much testing your application owners require before cutover. Change windows and approval cycles at your organization often set the calendar more than the technical work does. No duration is fixed in this page, so ask for a timeline in the written scope, with milestones for export, rebuild, parallel running and cutover.

What does the migration need from our own team?

Your team needs to supply access to the Cloudflare account, a list of protected applications with their owners, and the identity provider settings and administrators who can change them. Application owners must confirm which users and groups should keep access and test each app after cutover. Someone must also own DNS changes, TLS certificates and the decision to retire cloudflared connectors. Security or compliance staff should review the policy mapping, because Access rules and authentik policies do not map one to one. Confirm these responsibilities in the written scope so that no step stalls waiting for an owner.

Can our own engineers do the migration without a partner?

Yes, if your team has experience with reverse proxies, identity providers, DNS and container operations. The work is well defined: export Access configuration through Cloudflare's API or Terraform provider, rebuild applications and policies in authentik's proxy provider and outposts, reconnect identity sources, and move DNS and TLS. The skills gap usually appears in policy translation, outpost hardening and cutover planning. Teams often choose a partner for scoped parts, such as the policy review, deployment hardening or testing, while keeping application work in-house. DeployOpen plans, implements, hardens, documents and supports self-hosted platforms in your infrastructure, and the split of work is agreed in writing before work starts.

Does authentik replace Cloudflare's DDoS protection, WAF and CDN?

No. authentik controls identity and access to applications, so it replaces Access's login gate and policy checks. It does not provide the edge network features that Cloudflare operates, including DDoS mitigation, web application firewall rules and content delivery. If you rely on those features, you need a separate edge or CDN service, a WAF, or both, placed in front of or alongside authentik. Confirm with your network and security teams which Cloudflare edge features are in use before you decommission anything, and include them in the migration scope as a distinct workstream.

Which authentik edition do we need for our identity sources?

The Open Source edition is free and covers the core provider types, including OAuth2/OIDC, SAML, LDAP and the proxy provider used to gate applications. Enterprise features are listed separately on the authentik pricing page, and they include Google Workspace and Microsoft Entra ID integrations and mTLS client certificate authentication. Enterprise pricing is listed as $5 per user per month billed annually plus $0.02 per external user per month, and Enterprise Plus starts at $20k annually. Check the license file for the enterprise directory, because its terms differ from the MIT-licensed core. List your identity sources first, then map each to an edition before budgeting.

How do we run Cloudflare Access and authentik in parallel and roll back?

Run both in parallel by moving one application at a time. Keep the existing Access rule active on its hostname until the authentik route passes testing, then switch DNS or the routing entry for that application. Keep the cloudflared route and the Access application in place during the first cutover window so you can revert DNS quickly if authentik fails. Record each application's owner, test steps and rollback trigger in the runbook. Plan for authentik's upgrade process as well, because the 2025.10 release notes warned of about 50% more PostgreSQL connections after upgrading, so check connection limits before go-live. Do not remove Access rules until every application has run stably for an agreed period.

How DeployOpen scopes and runs the migration

DeployOpen runs a migration from Cloudflare Access to authentik as a fixed-scope engagement. Before any work starts, the scope, deliverables and timelines are agreed in writing. For this migration, the written scope should list every Access application to be moved, every policy and group that gates it, the identity sources to reconnect, and the hostnames whose DNS and TLS records change. A quote follows from that scope, so the more complete the inventory is at the start, the fewer surprises appear during cutover.

Delivery covers planning, implementation, integration, hardening, backup, documentation and support, all inside the client's own infrastructure. In practice that means building the authentik deployment (server, worker and PostgreSQL, with outposts placed where the proxied applications run), rebuilding applications as proxy providers with their policies, connecting the identity sources, and setting up backups and upgrade steps the client's team can follow. Security testing of the migrated applications is part of the same scope, so the team checks that each protected hostname still refuses unauthenticated requests, that group-based policies behave as they did in Access, and that the audit trail records what the client expects. The client should confirm which of these checks are in its agreed scope and who signs off each one.

Work does not necessarily end at cutover. Retainers cover ongoing upgrades, patch handling and continuous testing after the migration. Before signing, ask for the retainer terms in writing, including how authentik release notes and security advisories will be reviewed, who applies updates in a maintenance window, and how a rollback would be handled if a release changes proxy behavior. Confirm also which internal owner will hold the database credentials, backup schedule and outpost certificates after handover.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.