Skip to content

[DOCS] Gateway TLS settings in the CLI configuration #1071

Closed

Description

@edenreich

Summary

The CLI can now reach a gateway behind a private CA or one that requires mutual TLS, through gateway.tls (inference-gateway/cli#1673, closing inference-gateway/cli#1672). The CLI page of the docs site should list the new settings.

gateway:
  url: https://gateway.example.internal:8443
  tls:
    ca_file: ~/.infer/gateway-ca.crt
    cert_file: ~/.infer/gateway-client.crt
    key_file: ~/.infer/gateway-client.key

Affected page: cli.md, under "Configuration".

Acceptance Criteria

  • gateway.tls.ca_file (INFER_GATEWAY_TLS_CA_FILE) is documented as a CA bundle trusted for gateway calls on top of the system roots
  • gateway.tls.cert_file and gateway.tls.key_file (INFER_GATEWAY_TLS_CERT_FILE, INFER_GATEWAY_TLS_KEY_FILE) are documented as the client certificate for a gateway that requires mTLS, set together
  • The page links the gateway's mTLS settings (SERVER_TLS_CLIENT_CA_PATH, gateway v0.61.0) and the operator's spec.server.tls.clientCARef (operator v0.31.0) as the server side

Activity

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

    @edenreich
    ContributorAuthor

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

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

    @inference-gateway-maintainer
    Contributor

    Claude finished @edenreich's task in 2m 41s —— View job • docs/issue-1071-20261101-1846 • Create PR ➔


    Documented gateway.tls on the CLI page

    Relevance check (ponytail, full)

    Still relevant, and the issue's facts match the code. Cloned inference-gateway/cli and read the real implementation rather than trusting the issue text:

    • internal/gateway/tls.go - ca_file is added to the system roots (systemRootsWith), cert_file/key_file are rejected unless both are set, paths go through ExpandHome, and unloadable material returns a failingTransport that fails every request with the cause instead of falling back.
    • cmd/runtime/env_overrides_test.go - confirms INFER_GATEWAY_TLS_CA_FILE, INFER_GATEWAY_TLS_CERT_FILE, INFER_GATEWAY_TLS_KEY_FILE map onto cfg.Gateway.TLS (config.PeerTLSConfig).

    What changed in cli.md

    • New ### Gateway TLS section: the YAML example, a table of the three settings with their env vars, the scope (every gateway call, daemon workers inherit), ~ expansion, the set-both-or-neither rule, and the fail-loudly behavior.
    • Server side linked as the issue asked: gateway SERVER_TLS_CLIENT_CA_PATH (v0.61.0) -> /configuration/#mutual-tls, operator spec.server.tls.clientCARef (v0.31.0) -> /operator/#mutual-tls-clientcaref-and-spec-client-tls.
    • Three env vars added to "Essential Environment Variables", plus one pointer bullet under Gateway Settings.

    All three acceptance criteria are covered. 33 added lines, one file, no new page - CLI features stay inside cli.md per the repo convention, so no sidebar change was needed.

    Skipped: no bun run preview eyeball pass (content-only change, no nav/theme edit) and I did not verify the two cross-page anchors render as links in the built HTML - I only grepped that the headings exist in configuration.md and operator.md. Risk: if either heading is retitled later, those links rot silently since the build does not check them.
    | Branch

  5. moved this from Todo to In progress in 2026on Nov 1, 2026
  6. moved this from In progress to QA in 2026on Nov 1, 2026
  7. moved this from QA to Done in 2026on Nov 2, 2026
  8. 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

    Projects

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions