Remove cluster-wide Endpoints write from the CCM ClusterRole

オープン 初心者向け
#328 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
78/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
go, kubernetes
領域
cloud, security

調査の方向性

charts/oxide-cloud-controller-manager/templates/clusterrole.yamlとレンダリング済みのmanifests/oxide-cloud-controller-manager.yamlから始め、既存のLeasesルールと、クラスター全体に対するserviceaccountsの作成権限が使われているかを確認してください。不要なEndpointsルールを削除し、マニフェストを再生成して、CCMが引き続きリーダーを選出し、ノードとサービスを調整できることを検証してください。

索引モデルが issue の本文から書いたものです。

説明

Kubernetes Cloud Controller Manager (CCM)

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 を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

oxidecomputer/oxide-cloud-controller-manager のほかの issue

oxidecomputer/oxide-cloud-controller-manager の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。