Skip to content

[DOCS] ADK OIDC env vars drift: Go ADK dropped AUTH_CLIENT_SECRET, Rust ADK requires it #778

Closed

Description

Summary

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)

Activity

  1. added
    documentation
    on Sep 25, 2026
  2. edenreich commented on Sep 25, 2026

    @edenreich
    Contributor

    @claude Can you work on this?

  3. inference-gateway-maintainer commented on Sep 25, 2026

    @inference-gateway-maintainer
    ContributorAuthor

    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

    • 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/adk server/config/config.go - AuthConfig has Audience with the AUDIENCE env tag and no ClientSecret field.
    • inference-gateway/rust-adk src/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.

    PR: #786
    | Branch

  4. moved this from QA to Done in 2026on Sep 25, 2026
  5. inference-gateway-releaser commented on Sep 26, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.9.17 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationreleased

    Type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions