Skip to content

Comments

[release/v25.1.x] operator: itemize RBAC#593

Merged
RafalKorepta merged 1 commit intorelease/v25.1.xfrom
backport/release/v25.1.x/pr-580
Mar 28, 2025
Merged

[release/v25.1.x] operator: itemize RBAC#593
RafalKorepta merged 1 commit intorelease/v25.1.xfrom
backport/release/v25.1.x/pr-580

Conversation

@RafalKorepta
Copy link
Contributor

@RafalKorepta RafalKorepta commented Mar 28, 2025

Backport

This will backport the following commits from main to release/v25.1.x:

Questions ?

Please refer to the Backport tool documentation

Reference

https://redpandadata.atlassian.net/browse/K8S-495

Prior to this commit the RBAC declarations of the various controllers were
littered across the repo. This made it exceptionally difficult to understand
where permissions came from. It also made any attempt to test that the redpanda
and operator charts' RBACs were correctly configured nearly impossible as the
charts themselves had to itemize permissions while their sources did not.

This commit divides each distinct controller into its own package which allows
`controller-gen` to build the (Cluster)Roles for a specific controller.

The vast majority of changes in the commit is just code movement. Notable
exceptions are:

- Duplication of `redpanda_controller_utils.go`. This file is cursed and will
  be removed soon any how. I'm accepting the evil of duplicating it.
- RBAC is now spit into `./operator/config/rbac/itemized/`
- An empty `rpkdebugbundle` package has been added to track the permissions
  required for `rpk debug bundle`.

See also: [K8S-537], [K8S-495]

(cherry picked from commit ec56b44)
@RafalKorepta RafalKorepta merged commit 48294fd into release/v25.1.x Mar 28, 2025
13 checks passed
@RafalKorepta RafalKorepta deleted the backport/release/v25.1.x/pr-580 branch March 28, 2025 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants