Skip to content

[DOCS] rust-adk.md: inert A2A_SERVER_HOST, with_config scope, empty TLS CA path, unused artifacts timeouts #977

Closed

Description

@inference-gateway-maintainer

Summary

rust-adk.md mirrors the Rust ADK environment reference and carries four config claims that the crate does not implement. These were fixed upstream in the rust-adk README via inference-gateway/rust-adk#225 (closes inference-gateway/rust-adk#220) and the same corrections are needed here.

  • A2A_SERVER_HOST is listed as a server setting, but ServerConfig::host is read nowhere in the crate or its examples. Every example reads only config.server_config.port and hardcodes 0.0.0.0. The bind address comes solely from the SocketAddr passed to A2AServer::serve. Note: ARTIFACTS_SERVER_HOST is a different field and IS read - do not mark that one inert.
  • with_config(Config) is described as applying "port, TLS, auth, queue, telemetry". The builder consumes the agent-card URL fallback, TLS, auth, queue, the usage-metadata flag and artifacts. server_config.port only feeds the default advertised URL http(s)://localhost:<port>/a2a and never binds a listener, and telemetry_config is read only by telemetry::init, which the caller invokes separately.
  • A2A_SERVER_TLS_CLIENT_CA_PATH="" is shown as the "optional, unset" value. envy loads an empty string as Some(""), so with A2A_SERVER_TLS_ENABLED=true the server takes the mTLS branch in build_server_config and serve fails with "failed to read TLS certificate file ``". Any value, empty string included, turns on mTLS.
  • ARTIFACTS_SERVER_READ_TIMEOUT and ARTIFACTS_SERVER_WRITE_TIMEOUT are documented as per-request read and per-response write timeouts. Both are parsed into ArtifactsServerConfig but never referenced by the server - artifacts_server.rs builds its router and listener with no timeout layer.

Affected page: rust-adk.md (environment/config reference sections).

Acceptance Criteria

  • Drop A2A_SERVER_HOST from the env reference or mark it inert, noting the bind address comes only from the SocketAddr passed to A2AServer::serve.
  • Reword the with_config(Config) description to list what the builder actually consumes, and state that server_config.port only feeds the default advertised URL and telemetry_config is used only by telemetry::init.
  • Stop showing A2A_SERVER_TLS_CLIENT_CA_PATH="" as the unset value, and note that any value, including an empty string, turns on mTLS.
  • Mark ARTIFACTS_SERVER_READ_TIMEOUT and ARTIFACTS_SERVER_WRITE_TIMEOUT as parsed but not yet applied, or remove them from the table.

Activity

  1. added
    documentation
    on Oct 4, 2026
  2. added theissue type on Oct 4, 2026
  3. edenreich commented on Oct 4, 2026

    @edenreich
    Contributor

    @claude can you work on this? use /ponytail:ponytail

  4. inference-gateway-maintainer commented on Oct 4, 2026

    @inference-gateway-maintainer
    ContributorAuthor

    Claude finished @edenreich's task in 2m 42s —— View job • docs/issue-977-20261004-1601 • [Create PR ➔](https://github.com/inference-gateway/docs/compare/main...docs/issue-977-20261004-1601?quick_pull=1&title=Issue%20%23977%3A%20Changes%20from%20Claude&body=This%20PR%20addresses%20issue%20%23977%0A%0AGenerated%20with%20%5BClaude%20Code%5D(https%3A%2F%2Fclaude.ai%2Fcode)


    Done - PR #979 opened

    All four claims in rust-adk.md corrected, mirroring the upstream rust-adk README fix.

    • Gather context (issue + rust-adk.md, cross-checked against the upstream README)
    • A2A_SERVER_HOST marked inert - ServerConfig::host is never read, the bind address comes solely from the SocketAddr passed to A2AServer::serve. A2A_SERVER_PORT clarified the same way (feeds the advertised URL, not the listener). ARTIFACTS_SERVER_HOST left untouched.
    • with_config(Config) reworded - table cell points at a new note listing what the builder actually consumes (agent-card URL fallback, TLS, auth, queue, usage-metadata flag, artifacts), plus server_config.port only feeding the default advertised URL http(s)://localhost:<port>/a2a and telemetry_config being read only by telemetry::init.
    • A2A_SERVER_TLS_CLIENT_CA_PATH now documented as (omit) rather than an empty string, in both the TLS section and the env reference, with a note that any value - empty string included - turns on mTLS and that ="" fails at startup reading a cert from an empty path.
    • ARTIFACTS_SERVER_READ_TIMEOUT / ARTIFACTS_SERVER_WRITE_TIMEOUT marked parsed but not yet applied.
    • Validated: bun run lint:md, bun run format:check, bun run build all pass.
    • Committed (3845d5b) and PR opened; roadmap item moved to QA.

    All edits sit outside the GENERATED:adk-provider-table block, so no regeneration was needed. One wrinkle: two adjacent blockquotes tripped MD028, so the with_config note is plain bold-led prose instead of a second callout.
    | Branch docs/issue-977-20261004-1601 | PR #979

  5. inference-gateway-releaser commented on Oct 4, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.9.21 🎉

    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

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions