Modes
EdgeTrust resolves trusted proxy CIDRs in one of three modes. Configure the mode in config/edge-trust.php or via EDGE_TRUST_MODE.
Bundled
'mode' => 'bundled',Uses only archives shipped with the package (and any you have synced locally). No outbound HTTP calls are made when resolving ranges for TrustProxies.
Best for: air-gapped or locked-down environments, deterministic deploys, and applications that refresh ranges via CI or a scheduled edge-trust:sync job that writes archives offline.
Trade-off: ranges stay current only when you sync and deploy updated archives.
Runtime
'mode' => 'runtime',Fetches IP lists from each enabled provider's official source when the cache is cold or expired. Successful responses are validated and stored in the application cache.
Best for: applications that can reach provider endpoints and want the freshest ranges without waiting for a package release.
Trade-off: depends on network availability and provider uptime. EdgeTrust still refuses to fetch on every request — caching is mandatory for HTTP sources.
Hybrid
'mode' => 'hybrid',Attempts a runtime refresh (respecting cache TTL). If a provider fetch fails validation or is unreachable, EdgeTrust falls back to the bundled archive for that provider.
Best for: most production apps — freshness when online, continuity when a source is temporarily unavailable.
See Hybrid mode for failure behavior and operational tips.
Choosing a mode
| Requirement | Recommended mode |
|---|---|
| No egress from app servers | bundled |
| Always prefer latest published ranges | runtime or hybrid |
| Prefer freshness with offline fallback | hybrid |
| Release-driven archive updates only | bundled + CI sync |
Regardless of mode, enable only the providers you actually terminate in front of Laravel.