Skip to content

[FEATURE] Gateway client TLS settings: a private CA and a client certificate #1672

Description

@edenreich

Summary

infer cannot talk to a gateway that uses a private CA or requires client certificates. gateway in config.yaml has url and api_key, but no TLS settings, so:

  • an HTTPS gateway with a private CA only works through the process-wide SSL_CERT_FILE, which replaces the system roots for everything else the agent does
  • a gateway that requires mTLS is unreachable, because infer never presents a client certificate

Found while moving examples/kubernetes-session-teleport-netbird (#1671) to mTLS on every hop: the infer-k8s → gateway hop needs this, together with server mTLS in the gateway (inference-gateway/inference-gateway#817).

Proposed config:

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

Acceptance Criteria

  • gateway.tls.ca_file (INFER_GATEWAY_TLS_CA_FILE) is 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 presented as the client certificate
  • Every gateway call uses them: the agent loop, model listing, and the workers a daemon starts, including pod daemons in Kubernetes workspaces
  • Paths expand ~ like the daemon TLS paths
  • Tests cover a private-CA gateway and an mTLS gateway that rejects a request without the client certificate, and the configuration docs list the settings

Activity

  1. added
    enhancement
    on Oct 31, 2026
  2. moved this from Todo to In progress in 2026on Nov 1, 2026
  3. moved this from In progress to QA in 2026on Nov 1, 2026
  4. inference-gateway-releaser commented on Nov 1, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.240.0 🎉

    The release is available on:

    Your semantic-release bot 📦🚀

  5. moved this from QA to Done in 2026on Nov 2, 2026
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

    enhancementreleased

    Projects

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions