|
There seem to be two overlapping concepts for safe IPs:
What is the difference between these two?
|
Replies: 1 comment
Trusted Networks is policy; Cloudflare allowlist is enforcementThese two are different layers of the same system. Trusted Networks registryThe registry ( type RegistryEntry struct {
Organization string // human name
CIDRs []string // IP ranges
Kind string // "crawler", "monitoring", "infrastructure"
HardBanAllowed bool // whether a ban is ever permitted
CloudflareWhitelist string // sync status to CF
CrowdSecAllowlist string // sync status to CS
}It is platform-agnostic — it defines intent, not mechanism. Cloudflare allowlistThe CF allowlist is one spoke of the enforcement plane. The daemon reconciles the registry CIDRs into a CF Firewall Rule that passthrough-allows those ranges before any WAF rule triggers. It is one push target. The spoke modelEach spoke can be individually enabled/disabled. Adding a CIDR to the registry propagates to all enabled spokes on the next reconciliation cycle. Mode: shadow vs enforce
Shadow mode is the safe default — you can run the daemon for days observing what it would do before committing to enforcement. hard_ban_allowed: falseCertain entries (Cloudflare IPs, Google crawlers) have CrowdSec spoke purposeCrowdSec operates independently of Cloudflare. A threat blocked at the CF WAF layer is not automatically blocked at the CrowdSec/iptables layer. The CrowdSec spoke ensures that trusted networks are also exempted from CrowdSec decisions, preventing a scenario where Cloudflare passes traffic through but CrowdSec blocks it at the host level. |
Trusted Networks is policy; Cloudflare allowlist is enforcement
These two are different layers of the same system.
Trusted Networks registry
The registry (
internal/trustednetworks/registry.go) is the source of truth — a declarative list of network owners that should never be banned. Each entry has:It is platform-agnostic — …