Admissionwebhook misses faulty regex #12937
Labels
area/ingress-controller
Issues where Kong is running as a Kubernetes Ingress Controller
pending author feedback
Waiting for the issue author to get back to a maintainer with findings, more details, etc...
stale
Is there an existing issue for this?
Kong version (
$ kong version
)3.6.1
Current Behavior
Adding following faulty HTTPRoute:
is not rejected by the AdmissionWebhook while the IngressController discovers the error:
Update route httproute.ch-kong-dev.broken-http-route.0.0 failed: HTTP status 400 (message: "5 schema violations (paths.1: should start with: / (fixed path) or ~/ (regex path); paths.2: should start with: / (fixed path) or ~/ (regex path); paths.3: should start with: / (fixed path) or ~/ (regex path); paths.4: should start with: / (fixed path) or ~/ (regex path); paths.5: should start with: / (fixed path) or ~/ (regex path))")
Expected Behavior
Admissionwebhook rejects the HTTPRoute.
Steps To Reproduce
See current behaviour
Anything else?
No response
The text was updated successfully, but these errors were encountered: