Repository navigation
fix: Verify HTTP tokens only from public addresses - #1004
Closed
andrewb3000 wants to merge 2 commits into
Closed
andrewb3000 wants to merge 2 commits into
andrewb3000 wants to merge 2 commits into
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Withdrawn. The change continues elsewhere.