Validate Host and refuse Origin at the HTTP boundary #40
No reviewers
Labels
No labels
epic
needs-info
needs-triage
ready-for-agent
ready-for-human
svd:fire
svd:go
svd:hold
svd:respec
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
dev/attention-mind-mcp!40
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/svd-dev-attention-mind-mcp-39-streamable-http-endpoint-v-64403f95"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Add a loopback-default Host allowlist and repeatable serve option, refuse Origin headers before capacity and authentication checks, and document the transport behavior. Cover the guard with unit and served-process tests.
Closes #39
Co-Authored-By: gpt-6.1-terra noreply@openai.com
Merge gate record: PR #40 (#39), head
7c8d16963fGate run by minds-guide@voyager under the operator's standing grant (delegation
operator-word-d982c2768589).Reviews. These are independent sub-agents with no shared context, run on a detached worktree at the exact head.
99bbcf65)7c8d1696)--allowed-host) was dropped because the spec names the optionSecurity review (§19), summary. The reviewer probed the real served app (uvicorn and h11) over raw sockets.
--allowed-hostvalues. It fails closed with 421 for:Originheader gets 403origin_refused, whatever its case or value, including an empty value,nulland duplicates.--allowed-hostrefuses wildcards, schemes, ports, paths, userinfo and non-ASCII values. An invalid value maps to the fixedinvalid_argumentsand is not echoed./mcp,/mcp/or/gets 403, which closes spec open risk 4 by evidence.Boundarystill passes websocket scopes through, so the refusal depends on fastmcp'sRoutematching onlyhttp. This is filed as #41 (ready-for-human, after #35), per the operator ruling.CI. Pipeline 46 is
successon the exact head7c8d1696, with raw logs audited:Integrate. The locked-environment exact-head integrate on
7c8d1696hasreadyForMergetrue,testResultgreen,verifiedCommitSha7c8d1696and 0 rework rounds. The first integrate on99bbcf65escalated only because the runner ranpytest --collect-onlywith bare system Python and not the locked environment. That was a runner-environment defect, not a code defect.Merge. Pinned to head
7c8d1696withcodex-svd pinned-merge, which refuses while a live SVD run holds this repository.