Skip to content

[DOCS] Document the gateway mutual TLS fields on the operator Gateway CRD #1068

Closed

Description

@inference-gateway-maintainer

Summary

The operator now exposes the gateway's mutual TLS settings declaratively on the Gateway CRD, so the operator CRD reference needs the new fields. The gateway env vars themselves are already documented in the configuration reference ("Mutual TLS" section) - this is about the operator-facing CRD equivalents.

New fields (inference-gateway/operator, landed in #313 and #315):

  • spec.server.tls.clientCARef - a Secret key holding a PEM CA bundle. Surfaced as SERVER_TLS_CLIENT_CA_PATH, requiring and verifying client certificates on the inbound listener. Needs spec.server.tls.enabled: true, and the health probes switch to tcpSocket because the kubelet cannot present a client certificate.
  • spec.client.tls.caRef - extra PEM CA bundle trusted on top of the system roots for outbound provider calls (CLIENT_TLS_CA_PATH). Valid on its own.
  • spec.client.tls.certificateRef / spec.client.tls.keyRef - the client certificate and key the gateway presents to providers requiring mTLS (CLIENT_TLS_CERT_PATH / CLIENT_TLS_KEY_PATH). The CRD rejects one without the other.

Each reference is a SecretKeySelector (name plus key) mounted read-only under its own directory in the gateway pod.

Related PR: inference-gateway/operator#315

Acceptance Criteria

  • The operator Gateway CRD reference lists spec.server.tls.clientCARef and the spec.client.tls.* fields with their env var mapping
  • The two validation rules are documented (client CA needs server TLS enabled, client certificate and key go together)
  • An end-to-end example shows an operator-managed gateway with inbound mTLS and a client certificate for a provider
  • The probe behaviour change under inbound mTLS (tcpSocket instead of HTTPS) is called out

Activity

  1. added
    documentation
    on Nov 1, 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 16s —— View job • docs/issue-1068-20261101-1351


    Mostly already done - one gap closed

    • Check relevance: commit 740ce4a ("docs(operator): gateway crd mutual tls fields") landed on main about an hour before this run and already covers most of the issue
    • Verify against the acceptance criteria and the upstream CRD (api/v1alpha1/gateway_types.go)
    • Document the one missing piece
    • Validate (format, lint:md, format:check, build)
    • Open PR

    Relevance check

    Acceptance criterion State before this PR
    Fields listed with env var mapping Already done - table in "Mutual TLS (clientCARef and spec.client.tls)" with env vars, mount paths and direction
    The two validation rules Gap. Only the first was mentioned, and loosely - "it is only read when spec.server.tls.enabled is true", as if silently ignored. The cert/key pairing rule was absent
    End-to-end example with inbound mTLS and a provider client certificate Already done - cert-manager example plus the rendered env vars
    Probe switch to tcpSocket Already done, including the caveat that a TCP probe does not call /health

    I read the upstream CRD to confirm: both are CEL XValidation rules, so the API server rejects the Gateway at admission - it does not silently ignore the field.

    Change

    operator.md: replaced the loose sentence with a two-row table stating both rules and their verbatim admission messages (spec.server.tls.clientCARef needs spec.server.tls.enabled: true, spec.client.tls needs certificateRef and keyRef together), and noted that caRef is valid on its own.

    Create a PR - already opened as #1069.

    I did not re-verify the mount paths or the rendered env var values from #1067 against the operator controller, and I did not preview the page in a browser (build passes, table renders as standard Markdown).
    | docs/issue-1068-20261101-1351

  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