Request: Review and minimize postgres-pod RBAC permissions

オープン
#3,057 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
45/100
issue の種類
リファクタリング
明瞭さ
おおむね明確
活発さ
静か
技術スタック
kubernetes, postgresql

調査の方向性

manifests/operator-service-account-rbac.yaml から始め、現在の postgres-pod の ClusterRole を issue で提案されているルールと照らし合わせて確認します。必要な権限を検証するため、operator の動作と利用可能なテストを確認します。公式な最小権限レビューを実施し、operator に必要な動作を維持する更新済みのルールセットが用意されれば完了です。

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

説明

Hi,

My customer has requested a review of the postgres-pod ClusterRole to reduce its permissions to the minimum required.

My tests (which probably are not as complete as you may conduct) suggests the following minimal ruleset is sufficient:

rules:
  - verbs:
      - create
      - list
      - patch
      - watch
    apiGroups:
      - ""
    resources:
      - endpoints
  - verbs:
      - create
    apiGroups:
      - ""
    resources:
      - services
  - verbs:
      - list
      - patch
      - watch
    apiGroups:
      - ""
    resources:
      - pods

Compared to the current postgres-pod ClusterRole, this would remove the following verbs:

   - endpoints: delete, deletecollection, get, update
   - pods: get, update
   - services: no change

Would you be willing to conduct an official review of the postgres-pod RBAC permissions with the goal of applying the principle of least privilege?

Thanks' for the work you've put on this operator
Regrads

主要言語
Go
スター
5.3k
フォーク
1.1k
平均マージ
3日 17時間
マージ済み PR(30日)
11

環境構築

はじめの一歩

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

zalando/postgres-operator のほかの issue

zalando/postgres-operator の issue をすべて見る

似ている issue

Go の issue をもっと見る

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

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