Open
Description
We often times terminate SSL on a load balancer or ingress proxy instead of on services directly so that application admins don't have to worry with as many secrets (containers combined with service meshes are making this a more common thing too).
In those cases, the service can't tell whether or not it's using SSL using the port information, but only with headers like X-Forwarded-Proto
or X-Forwarded-Port
.
We'd like to force SSL only in our JupyterHub instance, but the --redirect-port
flag won't work in this scenario. Any chance another hook could be added to trigger a redirect when a header/value combination doesn't match some specified value?