What motivated this proposal?
Cluster routes between NATS servers currently have no authentication configured by default:
"routes": [
"nats://nats-0.nats-headless:6222",
"nats://nats-1.nats-headless:6222",
...
]
Without NetworkPolicy, port 6222 is accessible from any pod in the cluster. NetworkPolicy would restrict cluster routing traffic to NATS pods only.
The v0 NATS Helm chart included NetworkPolicy resources, but this feature was not carried over to the current chart version.
What is the proposed change?
Add optional NetworkPolicy, perhaps with per-port configuration (cluster, client connections, leafnodes, websockets etc), with some safe default config.
Who benefits from this change?
No response
What alternatives have you evaluated?
No response
What motivated this proposal?
Cluster routes between NATS servers currently have no authentication configured by default:
Without NetworkPolicy, port 6222 is accessible from any pod in the cluster. NetworkPolicy would restrict cluster routing traffic to NATS pods only.
The v0 NATS Helm chart included
NetworkPolicyresources, but this feature was not carried over to the current chart version.What is the proposed change?
Add optional NetworkPolicy, perhaps with per-port configuration (cluster, client connections, leafnodes, websockets etc), with some safe default config.
Who benefits from this change?
No response
What alternatives have you evaluated?
No response