Repository navigation
test(browser-egress): cover module-level DNS rebinding - #22
Merged
Merged
Conversation
Add a live test module exercising DNS rebinding against the browser egress path, and extend the fixture host with an optional resolved address so authorization can be checked against the address the browser actually resolved. The observation log now records the resolution alongside the authorize call, and the existing authority denial fixtures pass no resolved address to keep their behaviour unchanged. Auto-committed-on: cuttlefish Co-authored-by: Medulla <medulla@tinyhumans.ai>
Move the authorize observation push ahead of the simulated delay so the recorded order reflects when the request arrived rather than when the handler finished. Auto-committed-on: cuttlefish Co-authored-by: Medulla <medulla@tinyhumans.ai>
Replace the unnecessary format! call with a plain string literal converted via to_string, since the html contains no interpolation. Auto-committed-on: cuttlefish Co-authored-by: Medulla <medulla@tinyhumans.ai>
Clone the observations snapshot instead of holding the mutex guard across the remaining assertions, replace a map_or with is_none_or, and allow the too_many_arguments lint on the fixture host helper. Auto-committed-on: cuttlefish Co-authored-by: Medulla <medulla@tinyhumans.ai>
…binding The DNS rebinding test now snapshots the recorded calls before the rebind and asserts that the initially allowed address was consumed, so a failure to dial the permitted socket is caught rather than silently passing the later denial checks. Auto-committed-on: cuttlefish Co-authored-by: Medulla <medulla@tinyhumans.ai>
Silence the clippy too_many_lines lint on the live DNS rebinding test, which is long by necessity because it sets up both loopback endpoints and the resolver fixture inline. Auto-committed-on: cuttlefish Co-authored-by: Medulla <medulla@tinyhumans.ai>
9 tasks
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.
Adds loaded-ModuleHost Chromium coverage for a fixture hostname that first resolves to an allowed loopback socket, then rebinds to a different local socket on the same port. The test verifies the host authorizes the initial socket, reauthorizes after the fixture address changes, denies the rebound socket, and neither consumes nor dials it or reconnects to the prior allowed socket. The fixture uses assigned loopback addresses only.
Also snapshots browser-level resolver observations before async waits and fixes live-test Clippy warnings.
Part of tinyhumansai#111. This is TinyComputer-local policy-to-proxy coverage; OpenHuman’s real TinySecurity bus-bridge test remains a separate acceptance step.