Repository navigation
Labels
Description
Summary
The gateway configuration, observability and troubleshooting pages no longer match the gateway code. The sources are config/config.go (generated from the schemas openapi.yaml), the runtime in cmd/gateway/main.go, and the packages under internal/platform and api/middlewares:
SERVER_HOSThas defaulted to127.0.0.1since the schema change of 2026-08-04, butconfiguration.mdstill says0.0.0.0. Only the Docker images (Dockerfile,Dockerfile.goreleaser) setENV SERVER_HOST=0.0.0.0, so a gateway started from the release binary listens on loopback unlessSERVER_HOSTis set.- The gateway never reads
LOG_LEVEL. Log verbosity comes fromENVIRONMENT:developmentselects zap's development config (debug level), and any other value selects the JSON production config (info level). Seeinternal/platform/logger/logger.go. - The gateway never reads
OTEL_METRICS_EXPORTER,OTEL_EXPORTER_PROMETHEUS_HOSTorOTEL_EXPORTER_PROMETHEUS_PORT.internal/platform/otel/otel.goalways installs the Prometheus exporter, andcmd/gateway/main.goserves it at:<TELEMETRY_METRICS_PORT>/metrics. These variables belong to the Go and TypeScript ADKs. VIDEOS_ENABLEDandSERVER_MAX_REQUEST_BODY_SIZEexist inconfig/config.gobut are missing from the reference tables.troubleshooting.mdstill describes settings, metrics and middleware behavior the gateway no longer has.
Acceptance Criteria
-
configuration.mdServer Settings (and the Complete Configuration Example):SERVER_HOSTdefaults to127.0.0.1, not0.0.0.0; note that the published container images setSERVER_HOST=0.0.0.0 -
configuration.mdServer Settings: addSERVER_MAX_REQUEST_BODY_SIZE(default10485760, 10 MiB) -
configuration.mdGeneral Settings: addVIDEOS_ENABLED(defaultfalse). It gatesPOST /v1/videos,GET /v1/videos/{video_id}andGET /v1/videos/{video_id}/content, which return 404 while it is off -
configuration.mdTelemetry table and Complete Configuration Example: removeOTEL_METRICS_EXPORTER,OTEL_EXPORTER_PROMETHEUS_HOSTandOTEL_EXPORTER_PROMETHEUS_PORT; the gateway always serves Prometheus pull metrics onTELEMETRY_METRICS_PORT -
observability.md"Metrics Exporter Selection": drop "and the gateway itself"; only the ADKs readOTEL_METRICS_EXPORTER -
configuration.mdLogging and Debugging andmcp.mdTroubleshooting > Logging: replaceLOG_LEVEL(not read by the gateway) withENVIRONMENT=developmentfor debug logs -
configuration.mdparagraph after the General Settings table: audio is served byopenaiandelevenlabs(speech, sound effects, music) plus the locallocal/qwen3-ttsengine, not only byopenai(seeproviders/registry/registry_data.go) -
troubleshooting.md"Auth is enabled but every request returns 401": removeAUTH_OIDC_CLIENT_SECRETfrom "the three OIDC variables" (the gateway has no such setting) and cover anaudmismatch withAUTH_OIDC_AUDIENCEas a likely cause -
troubleshooting.mdProvider Errors PromQL:llm_responses_total{provider=...}no longer exists; usegen_ai_server_request_duration_seconds_countwith thegen_ai_provider_nameanderror_typelabels -
troubleshooting.mdproxy notes ("skips all middleware (auth, MCP, telemetry)", "skips the entire middleware chain"): the OIDC middleware inapi/middlewares/auth.goskips only/healthand the RFC 9728 metadata path, and the guardrailspre_callcheck runs on every path, so/proxy/...is still authenticated and policy-checked. Only the MCP and telemetry middlewares are limited to chat completions -
troubleshooting.md"Bypass MCP middleware": the gateway never setsX-MCP-Bypassitself; MCP follow-up calls are in-process provider calls ininternal/mcp/agent.go -
troubleshooting.mdConfiguration: booleans are parsed withstrconv.ParseBool(via go-envconfig), soTrue,TRUEand1are accepted; only values such asyesare rejected
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
edenreich commentedon Sep 25, 2026
@claude Can you work on this?
inference-gateway-maintainer commentedon Sep 25, 2026
Claude finished @edenreich's task in 3m 18s —— View job •
docs/issue-776-20260925-2135• [Create PR ➔](https://github.com/inference-gateway/docs/compare/main...docs/issue-776-20260925-2135?quick_pull=1&title=Issue%20%23776%3A%20Changes%20from%20Claude&body=This%20PR%20addresses%20issue%20%23776%0A%0AGenerated%20with%20%5BClaude%20Code%5D(https%3A%2F%2Fclaude.ai%2Fcode)Gateway config drift fixed
All acceptance criteria implemented in PR #782.
configuration.md-SERVER_HOSTdefault127.0.0.1+ container-image note (table, Server Settings prose, Complete Configuration Example)configuration.md- addedSERVER_MAX_REQUEST_BODY_SIZE(10485760) andVIDEOS_ENABLED(false)configuration.md- removedOTEL_METRICS_EXPORTER/OTEL_EXPORTER_PROMETHEUS_HOST/OTEL_EXPORTER_PROMETHEUS_PORT; the gateway always serves Prometheus pull metrics onTELEMETRY_METRICS_PORTconfiguration.md- Logging and Debugging documentsENVIRONMENTinstead ofLOG_LEVELconfiguration.md- audio served byopenaiandelevenlabsplus locallocal/qwen3-ttsobservability.md-OTEL_METRICS_EXPORTERis ADK-onlymcp.md- debug logs viaENVIRONMENT=developmenttroubleshooting.md- 401 section: noAUTH_OIDC_CLIENT_SECRET,audmismatch coveredtroubleshooting.md- PromQL usesgen_ai_server_request_duration_seconds_countwithgen_ai_provider_name/error_typetroubleshooting.md-/proxy/...is still authenticated and guardrailspre_call-checkedtroubleshooting.md- the gateway never setsX-MCP-Bypass; follow-ups are in-processtroubleshooting.md- booleans viastrconv.ParseBool(True,TRUE,1accepted;yesrejected)bun run lint:md,bun run format:check,bun run build,bun testall passNothing was left out. No generated sections were touched - all edits sit outside the
GENERATED:*markers.| Branch | PR #782
inference-gateway-releaser commentedon Sep 26, 2026
🎉 This issue has been resolved in version 0.9.17 🎉
The release is available on GitHub release
Your semantic-release bot 📦🚀