Skip to content
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

Migrate HTTPProxy to HTTPRoute #6354

Closed
musklor opened this issue Apr 17, 2024 · 3 comments
Closed

Migrate HTTPProxy to HTTPRoute #6354

musklor opened this issue Apr 17, 2024 · 3 comments
Labels
kind/question Categorizes an issue as a user question.

Comments

@musklor
Copy link

musklor commented Apr 17, 2024

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 musklor added kind/question Categorizes an issue as a user question. lifecycle/needs-triage Indicates that an issue needs to be triaged by a project contributor. labels Apr 17, 2024
@musklor
Copy link
Author

musklor commented Apr 17, 2024

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
Copy link
Author

musklor commented Apr 18, 2024

Maybe I can use ingress2gateway

@sunjayBhatia
Copy link
Member

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: kubernetes-sigs/ingress2gateway#143

@sunjayBhatia sunjayBhatia removed the lifecycle/needs-triage Indicates that an issue needs to be triaged by a project contributor. label May 1, 2024
@skriss skriss closed this as completed May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/question Categorizes an issue as a user question.
Projects
None yet
Development

No branches or pull requests

3 participants