From ba5918256241ff2afb12778cfa56ac2735dfd6c9 Mon Sep 17 00:00:00 2001 From: Rudrakh Panigrahi Date: Wed, 15 Jan 2025 09:30:35 +0530 Subject: [PATCH] fix trusted cidr e2e tests for ipv6 Signed-off-by: Rudrakh Panigrahi --- test/e2e/testdata/authorization-client-ip-trusted-cidrs.yaml | 5 +++-- test/e2e/tests/authorization_client_ip.go | 3 +-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/e2e/testdata/authorization-client-ip-trusted-cidrs.yaml b/test/e2e/testdata/authorization-client-ip-trusted-cidrs.yaml index 5b56ddbab27..25aa2e9f7de 100644 --- a/test/e2e/testdata/authorization-client-ip-trusted-cidrs.yaml +++ b/test/e2e/testdata/authorization-client-ip-trusted-cidrs.yaml @@ -45,8 +45,9 @@ spec: clientIPDetection: xForwardedFor: trustedCIDRs: - - "172.16.0.0/12" - - "10.0.1.0/24" + - "172.0.0.0/8" + - "10.0.0.0/8" + - "::/0" # trust all IPv6 addresses for E2E targetRefs: - group: gateway.networking.k8s.io kind: Gateway diff --git a/test/e2e/tests/authorization_client_ip.go b/test/e2e/tests/authorization_client_ip.go index 4c920f8b59f..40de84ca1a9 100644 --- a/test/e2e/tests/authorization_client_ip.go +++ b/test/e2e/tests/authorization_client_ip.go @@ -23,8 +23,7 @@ import ( func init() { ConformanceTests = append(ConformanceTests, AuthorizationClientIPTest) - // Uncomment once https://github.com/envoyproxy/gateway/issues/5063 is fixed - // ConformanceTests = append(ConformanceTests, AuthorizationClientIPTrustedCidrsTest) + ConformanceTests = append(ConformanceTests, AuthorizationClientIPTrustedCidrsTest) } var AuthorizationClientIPTest = suite.ConformanceTest{