Description
Follow-up from the review of #1048 (#1048 (review)).
When [trusted_client_ip] is configured, the Fastly adapter falls back to the immediate peer address whenever the authentication header is missing, duplicated, mismatched, or the IP value fails to parse. That fallback is logged at debug level on purpose — the inputs are client-controlled, so warn/error would let a client drive log volume.
The consequence is that a real operational failure is invisible in production: a rotated-but-unsynced shared secret, or a renamed front-door header, silently degrades geo lookup, EC derivation, and bot protection to Fastly edge-node addresses with no operator-visible signal.
Done when
Affected area
crates/trusted-server-adapter-fastly/src/platform.rs (fallback path)
crates/trusted-server-adapter-fastly/src/compat.rs
docs/guide/fastly.md
Description
Follow-up from the review of #1048 (#1048 (review)).
When
[trusted_client_ip]is configured, the Fastly adapter falls back to the immediate peer address whenever the authentication header is missing, duplicated, mismatched, or the IP value fails to parse. That fallback is logged atdebuglevel on purpose — the inputs are client-controlled, sowarn/errorwould let a client drive log volume.The consequence is that a real operational failure is invisible in production: a rotated-but-unsynced shared secret, or a renamed front-door header, silently degrades geo lookup, EC derivation, and bot protection to Fastly edge-node addresses with no operator-visible signal.
Done when
docs/guide/fastly.mdalongside the trusted client-IP setup steps.Affected area
crates/trusted-server-adapter-fastly/src/platform.rs(fallback path)crates/trusted-server-adapter-fastly/src/compat.rsdocs/guide/fastly.md