You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[DOCS] ADK OIDC env vars drift: Go ADK dropped AUTH_CLIENT_SECRET, Rust ADK requires it #778
The OIDC settings documented for the ADKs and the Go agents no longer match the ADK code:
Go ADK v0.28.0 removed AuthConfig.ClientSecret (AUTH_CLIENT_SECRET) and added AuthConfig.Audience (AUTH_AUDIENCE) in server/config/config.go. AUTH_AUDIENCE is a comma-separated list of accepted aud values that defaults to AUTH_CLIENT_ID. Every Go agent (browser-agent, documentation-agent, grafana-agent, n8n-agent, mock-agent) is on v0.28.0 and reads these under the A2A_ prefix.
In the Rust ADK, OidcJwtVerifier::from_config (src/server/auth.rs) returns an error when A2A_AUTH_ENABLED=true and any of the issuer URL, client ID or client secret is empty ("AUTH_ISSUER_URL, AUTH_CLIENT_ID, and AUTH_CLIENT_SECRET are required when AUTH_ENABLED=true"). That error fails the server builder. The verifier also always checks aud against the client ID. rust-adk.md documents both the client ID and the secret as optional.
Acceptance Criteria
adk.md Authentication table: remove AUTH_CLIENT_SECRET (not read since Go ADK v0.28.0) and add AUTH_AUDIENCE (comma-separated accepted aud values, empty means AUTH_CLIENT_ID); describe AUTH_CLIENT_ID as the fallback audience
browser-agent.md: remove A2A_AUTH_CLIENT_SECRET from the Docker Compose example and from the Auth rows of the configuration table, and add A2A_AUTH_AUDIENCE (browser-agent builds on Go ADK v0.28.0)
rust-adk.md Authentication section: A2A_AUTH_CLIENT_ID and A2A_AUTH_CLIENT_SECRET are required when A2A_AUTH_ENABLED=true, and build() fails without them. The aud claim is always checked against A2A_AUTH_CLIENT_ID, not only "when set". The secret is required at startup even though token verification does not use it, so "currently unused server-side" is misleading
rust-adk.md Configuration reference, Authentication table: apply the same correction to A2A_AUTH_CLIENT_ID and A2A_AUTH_CLIENT_SECRET (required when auth is enabled, not optional)
Gather context and verify against upstream sources
adk.md: drop AUTH_CLIENT_SECRET, add AUTH_AUDIENCE
browser-agent.md: drop A2A_AUTH_CLIENT_SECRET, add A2A_AUTH_AUDIENCE
rust-adk.md Authentication section: client id/secret required when auth enabled
rust-adk.md Configuration reference table: same correction
Validate (lint:md, format:check, build - all pass)
Commit + open PR
What changed
adk.md - Authentication table now lists AUTH_AUDIENCE (comma-separated accepted aud values, empty means AUTH_CLIENT_ID) in place of AUTH_CLIENT_SECRET, and AUTH_CLIENT_ID is described as the fallback audience.
browser-agent.md - A2A_AUTH_CLIENT_SECRET removed from both the Docker Compose example (line ~141) and the Auth rows of the configuration table; A2A_AUTH_AUDIENCE added.
rust-adk.md - Both the Authentication section table and the Configuration reference table now mark A2A_AUTH_ISSUER_URL, A2A_AUTH_CLIENT_ID and A2A_AUTH_CLIENT_SECRET as required when auth is enabled, with an added paragraph stating that build() fails with the verbatim error otherwise. The aud bullet no longer says "when A2A_AUTH_CLIENT_ID is set" - it is always checked. The "currently unused server-side" wording on the secret is replaced with the startup requirement.
Verification
Both claims in the issue were confirmed against upstream source before editing:
inference-gateway/adkserver/config/config.go - AuthConfig has Audience with the AUDIENCE env tag and no ClientSecret field.
inference-gateway/rust-adksrc/server/auth.rs - from_config returns the error when issuer URL, client id or client secret is empty, and audience is unconditionally set from client_id. Its unit tests (from_config_requires_client_id_and_secret) assert exactly that.
Not changed
authentication.md and typescript-adk.md still document AUTH_CLIENT_SECRET - that is the TypeScript ADK, which still reads it, so those pages are correct as-is and out of scope for this issue.
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 2m 39s —— View job •
docs/issue-778-20260925-2202• [Create PR ➔](https://github.com/inference-gateway/docs/compare/main...docs/issue-778-20260925-2202?quick_pull=1&title=Issue%20%23778%3A%20Changes%20from%20Claude&body=This%20PR%20addresses%20issue%20%23778%0A%0AGenerated%20with%20%5BClaude%20Code%5D(https%3A%2F%2Fclaude.ai%2Fcode)ADK OIDC env var drift - fixed
adk.md: dropAUTH_CLIENT_SECRET, addAUTH_AUDIENCEbrowser-agent.md: dropA2A_AUTH_CLIENT_SECRET, addA2A_AUTH_AUDIENCErust-adk.mdAuthentication section: client id/secret required when auth enabledrust-adk.mdConfiguration reference table: same correctionlint:md,format:check,build- all pass)What changed
adk.md- Authentication table now listsAUTH_AUDIENCE(comma-separated acceptedaudvalues, empty meansAUTH_CLIENT_ID) in place ofAUTH_CLIENT_SECRET, andAUTH_CLIENT_IDis described as the fallback audience.browser-agent.md-A2A_AUTH_CLIENT_SECRETremoved from both the Docker Compose example (line ~141) and the Auth rows of the configuration table;A2A_AUTH_AUDIENCEadded.rust-adk.md- Both the Authentication section table and the Configuration reference table now markA2A_AUTH_ISSUER_URL,A2A_AUTH_CLIENT_IDandA2A_AUTH_CLIENT_SECRETas required when auth is enabled, with an added paragraph stating thatbuild()fails with the verbatim error otherwise. Theaudbullet no longer says "whenA2A_AUTH_CLIENT_IDis set" - it is always checked. The "currently unused server-side" wording on the secret is replaced with the startup requirement.Verification
Both claims in the issue were confirmed against upstream source before editing:
inference-gateway/adkserver/config/config.go-AuthConfighasAudiencewith theAUDIENCEenv tag and noClientSecretfield.inference-gateway/rust-adksrc/server/auth.rs-from_configreturns the error when issuer URL, client id or client secret is empty, andaudienceis unconditionally set fromclient_id. Its unit tests (from_config_requires_client_id_and_secret) assert exactly that.Not changed
authentication.mdandtypescript-adk.mdstill documentAUTH_CLIENT_SECRET- that is the TypeScript ADK, which still reads it, so those pages are correct as-is and out of scope for this issue.PR: #786
| Branch
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 📦🚀