- The strip removed the proxy headers from req.headers only, while
req.raw.rawHeaders and req.raw.headersDistinct still held the secret.
takeTrustedProxyHeaders() now takes the raw message and removes them
from both. A plain splice is not enough on a real IncomingMessage: its
headers and headersDistinct getters are lazy and walk rawHeaders up to
the count stored at parse time, so one that first runs after the splice
throws. Both are read (cached) first. Two tests, each caught by its
mutation: the stripping test checks the raw list, and a real http
request checks all three views and that the getters still answer.
- CLAUDE.md's Rate limit row names the trusted-proxy secret's own bucket.
- The wiki lists the loopback addresses the check accepts, as the
contributor offered.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>