-
Notifications
You must be signed in to change notification settings - Fork 703
Closed
Labels
area/gateway-apiIssues or PRs related to the Gateway (Gateway API working group) API.Issues or PRs related to the Gateway (Gateway API working group) API.kind/featureCategorizes issue or PR as related to a new feature.Categorizes issue or PR as related to a new feature.
Description
This is an enhancement request, but it could also be considered a bug, as the Kubernetes Gateway API might require this support (see @skriss's comment).
Description
A Gateway object with a Listener that accepts TLSRoutes should support mode: Terminate as detailed in the GatewayTLSConfig spec.
User story
I have an application that speaks a nonstandard application protocol over TCP. I want the traffic wrapped in TLS. And since I want my application to be as simple as possible, I want the Gateway to terminate the TLS tunnel.
This can be specified with this example Gateway Spec:
apiVersion: gateway.networking.k8s.io/v1beta1
kind: Gateway
spec:
listeners:
- allowedRoutes:
kinds:
- group: gateway.networking.k8s.io
kind: TLSRoute
name: tls
port: 5000
protocol: TLS
tls:
mode: Terminate
certificateRefs:
- name: my-secretAnd a TLSRoute like:
apiVersion: gateway.networking.k8s.io/v1alpha2
kind: TLSRoute
spec:
hostnames:
- example.com
rules:
- backendRefs:
- kind: Service
name: example
port: 3102Issue
Currently, if this Gateway is created, Contour returns an error on the Gateway object with the message:
Listener.TLS.Mode must be "Passthrough" when protocol is "TLS".
skriss
Metadata
Metadata
Assignees
Labels
area/gateway-apiIssues or PRs related to the Gateway (Gateway API working group) API.Issues or PRs related to the Gateway (Gateway API working group) API.kind/featureCategorizes issue or PR as related to a new feature.Categorizes issue or PR as related to a new feature.
Type
Projects
Status
Done