Isolate full-deployment Kafka and ZooKeeper from tenant action pods on 0.9.0
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 38/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- kubernetes, python
- Lĩnh vực
- infrastructure, security
Hướng nghiên cứu
Start by reading the operator code that applies NetworkPolicies and handles resume and Whisk updates; the payload does not name specific files or tests. Confirm how Kafka and ZooKeeper policies are reconciled, workloads are ordered, and legacy pods are restarted. Done means tenant action pods cannot reach either service while trusted clients, monitoring, and scheduled actions continue to work on a NetworkPolicy-enforcing CNI.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Problem
In the 0.9.0 full deployment, ordinary tenant action pods can reach the shared Kafka and ZooKeeper endpoints. These are internal control-plane services and should not be accessible to tenant code. The deployment does not install a network boundary restricting those services to their intended clients.
This is an internal multi-tenant isolation problem. It does not establish an unauthenticated Internet-facing entry point, and slim installations without Kafka/ZooKeeper are outside this issue.
Attacker and risk
| Actor / position | Preconditions | Risk |
|---|---|---|
| Anonymous Internet client | Only the public HTTP ingress is exposed | No direct Kafka/ZooKeeper access demonstrated by these checks |
| Ordinary tenant/developer | Can deploy and invoke an action in their own namespace | Reachable unauthenticated shared messaging and coordination endpoints; potential cross-tenant confidentiality, integrity and availability impact |
| Host or Kubernetes administrator | Already controls the cluster | Outside the tenant-isolation boundary |
Expected behavior
Action pods must be denied access to Kafka and ZooKeeper by Service name, pod DNS name and pod IP. Controller/invoker traffic, broker coordination and monitoring must keep working.
Updating the operator on an existing full installation must install the protection automatically, including closing pre-existing messaging connections.
Proposed change
The accompanying operator PR targets 0.9.0 and adds narrow same-namespace ingress NetworkPolicies for Kafka and ZooKeeper. Trusted client selectors exclude every pod carrying user-action-pod, regardless of its value. Metrics access is limited to the installation's Prometheus pods.
The operator applies policies before workloads, rolls legacy messaging pods once, waits for completion, and reconciles enabled ZooKeeper then Kafka during resume and Whisk updates. Failures propagate; disabled components are skipped.
This requires a CNI that enforces NetworkPolicy. A policy object alone is not proof of isolation. The change preserves component versions, protocols and PVC contents; it does not add Kafka SASL/TLS or ZooKeeper authentication.
Validation
Local synthetic K3s lab:
- 16/16 tenant connection attempts were reachable in the legacy fixture and denied after automatic operator resume.
- Legitimate clients, Prometheus, action-labelled spoof checks and foreign-namespace checks passed.
- Repeating operator resume preserved messaging pod identities.
- Alpha/Beta application tests: 15/15; Redis Lua: 84/84; Streamer: 24/24.
- Scheduled actions continued working, and application source remained unchanged.
- Operator unit suite: 66/66, including 19 focused messaging tests.
The lab exercised operator image replacement/restart and the real Kopf resume handler. The exact ops update operator CLI command was not run with the unpublished local image.
Known limitation
Whisk uninstall still relies on owner garbage collection when the process-local saved component spec is absent. Policy-last teardown is therefore not guaranteed during uninstall. This was identified in the targeted review and accepted by the contributor as a non-blocking limitation of this proposal. It remains disclosed for maintainer assessment.
- Ngôn ngữ chính
- Python
- Star
- 577
- Fork
- 29
- Merge trung bình
- 3 ngày 17 giờ
- Pull request đã merge (30 ngày)
- 4
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của apache/openserverless
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
apache/openserverless#269 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
apache/openserverless#267 ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
apache/openserverless#277 ·
-
Streamer 0.9.0 hardening: authenticated callbacks and backward-incompatible client migrationĐang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 20/100
apache/openserverless#274 ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 8/100
apache/openserverless#273 · 2 bình luận ·
Tất cả issue của apache/openserverless
Issue tương tự
-
[Resource]: glyphcss-diagramsĐang mởresource-submission validation-passed
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
hesreallyhim/awesome-claude-code#3214 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
room-commons replace accepts an empty old string and silently prepends the new text to the pageĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
doobidoo/mcp-memory-service#1650 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 82/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
ml-explore/mlx-lm#2002 ·
Maintainer thường phản hồi trong vòng 2 ngày