Skip to content

Commit 90a4f1e

Browse files
authored
Merge pull request #218 from bcgov/AI-1341
Rename ip_whitelist annotation to ip_allowlist
2 parents a91cf4f + ca209d4 commit 90a4f1e

7 files changed

Lines changed: 9 additions & 9 deletions

File tree

deployments/openshift/kustomize/base/backend-services/route.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ metadata:
1717
# Gold DR: 142.34.64.6–9 (NAT pool egress IPs)
1818
# Emerald: no fixed egress IPs — each namespace has a dedicated /26 private range;
1919
# add your namespace's /26 CIDR here if cross-cluster access from Emerald is needed.
20-
haproxy.router.openshift.io/ip_whitelist: >-
20+
haproxy.router.openshift.io/ip_allowlist: >-
2121
142.16.0.0/11
2222
142.34.194.121 142.34.194.122 142.34.194.123 142.34.194.124
2323
142.34.229.6 142.34.229.7 142.34.229.8 142.34.229.9

deployments/openshift/kustomize/base/frontend/route.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ metadata:
1212
# Gold DR: 142.34.64.6–9 (NAT pool egress IPs)
1313
# Emerald: no fixed egress IPs — each namespace has a dedicated /26 private range;
1414
# add your namespace's /26 CIDR here if cross-cluster access from Emerald is needed.
15-
haproxy.router.openshift.io/ip_whitelist: >-
15+
haproxy.router.openshift.io/ip_allowlist: >-
1616
142.16.0.0/11
1717
142.34.194.121 142.34.194.122 142.34.194.123 142.34.194.124
1818
142.34.229.6 142.34.229.7 142.34.229.8 142.34.229.9

deployments/openshift/kustomize/overlays/prod/kustomization.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ patches:
88
target:
99
kind: ConfigMap
1010
name: backend-services-config
11-
- path: route-whitelist-patch.yml
11+
- path: route-allowlist-patch.yml
1212
target:
1313
kind: Route
1414
name: backend-services
15-
- path: route-whitelist-patch.yml
15+
- path: route-allowlist-patch.yml
1616
target:
1717
kind: Route
1818
name: frontend

deployments/openshift/kustomize/overlays/prod/route-whitelist-patch.yml renamed to deployments/openshift/kustomize/overlays/prod/route-allowlist-patch.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
- op: replace
2-
path: /metadata/annotations/haproxy.router.openshift.io~1ip_whitelist
2+
path: /metadata/annotations/haproxy.router.openshift.io~1ip_allowlist
33
value: 142.22.0.0/16 142.23.0.0/16 142.24.0.0/16 142.25.0.0/16 142.26.0.0/16 142.27.0.0/16 142.28.0.0/16 142.29.0.0/16 142.30.0.0/16 142.31.0.0/16 142.32.0.0/16 142.33.0.0/16 142.34.0.0/16 142.35.0.0/16 142.36.0.0/16

deployments/openshift/kustomize/overlays/test/kustomization.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ patches:
88
target:
99
kind: ConfigMap
1010
name: backend-services-config
11-
- path: route-whitelist-patch.yml
11+
- path: route-allowlist-patch.yml
1212
target:
1313
kind: Route
1414
name: backend-services
15-
- path: route-whitelist-patch.yml
15+
- path: route-allowlist-patch.yml
1616
target:
1717
kind: Route
1818
name: frontend

deployments/openshift/kustomize/overlays/test/route-whitelist-patch.yml renamed to deployments/openshift/kustomize/overlays/test/route-allowlist-patch.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
- op: replace
2-
path: /metadata/annotations/haproxy.router.openshift.io~1ip_whitelist
2+
path: /metadata/annotations/haproxy.router.openshift.io~1ip_allowlist
33
value: 142.22.0.0/16 142.23.0.0/16 142.24.0.0/16 142.25.0.0/16 142.26.0.0/16 142.27.0.0/16 142.28.0.0/16 142.29.0.0/16 142.30.0.0/16 142.31.0.0/16 142.32.0.0/16 142.33.0.0/16 142.34.0.0/16 142.35.0.0/16 142.36.0.0/16

docs-md/openshift-deployment/KUSTOMIZE_INSTANCE_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ The template uses placeholder tokens that the deploy script replaces with actual
3333

3434
### Route IP restrictions
3535

36-
Base `Route` manifests under `deployments/openshift/kustomize/base/` set `haproxy.router.openshift.io/ip_whitelist` so the OpenShift router (HAProxy) only allows traffic whose source IP is in `142.16.0.0/11` (approximate VPN range). Other clients receive HTTP 403 at the router. The backend Route also keeps `haproxy.router.openshift.io/deny-list` for `/metrics` (see `docs-md/PROMETHEUS_METRICS.md`). Multiple CIDRs or IPs use a space-separated annotation value if needed later.
36+
Base `Route` manifests under `deployments/openshift/kustomize/base/` set `haproxy.router.openshift.io/ip_allowlist` so the OpenShift router (HAProxy) only allows traffic whose source IP is in `142.16.0.0/11` (approximate VPN range). Other clients receive HTTP 403 at the router. The backend Route also keeps `haproxy.router.openshift.io/deny-list` for `/metrics` (see `docs-md/PROMETHEUS_METRICS.md`). Multiple CIDRs or IPs use a space-separated annotation value if needed later.
3737

3838
### What Gets Patched
3939

0 commit comments

Comments
 (0)