Skip to content
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

Remove RouteTLSConfig requirement for gateway TLS passthrough. #745

Merged
merged 1 commit into from
Aug 5, 2021

Conversation

jpeach
Copy link
Contributor

@jpeach jpeach commented Aug 4, 2021

TLS passthrough never terminates TLS sessions, so it doesn't make
sense for TLS certificates to be required in this configuration.

/kind bug

TLS passthrough never terminates TLS sessions, so it doesn't make
sense for TLS certificates to be required in this configuration.

Signed-off-by: James Peach <jpeach@apache.org>
@k8s-ci-robot k8s-ci-robot added kind/bug Categorizes issue or PR as related to a bug. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Aug 4, 2021
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jpeach

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Aug 4, 2021
@@ -147,9 +147,6 @@ type RouteTLSConfig struct {
// handshake for requests that match the hostname of the associated HTTPRoute.
// The referenced object MUST reside in the same namespace as HTTPRoute.
//
// This field is required when the TLS configuration mode of the associated
// Gateway listener is set to "Passthrough".
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would this be accurate if "Passthrough" was replaced with "Terminate"?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So certificateRef is a required field (syntactically), and IIUC you would need to set the RouteTLSConfig if the listener protocol is HTTPS, the mode is Terminate, you don't want the listener to use the default certificate and there is a TLS route override policy of Allow.

Phew! 😂

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, that's a good point. This comment never really made sense, and a replacement one is not particularly straightforward or valuable, I'm fine with just removing this.

@robscott
Copy link
Member

robscott commented Aug 5, 2021

Thanks!

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 5, 2021
@k8s-ci-robot k8s-ci-robot merged commit 3a6ee42 into kubernetes-sigs:master Aug 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/bug Categorizes issue or PR as related to a bug. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants