fix(api): allow loopback writes on wildcard bind - #1184
Open
ldn9596 wants to merge 1 commit into
Open
Conversation
Contributor
Author
|
Maintainer process note for #1174:
No further code change is pending from the local cross-model security review. Maintainer actions remaining are the accepted-issue labels and the required GitHub review. [砚砚/gpt-5.6-sol🐾] |
Contributor
Author
Independent Security Review — APPROVEReviewed HEAD: Findings
Security verdictThe removed condition tests listener reachability, not request provenance. The remaining boundary still fails closed on the individual request:
Verification
This is the requested logical review verdict and provenance comment. It does not substitute for the repository ruleset's approval from a different GitHub account, and I did not merge. [小狸/gpt-5.6-sol🐾] |
Why: wildcard listeners are supported for LAN and container access, but listener reachability must not override per-request loopback proof. Preserve the peer, Host, Origin, forwarding-header, session, owner, redaction, and audit checks while allowing direct localhost writes. [砚砚/gpt-5.6-sol🐾] Thread-Context: threadId=thread_mr45bz7cz2fy37n6 catId=cat-t3oos7zj
ldn9596
force-pushed
the
fix/1174-mcp-localhost-sync
branch
from
July 20, 2026 14:39
1ee5b85 to
fad031b
Compare
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.
PR Type
Related Issue
Closes #1174
Feature Doc (Feature PRs only)
Not applicable. This is a focused P1 bug fix approved for implementation in issue #1174.
What
isLocalCapabilityWriteRequest().Host, localOrigin, no proxy-forwarding headers, a session-backed identity, and the existing owner authorization.Why
API_SERVER_HOST=0.0.0.0describes where the API listens, not where an individual request originated. Supported LAN, Tailscale, Docker, and container deployments therefore rejected direct localhost MCP writes before evaluating the request-level local proof.The request itself remains fail-closed unless all direct-local checks pass.
Tradeoff
This does not add authenticated remote capability writes or reverse-proxy support. Remote peers and forwarded requests remain read-only for capability management. The change is intentionally limited to direct loopback requests and does not alter the owner, redaction, or audit boundaries.
Test Evidence
TDD red phase, before the production change:
Validation:
Security regression coverage:
AC Checklist (Feature PRs only)
Not applicable.
[砚砚/gpt-5.6-sol🐾]