Skip to content

Security ​

EdgeTrust treats trusted proxy configuration as a security boundary. Incorrect ranges can allow IP spoofing via forwarded headers.

Threat model (brief) ​

If Laravel trusts a connecting IP as a proxy, it will honor X-Forwarded-* (and related) headers from that hop. Over-broad trust (especially 0.0.0.0/0) lets any client forge client IPs, schemes, and hosts.

Controls ​

Non-global rejection ​

Updates that include 0.0.0.0/0 or ::/0 are rejected. The previous archive is kept.

Checksums ​

Archive / manifest digests are verified when checksum validation is enabled so corrupt or unexpectedly altered files are not activated.

Atomic updates ​

New archives are written aside and swapped into place only after validation succeeds. Concurrent readers never see truncated files.

Preserve previous on failure ​

Network errors, parse errors, validation failures, and checksum mismatches abort the update path and leave the last good archive intact.

No per-request remote fetch ​

Provider HTTP endpoints are not queried on every application request. Caching and archives keep the TrustProxies path local and predictable.

Explicit middleware wiring ​

The package does not silently replace your middleware stack. You opt in by passing EdgeTrust CIDRs to TrustProxies. See Trust Proxies.

Least privilege for providers ​

Enable only the CDNs that actually front your app. Each extra provider expands the set of IPs that can present trusted forwarded headers.

Origin network controls ​

Application-level trust is necessary but not sufficient. Combine EdgeTrust with origin firewall allowlisting (or private networking) so untrusted clients cannot reach Laravel directly.

CI / release safety ​

Upstream archive updates run validation and tests before tagging a release. Failed validation or tests produce no release. See the repository's update-proxies workflow.

Released under the MIT License.