Cloudflare Access
Put Cloudflare Access in front of your Gateway, so people sign in at Cloudflare before they reach it.
Cloudflare Access is a second sign-in in front of your Gateway and its apps. Nobody reaches them until Access knows who they are: by their Cloudflare account or a code emailed to them. It's on by default and uses Cloudflare's free Zero Trust plan, which covers 50 people.
Turn it on
everyapp setup turns it on once your owner account exists. At a terminal it asks first, Yes by default; in a script or an agent run it goes on by itself, and stops to ask for a team name if your Cloudflare account has none. To leave it off, answer No or run everyapp setup --no-access. We don't recommend it, and setup remembers the choice.
If it's off, run:
everyapp access onIf your Cloudflare account has no Zero Trust team yet, you're asked for a team name. People sign in at <name>.cloudflareaccess.com, and the name can't be changed later, so pick your company's name. There's no plan to pick and nothing to pay.
Access asks your Gateway who may come in: its members and the people you've invited. Your apps' public routes (a tracking script, a webhook), the Gateway's /health and AI apps connected to your Gateway stay reachable without an Access login.
Inviting and removing people
Invite people in the Gateway as usual. They can sign in through Access as soon as they're invited: nothing to rerun. Invite them with the email address Access will see.
To remove someone, deactivate them in the Gateway. They're signed out at once, and Access turns them away at their next Access sign-in.
The first sign-in
Each person signs in to Access (Sign in with Cloudflare if they're a member of your Cloudflare account, otherwise an emailed code) and lands in the Gateway, signed in. People you invite never need a password.
Once everyone has signed in, you can turn passwords off:
everyapp secret set EMAIL_PASSWORD_SIGN_INEnter false. It can't lock you out: nothing changes until an owner has signed in through Access.
When to run it again
Deploys keep Access up to date: an app's new public routes are let through by themselves. Run everyapp access on again if a deploy warns that it couldn't update Access, or after you change Access by hand in the Cloudflare dashboard. It only changes what differs.
Check it, or turn it off
everyapp access show
everyapp access offshow lists the team, its sign-in methods, the two Access applications and the Gateway's settings; everyapp status says whether Access is on in one line. off asks first, then the Gateway's own sign-in stands alone again. The Zero Trust team stays in your Cloudflare account.
Good to know
- An Access sign-in lasts 30 days.
- Your Gateway's own sign-in page can also offer Continue with Google, Microsoft, GitHub and others, with Access on or off. Sign in with Google and others
- Every setting and how it works: Access reference.