[Proposal] Optional host-managed agent mode for clusters that prohibit privileged Pods
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 25/100
- issue の種類
- 機能追加
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- go, kubernetes
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- Go
- スター
- 60
- フォーク
- 2
- 平均マージ
- 6時間 41分
- マージ済み PR(30日)
- 67
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
microsoft/brewlet のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 54/100
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
メンテナーはふだん 1 日以内に返信
-
Fix filesystem live E2E Pod arguments for Python launch composition対応中かも @brunoborges が今日担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 56/100
メンテナーはふだん 1 日以内に返信
microsoft/brewlet の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
stefanpejcic/OpenPanel#1415 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
kind: v0.14.7 control-plane readiness block reads the wrong kubeconfig path (provision always fails)オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
redhat-developer/mapt#997 ·
メンテナーはふだん 3 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
status:needs-review type:bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
Gentleman-Programming/engram#2512 ·
メンテナーはふだん 1 日以内に返信