Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

MCP Gateway rejects digest-pinned container images: embedded JSON schema disagrees with containerPattern

オープン 初心者向け
#69,405 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
72/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
docker, go
領域
backend

調査の方向性

サーバーの container パターンを internal/config/schema/mcp-gateway-config.schema.json で確認し、すでにオプションの @sha256 サフィックスを受け入れている internal/config/validation_rules.go の containerPattern と比較してください。同じダイジェストのグループをスキーマのパターンに追加し、次に internal/config/validation_schema_test.go にケースを追加して、両方のダイジェスト形式が通ること、短いダイジェストが失敗することを示してください。ダイジェストで固定された設定が読み込まれ、無効なイメージが引き続き拒否されれば完了です。

索引モデルが issue の本文から書いたものです。

説明

ai-inspected
Analysis

The MCP Gateway (github/gh-aw-mcpg, v0.4.33) rejects digest-pinned server images, so MCP server images cannot be pinned by digest from a workflow. gh-aw's workflow schema allows container: name:tag@sha256:<64 hex>, so it compiles, then fails at gateway startup.

In gh-aw-mcpg the two validators disagree:

  • internal/config/validation_rules.go: containerPattern ends with (@sha256:[a-fA-F0-9]{64})? (accepts digests; validation_string_patterns_test.go has digest cases as valid).
  • internal/config/schema/mcp-gateway-config.schema.json (embedded, applied to the stdin config): the server container pattern ends with (:([a-zA-Z0-9._-]+|latest))?$, no digest. Unchanged from v0.4.28 to v0.4.33.

Reproduce with ghcr.io/github/gh-aw-mcpg:v0.4.33 and an identical minimal config, changing only container:

  • ghcr.io/github/github-mcp-server:v1.0.0: accepted.
  • ...:v1.0.0@sha256:<64 hex> and ...@sha256:<64 hex>: failed to load config: ... jsonschema validation failed ... Location: <root>.
Implementation Plan (in github/gh-aw-mcpg)
  1. internal/config/schema/mcp-gateway-config.schema.json: append (@sha256:[a-fA-F0-9]{64})? to the server container pattern(s), matching containerPattern.
  2. Tests (internal/config/validation_schema_test.go): both digest forms pass schema validation; a short digest fails.
  3. Run make agent-finished before completing.
Acceptance Criteria

A config whose server container is name:tag@sha256:<64 hex> or name@sha256:<64 hex> loads and launches on the gateway; invalid images are still rejected.

主要言語
Go
スター
5.4k
フォーク
584
平均マージ
3時間 16分
マージ済み PR(30日)
826

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

github/gh-aw のほかの issue

github/gh-aw の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。