-
Notifications
You must be signed in to change notification settings - Fork 493
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
Can HTTPRoute
support global filters?
#1973
Comments
IMO this type of syntax sugar is best handled by higher level tooling (helm, etc). |
@howardjohn What I described before may not be very accurate, I updated it, please help me to have a look |
I think I understood it the first time and still have the same opinion here. Its not worth the complexity for the gain given the same benefits can be achieved via tooling on top, IMO. |
+1 to this change, since it improves UX, there are a set of filters that will most likely be common to the |
Although it is feasible for the upper layer to handle it, it would be better if the general capabilities of the api gateway can be achieved in the standard. Gloo edge has a similar function, they are called |
I think it makes sense to do it |
IMO this is something where Policy Attachment makes sense, which already has the ability to insert at arbitrary points. I worry we are just re-inventing the same concept in two different ways. cc @youngnick |
This is one hundred percent an intended use for Policy Attachment, yes. Specifying a |
You mean using apiVersion: networking.example.io/v1alpha1
kind: FiltersPolicy
metadata:
name: myroute-filters
spec:
default:
filters:
- type: Cors
cors:
allowOriginRegex:
- '^http(s)?:\/\/localhost:[0-9]{4,5}$'
allowHeaders:
- origin
- content-type
maxAge: 1d
targetRef:
name: myroute
kind: HTTPRoute |
Yes you could even do it at the entire Gateway level |
If I'm reading the conversation here right it seems if there's any action to take its improving documentation (of policy attachment) so that it's better understood that this can and should be accomplished at that level, and to that end it seems reasonable to accept: /kind gep However as this doesn't seem like something we must resolve before GA, we would consider this a lower priority than GA requirements until v1.0.0 is released: /priority backlog |
This issue has not been updated in over 1 year, and should be re-triaged. You can:
For more details on the triage process, see https://www.kubernetes.dev/docs/guide/issue-triage/ /remove-triage accepted |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close not-planned |
@k8s-triage-robot: Closing this issue, marking it as "Not Planned". In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
What would you like to be added:
Can
HTTPRoute
support global filters?Why this is needed:
For example, I want to add a cors filter under a
HTTPRoute
, which will take effect for all rules under theHTTPRoute
.The text was updated successfully, but these errors were encountered: