Skip to content

Add NetworkPolicy support (was available in v0) #1129

Description

@wingsofovnia

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    proposalEnhancement idea or proposal

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions