Mask MCP header and env values over the API #4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "mcp-secret-masking"
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?
MCP server headers and env vars usually carry credentials (Authorization
headers, API keys), but GET /api/config returned them in full, so anyone
holding the Lumina token could copy every third-party key out rather
than only use them through the agent.
Every header and env value is now sent as the mask, like the LLM key and
the OAuth client secret. On save, a masked value keeps the one stored
under the same server name and key. A masked value with nothing to keep
(a renamed key or server) is refused with a 400 instead of being saved
as the literal mask, which would silently break the server. The form
hints explain the dots.
Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com