MCP scan allowlist ignores `tool:` field, so entries apply server-wide
メンテナーはふだん 11 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 76/100
調査の方向性
Start with scripts/mcp-scan/process_scan_results.py, especially load_security_config() and is_issue_allowed(), then inspect the scanner tests. Add coverage for per-tool matches, duplicate codes across tools, and entries without tool:. Done means tool-scoped entries only allow matching findings, server-wide entries retain their current behavior, and each match reports its own reason.
索引モデルが issue の本文から書いたものです。
説明
security.allowed_issues entries in MCP server specs commonly include a tool: field, which reads as scoping the entry to one tool. scripts/mcp-scan/process_scan_results.py never reads it. load_security_config() builds a dict keyed only by code (line 84), and is_issue_allowed() checks only the finding's AITech/AISubtech codes against that dict (lines 91-127). So every entry allowlists its code for every tool on the server, including tools added in future versions.
Impact
- 7 specs use
tool:across 17 entries (heroku, phoenix, sentry, server-everything, arxiv, clickhouse, redis). All of them are broader than they look. npx/heroku-mcp-server/spec.yamlhas eight separateAISubtech-12.1.2entries, one per tool. They collapse into a single dict key, so 12.1.2 is allowlisted on every Heroku tool, and only the last entry'sreasonsurvives into the scan output.- Prefix matching widens this further. An
AITech-12.1entry also covers everyAISubtech-12.1.xon every tool. - It makes narrow allowlists for LLM-analyzer flakes unsafe. For example, supabase's main build just failed on a nondeterministic AITech-8.2 (data exfiltration) finding on
get_publishable_keys. Allowlisting that would also silence any future 8.2 finding onexecute_sql.
Proposed fix
- Store allowlist entries as a list of
(code, tool, reason)rather than a dict keyed by code. - When an entry has
tool, match only findings whosetool_nameequals it. Entries withouttoolkeep today's server-wide behavior, so existing specs withouttool:don't change. - Keep each matched entry's own
reasonin the output. - Add tests for per-tool matching, duplicate codes across tools, and the no-
toolfallback.
Rollout note
Turning this on will narrow 17 existing entries. A spec whose allowlist was quietly covering other tools could start failing its scan. Running the scanner over those 7 specs before merging would show which entries need to be widened or duplicated.
- 主要言語
- Go
- スター
- 8
- フォーク
- 7
- 平均マージ
- 6日 15時間
- マージ済み PR(30日)
- 74
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
stacklok/dockyard のほかの issue
-
grype high security
難易度 2/5 1〜3時間 初心者へのやさしさ 53/100
メンテナーはふだん 11 日以内に返信
-
grype high security
難易度 2/5 1〜3時間 初心者へのやさしさ 56/100
メンテナーはふだん 11 日以内に返信
-
Package Postman with proxy-compatible Node再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープンneeds-triage
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
stacklok/dockyard#1195 · コメント 1 件 ·
メンテナーはふだん 11 日以内に返信
-
grype high security
難易度 2/5 1〜3時間 初心者へのやさしさ 52/100
stacklok/dockyard#1191 · コメント 3 件 ·
メンテナーはふだん 11 日以内に返信
-
grype high security
難易度 3/5 1〜2日 初心者へのやさしさ 52/100
stacklok/dockyard#1189 · コメント 3 件 ·
メンテナーはふだん 11 日以内に返信
stacklok/dockyard の issue をすべて見る
似ている issue
-
type/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
メンテナーはふだん 1 日以内に返信
-
messaging/v1: IsGRPCProtocol and InternalMetadataToGrpcMetadata panic on empty or nil metadata values対応中かも @patelshivani2283-lab が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
メンテナーはふだん 1 日以内に返信
-
needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
stacklok/toolhive-catalog#2024 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
メンテナーはふだん 1 日以内に返信