Remove cluster-wide Endpoints write from the CCM ClusterRole
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 78/100
調査の方向性
charts/oxide-cloud-controller-manager/templates/clusterrole.yamlとレンダリング済みのmanifests/oxide-cloud-controller-manager.yamlから始め、既存のLeasesルールと、クラスター全体に対するserviceaccountsの作成権限が使われているかを確認してください。不要なEndpointsルールを削除し、マニフェストを再生成して、CCMが引き続きリーダーを選出し、ノードとサービスを調整できることを検証してください。
索引モデルが issue の本文から書いたものです。
説明
Context
The ClusterRole in charts/oxide-cloud-controller-manager/templates/clusterrole.yaml (and the rendered manifests/oxide-cloud-controller-manager.yaml) grants create, get, list, watch, and update on endpoints in all namespaces. The CCM doesn't manage Endpoints, and leader election already uses the coordination.k8s.io Leases rule, so nothing needs this permission. A compromised CCM pod or a stolen service account token could use it to repoint a Service's Endpoints and hijack in-cluster traffic.
Scope
Remove the endpoints rule from the chart and regenerate the manifest. While there, check whether the cluster-wide serviceaccounts create rule is needed and drop it if not.
Done when
The ClusterRole grants no write access to Endpoints, and the CCM still elects a leader and reconciles nodes and services.
- 主要言語
- Go
- スター
- 6
- フォーク
- 2
- 平均マージ
- 2時間 47分
- マージ済み PR(30日)
- 6
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
oxidecomputer/oxide-cloud-controller-manager のほかの issue
-
Kubernetes Cloud Controller Manager (CCM)
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
Documentation Kubernetes Cloud Controller Manager (CCM)
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
-
Documentation Kubernetes Cloud Controller Manager (CCM)
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
-
Bug Kubernetes Cloud Controller Manager (CCM)
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
Bug Kubernetes Cloud Controller Manager (CCM)
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
oxidecomputer/oxide-cloud-controller-manager#275 · コメント 1 件 ·
oxidecomputer/oxide-cloud-controller-manager の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
hivecommons/hive#19912 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
siyuan-note/siyuan#21692 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
rudderlabs/rudder-server#7641 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
ossf/package-analysis#1222 ·
メンテナーはふだん 1 日以内に返信