Skip to content

fix(rbac): add aggregation labels to ObjectStore ClusterRoles - #1103

Open
stefanpeknik wants to merge 1 commit into
cloudnative-pg:mainfrom
stefanpeknik:rbac-aggregation-labels
Open

stefanpeknik wants to merge 1 commit into
cloudnative-pg:mainfrom
stefanpeknik:rbac-aggregation-labels

Conversation

@stefanpeknik

Copy link
Copy Markdown

Add standard Kubernetes RBAC aggregation labels to barman-plugin-objectstore-editor-role and barman-plugin-objectstore-viewer-role ClusterRoles.

Without these labels, users bound to the built-in admin, edit, or view ClusterRoles can't access ObjectStore resources. Every deployer has to create manual RoleBindings per namespace as a workaround.

Changes:

  • objectstore_editor_role.yaml: add aggregate-to-admin and aggregate-to-edit labels
  • objectstore_viewer_role.yaml: add aggregate-to-view label

The main CloudNative-PG operator already uses these labels for its CRDs.

Closes #1102

@stefanpeknik
stefanpeknik requested a review from a team as a code owner September 16, 2026 21:21
Add standard Kubernetes RBAC aggregation labels so that users bound to
the built-in admin, edit, or view ClusterRoles can access ObjectStore
resources without manual RoleBindings.

Closes cloudnative-pg#1102

Signed-off-by: Stefan Peknik <stfn.peknik@gmail.com>
@stefanpeknik
stefanpeknik force-pushed the rbac-aggregation-labels branch from 58012f0 to 4e7571b Compare September 16, 2026 21:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add RBAC aggregation labels to ObjectStore editor/viewer ClusterRoles

1 participant