@@ -26,7 +26,6 @@ import (
26
26
27
27
"github.com/onsi/ginkgo/v2"
28
28
"github.com/stretchr/testify/assert"
29
- apierrors "k8s.io/apimachinery/pkg/api/errors"
30
29
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
31
30
32
31
"k8s.io/ingress-nginx/test/e2e/framework"
@@ -99,6 +98,8 @@ var _ = framework.IngressNginxDescribeSerial("[Admission] admission controller",
99
98
assert .NotNil (ginkgo .GinkgoT (), err , "creating an ingress with invalid path should return an error" )
100
99
})
101
100
101
+ /* Deactivated to mitigate CVE-2025-1974
102
+ // TODO: Implement sandboxing so this test can be done safely
102
103
ginkgo.It("should return an error if there is an error validating the ingress definition", func() {
103
104
disableSnippet := f.AllowSnippetConfiguration()
104
105
defer disableSnippet()
@@ -112,6 +113,7 @@ var _ = framework.IngressNginxDescribeSerial("[Admission] admission controller",
112
113
_, err := f.KubeClientSet.NetworkingV1().Ingresses(f.Namespace).Create(context.TODO(), firstIngress, metav1.CreateOptions{})
113
114
assert.NotNil(ginkgo.GinkgoT(), err, "creating an ingress with invalid configuration should return an error")
114
115
})
116
+ */
115
117
116
118
ginkgo .It ("should return an error if there is an invalid value in some annotation" , func () {
117
119
host := admissionTestHost
@@ -207,6 +209,8 @@ var _ = framework.IngressNginxDescribeSerial("[Admission] admission controller",
207
209
Status (http .StatusOK )
208
210
})
209
211
212
+ /* Deactivated to mitigate CVE-2025-1974
213
+ // TODO: Implement sandboxing so this test can be done safely
210
214
ginkgo.It("should return an error if the Ingress V1 definition contains invalid annotations", func() {
211
215
disableSnippet := f.AllowSnippetConfiguration()
212
216
defer disableSnippet()
@@ -220,6 +224,7 @@ var _ = framework.IngressNginxDescribeSerial("[Admission] admission controller",
220
224
assert.NotNil(ginkgo.GinkgoT(), err, "creating an ingress with invalid configuration should return an error")
221
225
}
222
226
})
227
+ */
223
228
224
229
ginkgo .It ("should not return an error for an invalid Ingress when it has unknown class" , func () {
225
230
disableSnippet := f .AllowSnippetConfiguration ()
0 commit comments