[compliance] Compliance Gap: Entra auth fields undocumented in spec 7.6 and OIDC missing-env behavior conflicts with 7.6.1
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 15/100
- Tipo de issue
- Documentación
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- go, json
- Área
- authentication, documentation
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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 · ◷
- Lenguaje dominante
- Go
- Estrellas
- 190
- Forks
- 61
- Merge medio
- 7 h 35 min
- PR fusionados (30 d)
- 215
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de github/gh-aw-mcpg
-
automated-analysis code-quality refactoring
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
github/gh-aw-mcpg#17105 ·
Los mantenedores suelen responder en 1 día
-
smoke-copilot
Dificultad 3/5 1-3 horas Aptitud para principiantes 8/100
github/gh-aw-mcpg#17112 ·
Los mantenedores suelen responder en 1 día
-
automation mcp-gateway test
Dificultad 1/5 Menos de una hora Aptitud para principiantes 5/100
github/gh-aw-mcpg#17110 ·
Los mantenedores suelen responder en 1 día
-
Smoke Copilot - Issue GroupAbierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 4/100
github/gh-aw-mcpg#17090 ·
Los mantenedores suelen responder en 1 día
-
Smoke Copilot - Issue GroupAbierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 5/100
github/gh-aw-mcpg#17089 ·
Los mantenedores suelen responder en 1 día
Todos los issues de github/gh-aw-mcpg
Issues similares
-
go good first issue test
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Los mantenedores suelen responder en 2 días
-
[UI] Guard webApis against undefined window in SSR environmentsPosiblemente ocupada @madhavzanwar la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Los mantenedores suelen responder en 1 día
-
kind/enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 2 días