Files
kuentagym/deploy
dsantillan 4222e8d86b
Publish Docker images / build (., ./web/Dockerfile, web) (push) Canceled after 0s
Publish Docker images / build (./api, ./api/Dockerfile, api) (push) Canceled after 0s
Deploy path: X-Forwarded-For is the append form here, not $remote_addr
I changed this to $remote_addr when the resolver fix went in, on the reasoning that
appending lets a client put its own address in front of the real one. That reasoning is
right for web/nginx.conf.template and wrong here, and the deployment's own access log
shows why: this nginx is NOT the edge. Traefik terminates TLS in front of it, logs the
web container's peer as 10.0.1.182, and carries the real client (66.98.33.30) in the
header it sends. $remote_addr therefore records Traefik's own address, and
$proxy_add_x_forwarded_for — which puts the incoming header first — is what preserves the
person's. The API reads the first entry, so the append form is the correct one in this
shape.

Comment 4 now spells out both directions: append here because a trusted proxy is in
front, $remote_addr in the registry template because there the container answers the
internet directly, where an incoming header is exactly what cannot be trusted.

Nothing recorded was wrong in the meantime — AUDIT_IP is off unless an operator asks for
it — but this is the setting to get right before anybody turns it on.
2026-09-23 11:13:56 -04:00
..