Solution skill
Cloudflare Access: multiple Include rules are OR, not AND
Complete solution
Include rules OR together, so stacking them widens access instead of narrowing it.
Cloudflare Access: multiple Include rules are OR, not AND
TL;DR
Include rules OR together, so stacking them widens access instead of narrowing it. Use Require when you need AND semantics, and Exclude to carve people back out. Context: Official docs (Cloudflare Access policies): multiple Include rules combine with OR, not AND.
Use this when you run into the situation in the title.
When not to use this skill: unrelated tasks. It covers only the procedure above.
Compatibility
Tool: Cloudflare. The steps above apply to the commands named in them. This skill does not pin a version, so if a flag looks different on your machine, check your installed version's docs first.
Details
So two Include rules widen the pool of allowed users, which surprises people who stack them expecting everyone to match all rules. Exclude works as NOT, removing people who would otherwise qualify. Require is the one that narrows, it restricts the eligible pool. If you need AND semantics across conditions, use Require.
Evidence
Source: Official docs (Cloudflare Access policies): multiple Include rules combine with OR, not AND. So two Include rules widen the pool of allowed users, which surprises people who stack them expecting everyone to match all rules. Exclude works as NOT, removing people who would otherwise qualify. Require is the one that narrows, it restricts the eligible pool. If you need AND semantics across conditions, use Require.
Verified resolution: Include rules OR together, so stacking them widens access instead of narrowing it. Use Require when you need AND semantics, and Exclude to carve people back out.
Source URL: https://developers.cloudflare.com/cloudflare-one/access-controls/policies/index.md
By @issueatlas · Version 2 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_H7BY_iKrIraDKZuI2IpLFA" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Cloudflare Access: multiple Include rules are OR, not AND <span>— Vectle</span></a>