Skip to content

fix(rest): do not warn about the missing real ip header on internal routes - #779

Merged
TheMorpheus407 merged 1 commit into
developfrom
fix/internal-routes-real-ip-warning
Oct 10, 2026
Merged

TheMorpheus407 merged 1 commit into
developfrom
fix/internal-routes-real-ip-warning

Conversation

@TheMorpheus407

Copy link
Copy Markdown
Contributor

The other services call the internal routes directly and from the address of the reverse proxy. Every such call logged the warning real ip header not found, and warnings are reported to the error tracker as events: one event for every user a nightly sweep looks up, tens of thousands a night.

On internal routes (/<area>/_internal/...) the missing header is now logged at debug level. Everywhere else the warning stays, so a reverse proxy that stops sending the header is still noticed. The resolved client address is unchanged in every case.

A unit test pins which paths count as internal.

🤖 Generated with Claude Code

…outes

The other services call the internal routes directly and from the address of the reverse proxy. Every such call logged the warning "real ip header not found", and warnings are reported to the error tracker as events: one event for every user a nightly sweep looks up.

On internal routes (`/<area>/_internal/...`) the missing header is now logged at debug level. Everywhere else the warning stays, so a reverse proxy that stops sending the header is still noticed. The resolved client address is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@TheMorpheus407
TheMorpheus407 added this pull request to the merge queue Oct 10, 2026
Merged via the queue into develop with commit 953623c Oct 10, 2026
11 checks passed
@TheMorpheus407
TheMorpheus407 deleted the fix/internal-routes-real-ip-warning branch October 10, 2026 05:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant