Skip to content

How to do extended ingress routing with "httpProtocol: Redirected" setting? #3562

@lenalebt

Description

@lenalebt

Describe the change you'd like to see
I am referring to the documentation in https://knative.dev/docs/serving/samples/knative-routing-go/index.html.

I currently have KNative set up together with cert-manager for automatic certificate provisioning (using the autoTLS feature). I would also like to use "httpProtocol": "Redirected" to forward all http traffic to https on the istio-ingressgateway.

Doing so make it impossible to follow the suggested solution for routing (described here: https://knative.dev/docs/serving/samples/knative-routing-go/index.html#how-it-works). KNative / istio will internally forward the traffic back to the istio-ingressgateway with a different setting for the Host header (by using rewrite: authority here: https://github.com/knative/docs/blob/release-0.21/docs/serving/samples/knative-routing-go/routing.yaml#L34). It uses HTTP there, and not HTTPS. I don't necessarily want it to use more than HTTP for the internal stuff.

However, the istio-ingressgateway will try to redirect to HTTPS, making the whole thing fail.

I am willing to make a pull request with documentation updates, but honestly don't really know how one would solve it. If you give me a hint how to do it, I'll make the PR :).

Additional context

grafik

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions