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

Follow principle of least privilege for operator permissions #55

Merged
merged 1 commit into from
Jun 9, 2021

Conversation

SimonBarendse
Copy link
Member

ClusterRoleBinding grants the permissions cluster wide. Instead, now we limit the permissions to just the namespaces being watched by using a RoleBinding instead following the principle of least privilege.

References

ClusterRoleBinding grants the permissions cluster wide. Instead,
now we limit the permissions to just the namespaces being watched
by using a RoleBinding instead following the principle of least
privilege.

Also, the service account is created in the default namespace,
not in each watched namespace separately.
This commit also changes the service account namespace to be
the release namespace (provided with --namespace on the helm
install command), instead of always the default namespace.
@SimonBarendse SimonBarendse force-pushed the fix/principle-of-least-privilege branch from fd7c95c to 630b17b Compare June 9, 2021 09:17
@SimonBarendse SimonBarendse added the bug Something isn't working label Jun 9, 2021
@SimonBarendse SimonBarendse merged commit 28ab63a into main Jun 9, 2021
@SimonBarendse SimonBarendse deleted the fix/principle-of-least-privilege branch June 9, 2021 09:23
This was referenced Jun 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants