Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ All code authored in or evaluated by DevOps CLI must strictly adhere to the foll
10. **Bounded Error Detail**: Cap each external value in an exception `details` dictionary or a structured log at 256 characters (CWE-209, CWE-400).
11. **MCP Tool Inputs**: A URL or host that a model gives to an MCP tool is untrusted input, not configuration. A tool publishes no option for it, and queries the service that the configuration names. `_PATH_PARAM_RESTRICTIONS` in `src/devops_cli/ai/mcp/generator.py` sets the options that a tool publishes. A credential goes only to the origin that the configuration names, whatever the egress level is. `_key_for` in `src/devops_cli/ai/gateway.py` applies this rule to the AI API key. A tool that publishes such an option is a defect. A file path that a model gives is untrusted input too: a tool publishes no option for a path that the command writes or reads, unless a path helper confines the path (`safe_resolve_subpath` in `src/devops_cli/core/paths.py`).

The `--url` option of the `devops valkey` commands is an accepted case. A person types it, and no model gives the URL. So `valkey.password` goes to the host that the person names. Those commands are not MCP tools.
The `--url` option of the `devops valkey` commands is an accepted case. A person types it, and no model gives the URL. So `valkey.password` goes to the host that the person names. Six of the nine `devops valkey` commands are MCP tools: `valkey_ping`, `valkey_stats`, `valkey_info`, `valkey_get`, `valkey_set` and `valkey_flush`. These tools publish no URL option. The commands `valkey keys`, `valkey backup` and `valkey cli` are not MCP tools.

The `streamable-http` transport is a network listener. See [MCP Server on the Network](#mcp-server-on-the-network).

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

Reads: `SECURITY.md`, `docs/MCP_TOOLS.md`, `src/devops_cli/config/constants.py`. Changes: `SECURITY.md`.

- [ ] 1.1 Rewrite the --url paragraph under principle 11 of `SECURITY.md`. State that six of the nine `devops valkey` commands are MCP tools: `valkey_ping`, `valkey_stats`, `valkey_info`, `valkey_get`, `valkey_set` and `valkey_flush`. State that these tools publish no `url` option. State that a person types `--url` at the command line and no model gives the URL. State that `valkey keys`, `valkey backup` and `valkey cli` are not MCP tools. Remove the sentence `Those commands are not MCP tools.`, and verify that `! git grep -n "Those commands are not MCP tools" SECURITY.md` passes, that `for n in valkey_ping valkey_stats valkey_info valkey_get valkey_set valkey_flush; do git grep -q -w -e $n -- SECURITY.md || echo "missing $n"; done` prints nothing, and that `uv run devops ci docs` passes
- [x] 1.1 Rewrite the --url paragraph under principle 11 of `SECURITY.md`. State that six of the nine `devops valkey` commands are MCP tools: `valkey_ping`, `valkey_stats`, `valkey_info`, `valkey_get`, `valkey_set` and `valkey_flush`. State that these tools publish no `url` option. State that a person types `--url` at the command line and no model gives the URL. State that `valkey keys`, `valkey backup` and `valkey cli` are not MCP tools. Remove the sentence `Those commands are not MCP tools.`, and verify that `! git grep -n "Those commands are not MCP tools" SECURITY.md` passes, that `for n in valkey_ping valkey_stats valkey_info valkey_get valkey_set valkey_flush; do git grep -q -w -e $n -- SECURITY.md || echo "missing $n"; done` prints nothing, and that `uv run devops ci docs` passes
Loading