-
Hello, I am using cert-manager to create a certificate for the supervisor and exposing it with ingress on port 443 of the Pinniped-supervisor-api service. I have also added the ingress annotations 'nginx.ingress.kubernetes.io/backend-protocol: "HTTPS"'. However, when I try a simple curl -v https://my-pinniped-supervisor/, I am getting a 502 error. When I check the logs of the ingress, I am seeing a lot of errors related to TLS handshake. Any ideas, please? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
Hi @HamzaZo, thanks for submitting a question! Your Ingress should not use the Does that help? |
Beta Was this translation helpful? Give feedback.
-
Hi @cfryanr Any idea why I'm getting this ? btw I'm using cert-manager to create cert for my ingress [EDIT] Pinniped open up the browser, but it only displayed a blank page. I noticed an issue with that the Redirect_URL is localhost |
Beta Was this translation helpful? Give feedback.
-
Hi @HamzaZo, are you using a DNS hostname for the Supervisor, or are you using an IP address to access the Supervisor? If you are trying to use a DNS name, when your Ingress makes the HTTPS request to its backend, does it preserve the hostname of the original request or set the If you are using an IP address to make requests to the Supervisor, or if your Ingress cannot be configured to properly preserve SNI on requests, then you can put the Supervisor's TLS serving certificate into a Secret at the name/namespace location for the default serving cert. This will be used as a fallback whenever a request comes in to an IP address or without SNI information. Does that help? |
Beta Was this translation helpful? Give feedback.
Hi @HamzaZo, are you using a DNS hostname for the Supervisor, or are you using an IP address to access the Supervisor?
If you are trying to use a DNS name, when your Ingress makes the HTTPS request to its backend, does it preserve the hostname of the original request or set the
Host
header to pass-through the hostname of the original request? The Supervisor uses SNI (hostname on the request orHost
header on the request) to find the TLS certificate configured on your FederationDomain. To help debug, you can turn on trace logging for the Supervisor and then watch for this log message during a request: https://github.com/vmware-tanzu/pinniped/blob/v0.23.0/internal/supervisor/server/server.g…