Skip to content

[codex] Resolve trustedProxy hostnames via DNS#10

Merged
sidey79 merged 12 commits intomainfrom
codex/trusted-proxy-dns
Apr 3, 2026
Merged

[codex] Resolve trustedProxy hostnames via DNS#10
sidey79 merged 12 commits intomainfrom
codex/trusted-proxy-dns

Conversation

@sidey79
Copy link
Copy Markdown
Collaborator

@sidey79 sidey79 commented Apr 3, 2026

Summary

  • resolve trustedProxy hostnames via DNS in addition to direct peer-IP regex matching
  • accept reverse-resolved peer hostnames and literal configured hostnames that forward-resolve to the peer IP
  • document the new behavior and add a regression test for hostname-based trustedProxy

Why

trustedProxy previously only compared the configured regex against the socket peer string. In practice that meant hostname values did not work when the peer was exposed as an IP address.

Validation

  • prove -I lib -r -vv t/FHEM/Core/Authentication
  • cd /opt/fhem && prove --exec 'perl fhem.pl -t' -I FHEM -r -vv /workspace/WebAuth/t/FHEM/01_FHEMWEB /workspace/WebAuth/t/FHEM/98_WebAuth

@sidey79 sidey79 marked this pull request as ready for review April 3, 2026 17:48
@sidey79 sidey79 merged commit 1c9f259 into main Apr 3, 2026
@sidey79 sidey79 deleted the codex/trusted-proxy-dns branch April 3, 2026 18:25
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.

3 participants