Repository navigation
chore(helm): bind controller xDS listeners to loopback and drop plaintext service ports - #5312
Merged
Merged
Conversation
…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>
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
servecontainer now starts with--grpcAddress=127.0.0.1:15051(was: wildcard:15051).discoverycontainer now starts with--grpcAddr=127.0.0.1:15010(was: wildcard:15010); the15010containerPort declaration is dropped.grpc/15051entry is removed fromcontroller.portsin values, and the hardcodedgrpc-xds/15010port is removed from the controller Service.15012(mTLS discovery),8888,8889,443,15014are unchanged.helm-docs v1.14.2(README.md deterministic on rerun; README.zh.md updated to match).Why this is safe for supported topologies
discoverysidecar readsxds://127.0.0.1:15051(configmap), and its startup wait already targets127.0.0.1:15051— unchanged.15012(mTLS) — unchanged.hgctl code-debugruns a localhigress serveon the developer machine (local-k8s only); the binary's default listen addresses are untouched, so that flow is unaffected.Compatibility note
Custom out-of-tree clients that reached the controller's
15051/15010over the cluster network must migrate (in-pod consumption or15012), 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/corebefore/after diff shows exactly the four intended changes and no other manifest drift.helm lintpasses.15051/15010references: configmap consumer, wait-script env, and docs entries all describe loopback usage and stay as-is; no references undertest/ore2e/.