Skip to content

feat: add IPv6 support to allowedSourceRanges#3082

Open
raphaeltorquat0 wants to merge 1 commit intozalando:masterfrom
raphaeltorquat0:fix/issue-2787
Open

feat: add IPv6 support to allowedSourceRanges#3082
raphaeltorquat0 wants to merge 1 commit intozalando:masterfrom
raphaeltorquat0:fix/issue-2787

Conversation

@raphaeltorquat0
Copy link
Copy Markdown

Summary

Fixes #2787.

The allowedSourceRanges field currently only accepts IPv4 CIDR notation. This PR updates the regex pattern to also accept IPv6 CIDR ranges, enabling dual-stack networking support.

Changes

  • Updated regex pattern in all 3 CRD files:
    • manifests/postgresql.crd.yaml
    • charts/postgres-operator/crds/postgresqls.yaml
    • pkg/apis/acid.zalan.do/v1/postgresql.crd.yaml
  • Updated documentation in docs/reference/cluster_manifest.md

Supported formats

Type Examples
IPv4 192.168.1.0/24, 0.0.0.0/0, 127.0.0.1/32
IPv6 fd01::/48, ::1/128, ::/0, 2001:db8::/32, fe80::1/64

Checklist

  • Code is formatted
  • Updated CRD validation in manifests and Helm chart
  • Documentation updated
  • Unit tests pass (308/308)

Update regex pattern in CRD validation to accept both IPv4 and IPv6
CIDR notation, enabling dual-stack networking support.

Fixes zalando#2787

Signed-off-by: Raphael Torquato <>
@raphaeltorquat0
Copy link
Copy Markdown
Author

Could a maintainer please add the minor label? This PR adds a new feature (IPv6 support) without breaking changes. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

allowedSourceRanges should support ipv6

1 participant