Skip to content

test: assert HTTP servers bind to loopback - #105

Open
adnqcr7-code wants to merge 1 commit into
Jason-Vaughan:mainfrom
adnqcr7-code:test/loopback-binding
Open

test: assert HTTP servers bind to loopback#105
adnqcr7-code wants to merge 1 commit into
Jason-Vaughan:mainfrom
adnqcr7-code:test/loopback-binding

Conversation

@adnqcr7-code

Copy link
Copy Markdown

What

Add hermetic regression tests asserting that both the GUI server and the serve endpoint construct their HTTP listeners on 127.0.0.1.

Why

The project security model requires both unauthenticated local HTTP surfaces to remain loopback-only and not bind to an externally reachable interface.

Test plan

  • python -m unittest tests.test_gui.LoopbackBindingTest
  • Result: 2 passed
  • git diff --check passed

Fixes #98

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.

[chore] Add a test asserting both servers bind loopback-only

1 participant