Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RBAC: restrict SeedImage controller auth to fleet-default #864

Merged
merged 2 commits into from
Oct 7, 2024

Conversation

fgiudici
Copy link
Member

@fgiudici fgiudici commented Oct 4, 2024

Do not allow the seedimage-controller to operate on pods, services and configmaps outside of the fleet-default namespace.

This requires to introduce a Role and RoleBinding scoped on fleet-default along our ClusterRole and ClusterRoleBinding for the operator ServiceAccount.
Moved all the RBAC resources above under kustomize management and converted all in a rbac.yaml file under the chart template directory.

Fixes #457

do not allow the seedimage-controller to operate on pods, services and
configmaps outside of the fleet-default namespace.

Fixes rancher#457

Signed-off-by: Francesco Giudici <francesco.giudici@suse.com>
Also have all of them collected and generated via kustomize

Signed-off-by: Francesco Giudici <francesco.giudici@suse.com>
@fgiudici fgiudici requested a review from a team as a code owner October 4, 2024 16:11
@github-actions github-actions bot added the area/build build related changes label Oct 4, 2024
Copy link
Contributor

@anmazzotti anmazzotti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@fgiudici fgiudici merged commit de3c37d into rancher:main Oct 7, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/build build related changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SeedImage: limit controller RBAC permissions to the required namespace only
2 participants