-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
The validating webhook does not prevent resource creation with invalid annotations #11967
Comments
This issue is currently awaiting triage. If Ingress contributors determines this is a relevant issue, they will accept it by applying the The 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. |
Its not creating the location block
$ kubectl -n ingress-nginx exec ingress-nginx-controller-6494fbd8fb-25r7f -- cat /etc/nginx/nginx.conf | grep -i 1.1.1.1 |
log message ; E0912 17:31:03.025233 7 annotations.go:216] "error reading Ingress annotation" err="the annotation does not contain a valid IP address or network: invalid CIDR address: 1.1.1.1 2.2.2.2" name="Allowlist" ingress="default/httpd" |
/assign |
This is stale, but we won't close it automatically, just bare in mind the maintainers may be busy with other tasks and will reach your issue ASAP. If you have any question or request to prioritize this, please reach |
What happened:
Create the below bad-ingress with
nginx.ingress.kubernetes.io/whitelist-source-range
annotation set to invalid value1.1.1.1 2.2.2.2
. Ingress object gets created even though thewhitelist-source-range
value is incorrect (missing comma between IP addresses)The behavior is the same regardless of the
enableAnnotationValidations
value.Ingress controller fails with the following errors once the resource is created:
What you expected to happen:
Ideally, the validating webhook should reject the creation of this ingress object."
NGINX Ingress controller version (exec into the pod and run nginx-ingress-controller --version.):
NGINX Ingress controller
Release: v1.10.0
Build: 71f78d4
Repository: https://github.com/kubernetes/ingress-nginx
nginx version: nginx/1.25.3
Kubernetes version (use
kubectl version
):Environment:
Cloud provider or hardware configuration: Azure AKS
How was the ingress-nginx-controller installed: ArgoCD deployment (helm chart 4.10.0)
The text was updated successfully, but these errors were encountered: