Skip to content

Request: Review and minimize postgres-pod RBAC permissions #3057

@sda399

Description

@sda399

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions