Repository navigation
feat(cliconfig): per-server --mcp-server-insecure-http opt-in, order-independent - #360
Merged
Merged
Conversation
…independent (#358) MCPServerList.Set no longer runs the token-bearing scheme gate inline: entries are collected during parse and the CWE-319 gate runs in a new post-parse Finalize step the three mains (mecated, mecatequi, mecak8s) call right after flag.Parse — so the new repeatable --mcp-server-insecure-http <name> relaxation composes with --mcp-server regardless of argv order (the titlani#40 contract addition). The relaxation applies ONLY to the named server (same ^[A-Za-z0-9_]+$ name grammar as #347), ONLY to the http scheme; an unknown name, or a name whose URL is https/loopback/non-http, is a loud error (a stale acknowledgment is never silently inert). Default posture unchanged: a token-bearing http non-loopback URL without the relaxation still fails. Servers() panics fail-closed before a successful Finalize. Co-Authored-By: Claude Fable 5 <[email protected]>
New ADR 0090 records the per-server plain-http opt-in decision, the rejected proxy-sidecar alternative (satisfies the gate without changing wire security), the rejected global escape hatch, and the order-independence requirement from titlani#40. Factory invocation profile (docs/usage/mecatequi-ci.md), the mecated/mecak8s flag tables, and the user-docs MCP pages state the acknowledgment plainly: cleartext on the network path; network-layer controls + short-lived tokens are the operator's mitigations. llms.txt regenerated. Co-Authored-By: Claude Fable 5 <[email protected]>
3 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.
Closes #358. Part of the dark-factory epic (stacklok/stacklok-epics#297); the cross-repo dependency of titlani#40 (the kubernetes arm of the run contract), the way #341 was for titlani#38.
What: an explicit, named, off-by-default operator opt-in for token-bearing plain-http
--mcp-serverendpoints — for in-cluster schedulers pointing agents at NetworkPolicy-scoped Services where the same short-TTL bearer already crosses the identical wire from the scheduler's own client. A pod-local proxy sidecar was considered and rejected (satisfies the gate without changing wire security).--mcp-server-insecure-http <name>(repeatable), registered by the same sharedRegisterMCPServerFlagall three mains use.Setcollects; a new post-parseFinalize()resolves relaxations and runs the CWE-319 scheme gate — both argv orders pinned end-to-end in all three mains.Servers()panics before a successfulFinalize— a future main cannot silently reopen CWE-319 by forgetting the call.tequitlleaves a token-bearing httpvmcpfailing, error namesvmcp); http-scheme only; unregistered/https/loopback/non-http relaxations are loudFinalizeerrors. Nuance (ADR'd): a relaxation on a tokenless off-host http server is accepted — the acknowledgment matches the wire shape, and schedulers inject tokens in some runs and not others.Gates: task build / test / lint / api:check / docs all green (engine untouched, no api:update). One pre-existing env flake noted, not touched:
cmd/mecatui TestLocalProviderCheckRunsfails when the ambient shell exportsOPENROUTER_API_KEY.🤖 Generated with Claude Code