contour icon indicating copy to clipboard operation
contour copied to clipboard

Migrate HTTPProxy to HTTPRoute

Open musklor opened this issue 10 months ago • 3 comments

Thanks a lot for your work.

I'd like to migrate from httpproxy to httproute.

Do you know how i can do that?

I need hsts (Content-Security-Policy), rewrite caldav for nextcloud and Permissions-Policy.

apiVersion: projectcontour.io/vi kind: HTTPProxy metadata: name: example spec: virtualhost: fqdn: example.com routes:

  • services:
    • name: app port: 80 responseHeadersPolicy: set:
      • name: Content-Security-Policy value: "default-src 'self'"
      • name: Strict-Transport-Security value: max-age=31536000; includeSubDomains

musklor avatar Apr 17 '24 20:04 musklor

For HSTS, maybe

filters: - type: ResponseHeaderModifier responseHeaderModifier: add: - name: X-Header-Add-1 value: header-add-1 - name: X-Header-Add-2 value: header-add-2 - name: X-Header-Add-3 value: header-add-3

musklor avatar Apr 17 '24 20:04 musklor

Maybe I can use ingress2gateway

musklor avatar Apr 18 '24 17:04 musklor

we do intend to support converting Ingresses and HTTPProxies to Gateway API resources in the ingress2gateway project, however have not had a chance to contribute that work yet, take a look at the tracking issue: https://github.com/kubernetes-sigs/ingress2gateway/issues/143

sunjayBhatia avatar May 01 '24 15:05 sunjayBhatia