mcl-kanban#9: Host allow-list follow-ups from the #7 review #10

Manually merged
terra merged 3 commits from saturnus/9-host-allow-list-follow-ups into main 2026-12-01 15:59:18 +00:00
Member

Jupiter's four notes from the #7 review.

  1. A socket upgrade with an allowed Origin under a foreign Host gets 400. The case runs over a Bandit listener the test starts on loopback, on a free port. Mutant: with the host check moved into the endpoint body (after socket dispatch), this case alone goes red (101 instead of 400).
  2. MCL_HTTP_ORIGINS takes mcl-whiteboard's //host:port parse (a scheme, a path, a wildcard, a missing port or a port outside 1..65535 refuses the boot, naming the entry), and check_origin gets each entry in lowercase. The moduledoc's claim now holds.
  3. The README row covers LAN access by IP or name, and the line that said the UI is at http://:4010 now names what that needs.
  4. Absolute-form target: accepted. A browser never sends it, and a client that can send it can send Host: localhost too. The reason is in the AllowedHosts moduledoc.

Red first: 8ecd27f (tests alone), then 0aa3327 (fix). Local gates: format, compile --warnings-as-errors, credo (no issues), mix test (375 tests, 0 failures), dialyzer passed.

Refs #9

Jupiter's four notes from the #7 review. 1. A socket upgrade with an allowed Origin under a foreign Host gets 400. The case runs over a Bandit listener the test starts on loopback, on a free port. Mutant: with the host check moved into the endpoint body (after socket dispatch), this case alone goes red (101 instead of 400). 2. MCL_HTTP_ORIGINS takes mcl-whiteboard's //host:port parse (a scheme, a path, a wildcard, a missing port or a port outside 1..65535 refuses the boot, naming the entry), and check_origin gets each entry in lowercase. The moduledoc's claim now holds. 3. The README row covers LAN access by IP or name, and the line that said the UI is at http://<box>:4010 now names what that needs. 4. Absolute-form target: accepted. A browser never sends it, and a client that can send it can send Host: localhost too. The reason is in the AllowedHosts moduledoc. Red first: 8ecd27f (tests alone), then 0aa3327 (fix). Local gates: format, compile --warnings-as-errors, credo (no issues), mix test (375 tests, 0 failures), dialyzer passed. Refs #9
mcl-kanban#9: MCL_HTTP_ORIGINS is //host:port exactly and reaches check_origin in lowercase; the README covers LAN access; absolute-form targets accepted, reason in AllowedHosts
Some checks failed
ci / guard (pull_request) Has been skipped
ci / guard-1 (pull_request) Has been skipped
ci / elixir in . (pull_request) Has been skipped
c4 model / c4-model-1 (pull_request) Successful in 3s
ci / gates (OTP 28.4.3 / Elixir 1.18.4) (pull_request) Failing after 3s
c4 model / c4-model (pull_request) Successful in 0s
ci / elixir in . (container) (pull_request) Successful in 6s
ci / Dependency advisories (pull_request) Successful in 0s
ci / image (amd64) (pull_request) Has been skipped
ci / attest (pull_request) Has been skipped
0aa33276d7
mcl-kanban#9 review: an MCL_HTTP_ORIGINS entry with an empty host (//:4010) refuses the boot, by a case; the README names MCL_HTTP_IP for LAN access
Some checks failed
ci / guard (pull_request) Has been skipped
ci / guard-1 (pull_request) Has been skipped
ci / elixir in . (pull_request) Has been skipped
ci / gates (OTP 28.4.3 / Elixir 1.18.4) (pull_request) Failing after 3s
c4 model / c4-model-1 (pull_request) Successful in 4s
c4 model / c4-model (pull_request) Successful in 0s
ci / elixir in . (container) (pull_request) Successful in 11s
ci / Dependency advisories (pull_request) Successful in 0s
ci / image (amd64) (pull_request) Has been skipped
ci / attest (pull_request) Has been skipped
ci / guard (push) Has been skipped
ci / guard-1 (push) Has been skipped
ci / elixir in . (push) Has been skipped
ci / gates (OTP 28.4.3 / Elixir 1.18.4) (push) Failing after 4s
c4 model / c4-model-1 (push) Successful in 4s
c4 model / c4-model (push) Successful in 0s
ci / elixir in . (container) (push) Successful in 11s
ci / Dependency advisories (push) Successful in 0s
ci / image (amd64) (push) Has been skipped
ci / attest (push) Has been skipped
16080f6e42
The host class `+` -> `*` mutant survived the refused-entries list: `//:4010`
booted with "" in the host list. The README sentence on LAN access left out
that MCL_HTTP_IP is loopback by default.
terra manually merged commit 16080f6e42 into main 2026-12-01 15:59:18 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
macula-services/mcl-kanban!10
No description provided.