Skip to content

fix: Verify HTTP tokens only from public addresses - #1004

Closed
andrewb3000 wants to merge 2 commits into
mainfrom
claude/domain-verify-address-guard-a17913
Closed

andrewb3000 wants to merge 2 commits into
mainfrom
claude/domain-verify-address-guard-a17913

Conversation

@andrewb3000

@andrewb3000 andrewb3000 commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Withdrawn. The change continues elsewhere.

Domain HTTP verification connected to whatever address the token URL
or its redirects resolved to, and copied up to 1 KB of a mismatching
reply into the VerifiedHTTP condition, which the project can read.

The verification client now checks the resolved address in a dialer
Control hook before every connection. That covers a name that
resolves inward, every redirect hop, and a DNS answer that changes
between lookups. It reuses validation.NonPublicAddressRange, the
classifier the Gateway and HTTPProxy checks use, and ignores proxy
settings from the environment.

A refused fetch sets the AddressNotPublic reason, with a message that
names no host or address. A mismatch no longer repeats the body. The
message says whether the body holds the token with other content
around it, or does not hold it. The URL is public, so a customer can
still fetch it to see what it serves.

Related to datum-cloud/infra#10265
The guard tests swap in a check that allows the loopback test
server, so a controller wired with a weaker check passed every test.
The controller now builds its getter through one helper, and a test
fetches through that helper and expects the refusal.

Related to datum-cloud/infra#10265
@andrewb3000
andrewb3000 deleted the claude/domain-verify-address-guard-a17913 branch November 30, 2026 19:48
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