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

webhook/conformance: Handle incompatible HTTP Filters on a rule #1521

Closed
sunjayBhatia opened this issue Nov 9, 2022 · 8 comments · Fixed by #2150
Closed

webhook/conformance: Handle incompatible HTTP Filters on a rule #1521

sunjayBhatia opened this issue Nov 9, 2022 · 8 comments · Fixed by #2150
Assignees
Labels
priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release.
Milestone

Comments

@sunjayBhatia
Copy link
Member

Re: The last two bullets in this section of GEP-1364: https://gateway-api.sigs.k8s.io/geps/gep-1364/#accepted

* A HTTPRoute with one rule that specifies a HTTPRequestRedirect filter and a HTTPURLRewrite filter. Accepted must be false,
  because there's only one rule, and this configuration for the rule is invalid (see [reference](https://gateway
  api.sigs.k8s.io/references/spec/#gateway.networking.k8s.io%2fv1beta1.HTTPRequestRedirectFilter)) The error condition in this
  case is undefined currently - we should define it, thanks @sunjayBhatia.

* A HTTPRoute with two rules, one valid and one which specifies a HTTPRequestRedirect filter _and a HTTPURLRewrite filter.
  Accepted is true, because the valid rule can produce some config in the data plane. We'll need to raise the more specific error
  condition for an incompatible filter combination as well to make the partial validity clear.

For incompatible filters in an HTTPRoute, seems like we can do somethings similar to this change that validates HTTP header filters: #1497

We could do this instead of/in addition to the status changes described in the GEP

@robscott
Copy link
Member

Thanks @sunjayBhatia! I think we already do that with https://github.com/kubernetes-sigs/gateway-api/blob/main/apis/v1beta1/validation/httproute.go#L127, so maybe we just need a spec update similar to #1497 (comment).

@sunjayBhatia
Copy link
Member Author

oh nice, missed that! i guess only changes needed are these two locations need an update about the Accepted and possible new condition:

@youngnick youngnick modified the milestones: v0.6.0, v0.7.0 Nov 14, 2022
@youngnick
Copy link
Contributor

Any chance you can bang out a quick PR to implement that update for us @sunjayBhatia?

I've put this in v0.7.0 so we don't miss it, but if we get the PR done quick, this could make v0.6.0.

@sunjayBhatia
Copy link
Member Author

yep I can try to get this change done soon

@sunjayBhatia
Copy link
Member Author

/assign

@sunjayBhatia
Copy link
Member Author

opened #1540 to address this

@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue as fresh with /remove-lifecycle stale
  • Close this issue with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Feb 15, 2023
@shaneutt
Copy link
Member

/remove-lifecycle stale

@k8s-ci-robot k8s-ci-robot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Feb 21, 2023
@shaneutt shaneutt added the priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. label Feb 21, 2023
@shaneutt shaneutt modified the milestones: v0.7.0, v0.7.1 Apr 6, 2023
@robscott robscott modified the milestones: v0.7.1, v0.8.0 May 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release.
Projects
No open projects
6 participants