Skip to content

[DOCS] Document mutual TLS for the gateway server and provider clients #1060

Closed

Description

Summary

inference-gateway/inference-gateway#818 adds mutual TLS to the gateway, in both directions. The user-facing change is four new environment variables that need documenting.

As a server:

  • SERVER_TLS_CLIENT_CA_PATH - CA bundle that signs accepted client certificates. Setting it makes a client certificate mandatory and verified, so a request without one fails the TLS handshake. It requires SERVER_TLS_CERT_PATH and SERVER_TLS_KEY_PATH to be set, and the gateway refuses to start otherwise.

As a client of its providers:

  • CLIENT_TLS_CA_PATH - extra CA bundle trusted for provider calls, added on top of the system roots rather than replacing them (unlike the process-wide SSL_CERT_FILE workaround).
  • CLIENT_TLS_CERT_PATH / CLIENT_TLS_KEY_PATH - client certificate and key presented to providers that require mutual TLS. One without the other is a startup error.

Affected pages: the configuration reference (the Server settings and Client settings tables), and whichever TLS / security page covers SERVER_TLS_CERT_PATH today. A short "mutual TLS" section showing an inbound mTLS gateway plus a provider behind mTLS would be worth adding.

Originating issue: inference-gateway/inference-gateway#817.

Activity

  1. added
    documentation
    on Oct 31, 2026
  2. edenreich commented on Nov 1, 2026

    @edenreich
    Contributor

    @claude can you document this? use /ponytail:ponytail first check if it's still relevant.

  3. inference-gateway-maintainer commented on Nov 1, 2026

    @inference-gateway-maintainer
    ContributorAuthor

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


    Documented mutual TLS

    • Check the request is still relevant - yes. All four variables are in the canonical inference-gateway/schemas OpenAPI config section on main, with the same semantics the issue describes, and no page in this repo mentioned them.
    • Update the configuration reference (Server + Client settings tables and the full .env block)
    • Add a "Mutual TLS" section
    • Validate: bun run lint:md, bun run format:check, bun run build, bun test - all pass
    • Commit and open PR -> docs(configuration): document mutual TLS for server and provider clients #1066

    What changed

    All in configuration.md - that page is the only place that documents SERVER_TLS_CERT_PATH for the gateway today (there is no separate gateway TLS/security page), so adding one would have been a new page nobody asked for.

    • Server settings: SERVER_TLS_CLIENT_CA_PATH, noting it makes a client certificate mandatory and verified and that it requires the server cert and key or the gateway refuses to start.
    • Client settings: CLIENT_TLS_CA_PATH (added on top of the system roots), CLIENT_TLS_CERT_PATH / CLIENT_TLS_KEY_PATH (one without the other is a startup error).
    • A "Mutual TLS" section with both directions in one env block plus the matching curl --cert call, and a line under Client Settings on trusting an internal CA instead of the process-wide SSL_CERT_FILE workaround.

    The Server/Client tables are hand-written, not inside GENERATED:* markers, so no regeneration was needed - confirmed by regenerating against the live schema and seeing no diff in generated sections.

    Downstream: filed inference-gateway/operator#314 - the operator's spec.server.tls has no client-CA or outbound client-certificate field, so an operator-managed gateway cannot enable mTLS declaratively yet.

    Skipped: no change to operator.md (the operator cannot configure these yet) or to the ADK pages, which document their own separate A2A_SERVER_TLS_* / ADK CLIENT_TLS_* variables. Not verified against a running gateway - the behavior described comes from the schema descriptions and the issue, so if the gateway's handshake-failure or startup-validation details differ, the wording follows the schema.
    | Branch | PR #1066

  4. moved this from Todo to In progress in 2026on Nov 1, 2026
  5. moved this from In progress to QA in 2026on Nov 1, 2026
  6. moved this from QA to Done in 2026on Nov 1, 2026
  7. inference-gateway-releaser commented on Nov 8, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.9.24 🎉

    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

    No type

    Projects

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions