Skip to content

Support TLS for all communication paths #1556

@elevran

Description

@elevran

What would you like to be added:
Support encryption on inference gateway communication paths.

  1. Gateway to EPP (EPP TLS support provides very minimal protection #582)
  2. Gateway to model server

At a minimum include documentation on how to configure the system for end-to-end encryption. Optionally, include this as part of the IGW configuration or contract with gateways.

Why is this needed:
Enterprise requirement and regulations may dictate use of TLS to secure communications inside cluster.
This can be enabled by deploying a service mesh, which might be a relevant option in some deployments.
In other scenarios, IGW might need to support encryption directly.

  • Communication to EPP can already be secured (albeit with limitations - see EPP TLS support provides very minimal protection #582).
  • EPP to model server (e.g., solved for metricsscraping by specifying the scheme viamodel-server-metrics-scheme` CLI option)
  • since metrics and inference are served over the same port, the use of the above also implies inference should be over TLS.

In the case of HTTP client requests, the gateway would need to upgrade the connection to model servers to use HTTPS.
There is no indication in InferencePool or EPP response (EPP returns IP:port to the gateway, not scheme) whether model servers serve over HTTPS.
Unfortunately, BackendTLSPolicy mandates a Service backend and can't be used for InfererncePool backends. Gateway specific configurations could be used in some cases (e.g., Istio DestinationRule) - but are implementation dependent and place responsibility with the user (e.g., a "shadow service" is defined for the inference pool, but its name is computed at runtime).

Metadata

Metadata

Assignees

No one assigned

    Labels

    lifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.needs-triageIndicates an issue or PR lacks a `triage/foo` label and requires one.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions