Files
hermes-agent/tests/plugins
T
Maciej Lisiewski 18242bb05a test: SSRF-guard lookups resolve from a public_dns fixture
The SSRF guard refuses a hostname it cannot resolve, so these tests
followed the host's resolver: example.com, files.slack.com, tokio.rs and
docs.rs were looked up live, and on a resolver that filters
example.com five of them failed.

public_dns (tests/conftest.py) serves only the guard's own seam,
tools.url_safety._getaddrinfo: every hostname resolves to a public
address, literals to themselves. A client that really connects still
goes through socket.getaddrinfo, so nothing leaves the machine.

The browser hybrid-routing class already had a rebinding resolver; it now
installs a public default and lets address literals resolve to
themselves (a LAN literal used to come back public).
18242bb05a · 2026-11-03 03:50:21 +01:00
History
..
…