Skip to content

chore(helm): bind controller xDS listeners to loopback and drop plaintext service ports - #5312

Merged
johnlanni merged 1 commit into
mainfrom
chore/controller-xds-loopback
Nov 6, 2026
Merged

johnlanni merged 1 commit into
mainfrom
chore/controller-xds-loopback

Conversation

@johnlanni

Copy link
Copy Markdown
Collaborator

Summary

Harden the default controller network posture: keep the two plaintext xDS listeners on loopback (the only consumers in the supported topologies are in-pod), and stop publishing them on the controller ClusterIP Service.

  • serve container now starts with --grpcAddress=127.0.0.1:15051 (was: wildcard :15051).
  • discovery container now starts with --grpcAddr=127.0.0.1:15010 (was: wildcard :15010); the 15010 containerPort declaration is dropped.
  • The grpc/15051 entry is removed from controller.ports in values, and the hardcoded grpc-xds/15010 port is removed from the controller Service. 15012 (mTLS discovery), 8888, 8889, 443, 15014 are unchanged.
  • Helm chart docs regenerated with the CI-pinned helm-docs v1.14.2 (README.md deterministic on rerun; README.zh.md updated to match).

Why this is safe for supported topologies

  • The in-pod discovery sidecar reads xds://127.0.0.1:15051 (configmap), and its startup wait already targets 127.0.0.1:15051 — unchanged.
  • Standalone gateways and Gateway API auto-deployments consume discovery over 15012 (mTLS) — unchanged.
  • hgctl code-debug runs a local higress serve on the developer machine (local-k8s only); the binary's default listen addresses are untouched, so that flow is unaffected.
  • Pods in the same network namespace share loopback, so in-pod consumers need no changes.

Compatibility note

Custom out-of-tree clients that reached the controller's 15051/15010 over the cluster network must migrate (in-pod consumption or 15012), or keep the previous listeners via a custom chart override until they do. This is a behavior change to the default manifests and should ride the next minor release with a migration note in the release notes.

Verification

  • helm template higress helm/core before/after diff shows exactly the four intended changes and no other manifest drift.
  • helm lint passes.
  • Chart README regenerated deterministically (byte-identical on rerun).
  • Full-repo audit of remaining 15051/15010 references: configmap consumer, wait-script env, and docs entries all describe loopback usage and stay as-is; no references under test/ or e2e/.

…text service ports

Bind the controller serve xDS listener to 127.0.0.1:15051 via --grpcAddress and the discovery listener to 127.0.0.1:15010 via --grpcAddr.

Remove the controller grpc 15051 entry from controller.ports and the hardcoded grpc-xds 15010 service port, so neither plaintext listener is published by the controller Service. Regenerate the Helm values documentation.

Signed-off-by: johnlanni <zty98751@alibaba-inc.com>
@johnlanni

Copy link
Copy Markdown
Collaborator Author

@rinfx could you take a look at this chart-only change? It binds the controller's two plaintext xDS listeners to loopback and drops the corresponding service ports; in-pod discovery (xds://127.0.0.1:15051), standalone gateways (15012) and hgctl code-debug are unaffected. helm template diff is limited to +2 args / -2 ports, docs regenerated deterministically, CI green. Needs a non-author reviewer.

@johnlanni
johnlanni merged commit 4e5f20b into main Nov 6, 2026
22 checks passed
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.

1 participant