[compliance] Compliance Gap: Entra auth fields undocumented in spec 7.6 and OIDC missing-env behavior conflicts with 7.6.1
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 15/100
- Tipo di issue
- Documentazione
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- go, json
- Ambito
- authentication, documentation
Direzione di ricerca
Start in docs/src/content/docs/reference/mcp-gateway.md at §7.6 and §7.6.1, then compare them with internal/config/validation_server.go (lines 233-256) and the schema at internal/config/schema/mcp-gateway-config.schema.json. Two tests, TestLoadFromFile_OIDCAuthMissingEnvVar in internal/config/config_core_test.go and internal/config/validation_test.go, show the fail-fast behavior. Done means maintainers have decided which contract is correct and the spec or the code has been changed to match, with the Azure fields documented or scoped as an extension.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
MCP Gateway Compliance Review — 2026-11-22
Summary
Reviewed commits 97e8cb6a8..6edab3233 (57 commits) against MCP Gateway Specification 1.18.0 (blob b3c82951, unchanged). Two Important findings. Everything else checked was compliant: digest-pinned container images (§4.1.2), forcePublicRepos precedence (§4.1.3.8), OIDC header overwrite and 60-second refresh margin (§7.6.1), and the redirect-suppression consolidation (no upstream path bypasses doWithoutFollowingRedirects).
Go tests could not run in this environment (module proxy TLS verification failed), so this review is static.
Important Issues (SHOULD / spec-drift)
1. Entra/Azure auth fields are implemented but not in the specification
Specification Section: 7.6 Upstream Authentication (OIDC) and 4.1.2 Server Configuration Fields
Current State: The auth object accepts provider (only "azure"), azureTenantId, azureClientId, azureScope, and azureCloud. These are implemented and enforced in:
internal/config/config_core.go:305-319(struct fields)internal/config/validation_server.go:233-243(required tenant and client ID whenprovider: "azure")internal/config/schema/mcp-gateway-config.schema.json(auth.properties,additionalProperties: false)internal/oidc/azure.go:23-25(AzureDefaultAudience = "(azureadtokenexchange/redacted)",AzureDefaultScope)internal/launcher/launcher.go:178-197(token exchange wiring)
Spec 1.18.0 §7.6.1 documents only type and audience, and contains no reference to Azure or Entra. The schema and implementation therefore exceed the specification.
Gap: Implementations and the schema accept fields the specification does not define, so conformance cannot be checked from the spec. Spec 4.3.1 requires rejecting unrecognized fields, which the spec's own field list does not cover for auth.
Suggested fix: Either document provider, azureTenantId, azureClientId, azureScope, and azureCloud in §7.6 (with a changelog entry and the Entra defaults), or confirm this is an out-of-spec extension and scope it accordingly. Related: #16955 (Entra OIDC support, closed).
2. Spec §7.6.1 step 2 conflicts with config-time OIDC fail-fast
Specification Section: 7.6.1 GitHub Actions OIDC, Behavior step 2
Requirement:
"If a server has
auth.type: "github-oidc"but the OIDC env vars are missing, the gateway MUST log an error at startup and MUST return an error when the server is first accessed."
Current State: internal/config/validation_server.go:245-256 rejects the configuration at load time when ACTIONS_ID_TOKEN_REQUEST_URL is unset. Tests TestLoadFromFile_OIDCAuthMissingEnvVar (internal/config/config_core_test.go:897) and internal/config/validation_test.go:1155 lock in this behavior. The launcher's defensive fallback (internal/launcher/launcher.go:100) only runs when validation was bypassed.
Gap: The code fails at config load (startup refuses to start with the server configured). The spec requires a startup log plus a deferred error on first access. The behavior was chosen deliberately in #3364 and #3538 (fail-fast), so the spec and implementation disagree. Spec owners should decide which contract is correct.
Suggested fix: Spec owners should either revise §7.6.1 step 2 to match fail-fast config validation (preferred, since it matches the merged decision), or the implementation should defer the error to first access. Do not change code until the spec direction is set.
Compliance Status
- ✅ Configuration Format and digest-pinned images (§4.1.2): Compliant
- ✅ forcePublicRepos precedence (§4.1.3.8): Compliant
- ✅ Protocol behavior, authentication header handling (§5, §7.1): Compliant
- ✅ OIDC header overwrite and refresh margin (§7.6.1 steps 3–4): Compliant
- ⚠️ OIDC auth fields (§7.6): Implemented beyond the spec (Finding 1)
- ⚠️ OIDC missing-env behavior (§7.6.1 step 2): Conflicts with implementation (Finding 2)
- ⚠️ Stdout error channel (§9.1/§9.2): Tracked separately in #16553 (closed, not_planned); not re-filed
References
- MCP Gateway Specification (v1.18.0)
- Related: #16553, #16955, #3364, #3538
- Commit range reviewed:
97e8cb6a8..6edab3233
Generated by Daily Compliance Checker · copilot · routed: haiku55 xhigh · ~44 AIC · ⊞ 8K · ◷
- Lingua principale
- Go
- Stelle
- 190
- Fork
- 61
- Merge medio
- 7h 35m
- PR unite (30g)
- 215
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Include un Dockerfile o un file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di github/gh-aw-mcpg
-
automated-analysis code-quality refactoring
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
github/gh-aw-mcpg#17105 ·
I maintainer di solito rispondono entro 1 giorno
-
smoke-copilot
Difficoltà 3/5 1-3 ore Idoneità per principianti 8/100
github/gh-aw-mcpg#17112 ·
I maintainer di solito rispondono entro 1 giorno
-
automation mcp-gateway test
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 5/100
github/gh-aw-mcpg#17110 ·
I maintainer di solito rispondono entro 1 giorno
-
Smoke Copilot - Issue GroupAperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 4/100
github/gh-aw-mcpg#17090 ·
I maintainer di solito rispondono entro 1 giorno
-
Smoke Copilot - Issue GroupAperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 5/100
github/gh-aw-mcpg#17089 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di github/gh-aw-mcpg
Issue simili
-
go good first issue test
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
I maintainer di solito rispondono entro 2 giorni
-
[UI] Guard webApis against undefined window in SSR environmentsForse già presa @madhavzanwar l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
I maintainer di solito rispondono entro 1 giorno
-
kind/enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 2 giorni