Repository navigation
fix(k8s): narrow the in-namespace egress of the object store - #6712
Merged
Merged
Conversation
Owner
Author
|
Steps for a person after Argo CD syncs kubectl -n object-store exec seaweedfs-filer-0 -- nc -z -w 3 seaweedfs-admin 33646; echo "filer: exit $?" # 1
kubectl -n object-store exec deploy/seaweedfs-worker -c worker -- nc -z -w 3 seaweedfs-admin 33646; echo "worker: exit $?" # 0
V=$(kubectl -n object-store get pod seaweedfs-volume-1 -o jsonpath='{.status.podIP}') # a volume pod on another node than seaweedfs-filer-0
kubectl -n object-store exec seaweedfs-filer-0 -- nc -z -w 3 "$V" 9327; echo "filer to volume metrics: exit $?" # 1
kubectl -n object-store get seaweed seaweedfs -o jsonpath='{.status.conditions[0].message}' # Seaweed cluster is ready
kubectl -n object-store get pods # 13 pods ReadyReview points
|
…e scope The network policy controller skips the ingress rules of a policy with both types only for traffic that an egress rule of the same policy allows. A policy selects only pods of its own namespace, so the ingress rules of object-store-perimeter hold for the pods of other namespaces. The admin port text, the spec and the check docstring now say that the k8s row reads the policies of namespace object-store.
dan-petty
force-pushed
the
fix/6707-object-store-egress
branch
from
November 22, 2026 00:29
94dbffa to
ef8f24e
Compare
3 tasks
dan-petty
marked this pull request as ready for review
November 22, 2026 00:37
3 tasks
dan-petty-release Bot
added a commit
that referenced
this pull request
Nov 22, 2026
🤖 I have created a release *beep* *boop* --- ## [0.191.0](v0.190.0...v0.191.0) (2026-11-22) ### Features * **infra:** add node drain, uncordon, restart and reboot ([#6706](#6706)) ([8af846c](8af846c)), closes [#5128](#5128) * **monitoring:** keep the cAdvisor container_threads series ([#6711](#6711)) ([349adda](349adda)) ### Bug Fixes * **ci:** check release image job times in devops ci job-time ([#6635](#6635)) ([1b1a25e](1b1a25e)) * **k8s:** narrow the in-namespace egress of the object store ([#6712](#6712)) ([f14cb8b](f14cb8b)), closes [#6707](#6707) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
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.
The in-namespace egress rule of
object-store-perimeternow has the 9 ports of its in-namespace ingress rule. Before, it had no ports. The network policy controller of the cluster, kube-router, does not apply the ingress rules of a policy with the typesIngressandEgressto traffic that an egress rule of the same policy allows, when the policy selects the source and the destination pod. The perimeter selects each pod of the namespace. So each pod of the namespace reached the admin gRPC port 33646, which has no authentication (GHSA-3qr2-qw48-cj6q), and the metrics port 9327 of the other pods.The new policy
object-store-workerlets only the worker pods send to the admin pod on 33646. The ingress rules do not change. The components and the operator use only ports of the list between them.The admin port rule of the
k8srow now also reads the egress rules of the policies of namespaceobject-store. It refuses each such policy that lets a pod other than the worker send to 33646, also through a rule with noports, and a worker that cannot send to it. A policy selects only pods of its own namespace, so the ingress rules of the perimeter hold for the pods of other namespaces.Closes #6707
Change:
openspec/changes/archive/2026-11-21-6707-object-store-egress/