Commit Graph

1 Commits

Author SHA1 Message Date
teknium1
f86a484f78 test(security): per-profile secret scope E2E on a multiplexed serve (#120310 KNOWN)
One real `hermes serve` hosting two profiles (default + profiles/beta), each
with a distinct canary under the same .env variable name:

- control: the fixed sibling route GET /api/mcp/servers?profile=X resolves
  each profile's own ${SECRET} reference (multiplex active, scoping works)
- plugin_route (KNOWN #120310, strict xfail): a user dashboard plugin route
  reading get_secret() must return the requesting profile's value A->B->A;
  on main it raises UnscopedSecretError for every profile
- each profile's stdio MCP server env carries only its own configured
  secret: none of the other profile's canaries, never the launch provider key

Sabotage: PRs #120332/#120333/#120325 each turn plugin_route into
XPASS(strict); launch scope for ?profile= (web_server_profiles) reds the
control; unfiltered MCP env (mcp_tool_config._build_safe_env) and
os.environ ${VAR} lookup (config._env_ref_lookup) red the MCP env test.
2026-09-24 04:30:29 -07:00