[Proposal] Optional host-managed agent mode for clusters that prohibit privileged Pods
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- go, kubernetes
- Lĩnh vực
- infrastructure, security
Hướng nghiên cứu
This issue requests a design and feasibility assessment and names no implementation files or tests. Start by reading the existing worker DaemonSet, node provisioning, authorization renewal, and ownership fencing paths, then review related issue #426. Done means documenting the mode boundary, node identity and threat model, readiness and lifecycle behavior, supported provisioning environments, and validation needed before implementation.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
Add an optional host-managed node agent deployment mode for clusters where Brewlet must not create privileged Pods, while preserving the current Kubernetes-managed worker DaemonSet mode as the default.
This proposal is for a design and feasibility assessment, not an immediate implementation commitment. The existing mode remains available and unchanged unless an administrator explicitly selects the new mode.
Motivation
Brewlet's current node worker and cleanup DaemonSets need privileged host access to install and maintain the runtime integration. Removing only host networking or moving activation into short-lived privileged Jobs would not remove the resident privileged-Pod requirement.
A host-managed mode could avoid Brewlet-created privileged Pods by installing a Brewlet service on each node through its image or bootstrap process. This changes where the node agent runs; it does not eliminate the need for trusted host-level privileges, reduce the node's trust requirements, or guarantee that other cluster components have no privileged Pods.
Proposed direction
- Keep the current operator-managed worker DaemonSet mode as the default, preserving today's installation and upgrade experience.
- Explore an opt-in host-managed mode, selectable for a node pool or NodeProfile, where node provisioning installs the Brewlet service and required shim/containerd configuration.
- Reuse the existing worker reconciliation and node-provisioning behavior where practical. The host service would own runtime installation, authorization renewal, node readiness and startup fences, and cleanup without being launched as a privileged Pod.
- Have the operator coordinate with and observe the host agent through an explicit, authenticated health/readiness signal rather than assuming a worker Pod or DaemonSet exists.
- Design node-scoped credentials and authorization before implementation. Preserve the existing UID-bound ownership fences and ensure one node cannot act on behalf of another.
- Define agent/operator compatibility, upgrades, rollback and cleanup. Autoscaled nodes must receive the agent through the supported image or bootstrap path.
- Require exactly one node-agent mode per node: a host service and the managed worker must not concurrently reconcile the same node or modify its activation state.
Trade-offs and constraints
- The host agent is still a resident, privileged process. The benefit is avoiding Brewlet privileged Pods and making Brewlet compatible with restrictive Pod Security policies, not eliminating host-level trust or attack surface.
- The mode introduces a second installation, lifecycle, troubleshooting and end-to-end test path, plus operator/agent version-skew concerns.
- Per-node identity and safe revocation are the primary security design challenge.
- Users need a supported way to prepare and upgrade nodes, including autoscaled nodes; clusters that cannot customize their node image or bootstrap may not be able to use this mode.
- The current five-minute authorization expiry requires a continuously running renewer; the host agent must preserve this behavior or replace it with an explicitly designed alternative.
Design questions to resolve
- What is the source and lifecycle of a node-scoped credential, and how is it bound to the Kubernetes Node and Brewlet profile?
- How does the operator discover, authenticate and fence the host agent, including during node replacement, profile changes and uninstall?
- Which responsibilities are shared with the existing worker, and which require a separate host launcher or packaging layer?
- How are agent versions delivered and kept compatible with the operator and shim across rolling and autoscaled node pools?
- What are the supported rollback and cleanup semantics if node preparation or a rollout fails partway through?
- Which platforms and containerd configurations are in scope for the first supported version?
Proposed completion criteria for the design
- Document the mode boundary and administrator-facing opt-in, with the current managed mode remaining the default.
- Provide a threat model and concrete node-identity/credential design, including revocation and failure handling.
- Specify readiness, ownership fencing, upgrade, rollback, cleanup and autoscaling behavior.
- Identify supported node provisioning environments and the end-to-end validation needed before implementation.
- Clearly state that this mode removes Brewlet's privileged-Pod requirement, not privileged host execution or privileges used by unrelated cluster components.
Related: #426 tracks removing hostNetwork from the existing worker separately; that change is useful but does not by itself provide a no-privileged-Pods mode.
- Ngôn ngữ chính
- Go
- Star
- 60
- Fork
- 2
- Merge trung bình
- 6 giờ 41 phút
- Pull request đã merge (30 ngày)
- 67
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không 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 microsoft/brewlet
-
Độ 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ó 4/5 3-5 ngày Mức phù hợp với người mới 54/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 42/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Fix filesystem live E2E Pod arguments for Python launch compositionCó thể đã có người làm @brunoborges đã nhận hôm nay. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 56/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của microsoft/brewlet
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
AvengeMedia/DankMaterialShell#4490 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
stefanpejcic/OpenPanel#1415 ·
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
-
kind: v0.14.7 control-plane readiness block reads the wrong kubeconfig path (provision always fails)Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
redhat-developer/mapt#997 ·
Maintainer thường phản hồi trong vòng 3 ngày