Skip to content

Wire Origin validation into the vMCP middleware chain #5400

@JAORMX

Description

@JAORMX

Follow-up from #4908 (Origin header validation for DNS-rebind protection)

#4908 wires the origin validation middleware into the thv run / thv proxy / proxyrunner paths. vMCP composes its own middleware chain (via factory.NewIncomingAuthMiddleware and pkg/vmcp/server/server.go's Handler) and does not reference the origin package, so vMCP-fronted servers do not currently enforce Origin-header validation.

Scope

  • Integrate origin validation (or the shared origin.ResolveAllowedOrigins derivation) into the vMCP incoming middleware chain.
  • Decide how the allowlist is configured for vMCP (CLI flag / config file / CRD), consistent with the workload-CRD follow-up.

Context

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestgoPull requests that update go codeneeds-triageIssue needs initial triage by a maintainersecurityvmcpVirtual MCP Server related issues

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions