Repository navigation
fix(vault): the MCP tool vault_status takes no address - #2706
Conversation
The MCP tool vault_status published the option vault_addr. A model that gave it made devops-cli send a GET request to any path of any loopback or private host, and read the version and cluster_name fields of the answer. An address that ends in a query or a fragment made the text of the caller the path of the request. The tool now publishes only dry_run, through _PATH_PARAM_RESTRICTIONS, and asks the Vault that VAULT_ADDR or DEVOPS_CLI_VAULT_ADDR names. A call that gives vault_addr fails at the argument contract and sends no request. The command keeps --addr for a person. VaultSecretBroker also refuses an address that holds a query or a fragment, and the error for a missing address names the two variables and no longer names a --vault-addr option that does not exist. Refs #2639
… list Change: openspec/changes/2639-mcp-vault-status-no-addr/ Refs #2639
Change: openspec/changes/archive/2026-10-29-2639-mcp-vault-status-no-addr/ Refs #2639
|
Targeted tests on the rebased branch: 335 passed (tests/test_vault_cmd.py, test_vault_broker.py, test_fastmcp_contracts.py, test_mcp.py). An earlier run of 698 tests (these files plus test_docs.py, test_fastmcp_in_process.py, test_pydantic_ai_mcp.py, test_secret_resolution.py, test_network_security_and_trace_correlation.py, test_ai_gateway.py, test_valkey.py, test_k8s_logql.py) also passed. Fail-to-pass against origin/main (exit 0). Six tests fail on base and pass on the branch: On base, the call with |
🤖 I have created a release *beep* *boop* --- ## [0.21.0](v0.20.0...v0.21.0) (2026-10-29) ### Features * **telemetry:** count the project items by release tag, not by milestone ([#2710](#2710)) ([253a97d](253a97d)) ### Bug Fixes * **ai:** the MCP benchmark tool takes no server URL ([#2707](#2707)) ([7f7f84b](7f7f84b)), closes [#2638](#2638) * **rag:** name the Qdrant span server by host and port ([#2705](#2705)) ([57725c3](57725c3)), closes [#2459](#2459) * **roadmap:** take a plan that a person merged as a Planned item ([#2718](#2718)) ([043463b](043463b)), closes [#2714](#2714) * **security:** pin tflint; remove dive and devops docker analyze-layers ([#2712](#2712)) ([244bafb](244bafb)) * **vault:** the MCP tool vault_status takes no address ([#2706](#2706)) ([68c226c](68c226c)), closes [#2639](#2639) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
The MCP tool
vault_statuspublished the optionvault_addr. A model that gave it made devops-cli send a GET request to any path of any loopback or private host, and read theversionandcluster_namefields of the answer. An address that ends in a query or a fragment made the text of the caller the path of the request.The tool now publishes only
dry_run, through_PATH_PARAM_RESTRICTIONS. It asks the Vault thatVAULT_ADDRorDEVOPS_CLI_VAULT_ADDRnames, at the fixed path/v1/sys/health. With neither variable set, the call fails and the error names both. A call that givesvault_addrfails at the argument contract and sends no request. The command keeps--addrfor a person.VaultSecretBrokeralso refuses an address that holds?or#, so an address of a person cannot change the path either. The error for a missing address no longer names a--vault-addroption that does not exist.Change: openspec/changes/archive/2026-10-29-2639-mcp-vault-status-no-addr/
Closes #2639