-
Notifications
You must be signed in to change notification settings - Fork 82
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
Use HTTPS port for Ingress when enabled #100
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Joost Buskermolen <[email protected]>
Signed-off-by: Joost Buskermolen <[email protected]>
@@ -1,6 +1,9 @@ | |||
{{- if .Values.ingress.enabled -}} | |||
{{- $fullName := include "dex.fullname" . -}} | |||
{{- $svcPort := .Values.service.ports.http.port -}} | |||
{{- if .Values.https.enabled -}} |
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.
I'd like to avoid forcing HTTPS there. Let's make it optional.
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.
What method would you prefer to make this optional? Add an extra option to the Ingress object?
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.
@nabokihms Really would appreciate this being merged in, maybe some more information on whether we should add a flag to the ingress to use HTTPS port?
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.
Sorry for the delay. Yes, I think an option for an ingress object will work.
Signed-off-by: Joost Buskermolen <[email protected]>
Signed-off-by: Joost Buskermolen <[email protected]>
Overview
When enabling HTTPS, the ingress still forwards traffic to the service over HTTP. This PR sets the destination port to the HTTPS port when
.Values.https.enabled
is true.What this PR does / why we need it
Enabling HTTPS currently does nothing for the communication between the ingress and the service, defeating the purpose altogether. With this PR HTTPS is also used between the service and ingress (when complemented with the necessary annotation for nginx).
Special notes for your reviewer
Checklist
Chart.yaml
(see the contributing guide for details)Chart.yaml
(see the contributing guide for details)make docs
Signed-off-by: Joost Buskermolen [email protected]