-
Notifications
You must be signed in to change notification settings - Fork 891
feat(helm): add TLS termination for Envoy Gateway ingress #2015
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
zhaohuabing
wants to merge
1
commit into
NVIDIA:main
Choose a base branch
from
zhaohuabing:feat/eg-ingress-tls-termination
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+123
−5
Draft
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| # SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| # Gateway API overlay with TLS termination at the Envoy Gateway listener. | ||
| # | ||
| # Exercises the HTTPS listener branch of templates/gateway.yaml for | ||
| # `helm template`/lint coverage. Envoy Gateway terminates TLS using the | ||
| # referenced kubernetes.io/tls Secret and forwards plaintext to the gateway pod, | ||
| # so the gateway runs with TLS disabled and uses OIDC for client identity. | ||
| # | ||
| # The certificate Secret (openshell-ingress-tls) and the OIDC issuer below are | ||
| # placeholders for render coverage; a real deployment must provide a valid TLS | ||
| # Secret in the release namespace and a reachable OIDC issuer. | ||
|
|
||
| grpcRoute: | ||
| enabled: true | ||
| gateway: | ||
| create: true | ||
| className: "eg" | ||
| listener: | ||
| port: 443 | ||
| protocol: HTTPS | ||
| tls: | ||
| certificateRefs: | ||
| - name: openshell-ingress-tls | ||
| hostnames: [] | ||
|
|
||
| server: | ||
| # Envoy terminates TLS at the edge; the gateway listens plaintext behind it. | ||
| disableTls: true | ||
| oidc: | ||
| issuer: "https://keycloak.example.com/realms/openshell" | ||
| audience: "openshell-cli" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -372,9 +372,21 @@ grpcRoute: | |
| namespace: "" | ||
| # Listener settings (only used when gateway.create is true). | ||
| listener: | ||
| # -- Listener port for the generated Gateway resource. | ||
| # -- Listener port for the generated Gateway resource. Use 443 with protocol HTTPS. | ||
| port: 80 | ||
| # -- Listener protocol for the generated Gateway resource. | ||
| # -- Listener protocol for the generated Gateway resource: HTTP or HTTPS. | ||
| # HTTPS terminates TLS at the Envoy Gateway listener; pair it with | ||
| # server.disableTls=true so Envoy forwards plaintext to the gateway pod, | ||
| # and use OIDC for client identity (the gateway never sees the client cert). | ||
| protocol: HTTP | ||
| # -- "Same" restricts attached routes to the release namespace; "All" allows any namespace. | ||
| allowedRoutes: Same | ||
| # TLS settings for the listener. Used only when protocol is HTTPS | ||
| # (mode is always Terminate). | ||
| tls: | ||
| # -- certificateRefs for the HTTPS listener. Required when protocol is | ||
| # HTTPS. Each entry needs a `name` pointing at a kubernetes.io/tls Secret | ||
| # in the Gateway's namespace. May reference a cert-manager-issued Secret | ||
| # or the existing openshell-server-tls Secret (its SANs must include the | ||
| # external hostname). | ||
| certificateRefs: [] | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If a certificate is provided by e.g. cert-manager, would that be supported automatically? |
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we document a way to enable this? Possibly as a follow-up; it would be great to support end-to-end TLS, but I think this PR is a good first step.