-
Notifications
You must be signed in to change notification settings - Fork 17
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
Make ClusterRole, Webhook bindings restricted to current module #31
Milestone
Comments
jeff-mccoy
added a commit
that referenced
this issue
Jun 8, 2023
cmwylie19
added a commit
that referenced
this issue
Oct 26, 2023
## Description Build time flag `--rbac-mode` determines whether whether the `ClusterRole` for the Pepr `ServiceAccount` receives cluster-admin permissions (default) or scoped permissions based on the capability bindings. Uses a reduce function to iterate over the capability's bindings and determine the `verbs`, `plural`, and `groups` needed in order to build a `ClusterRoleBinding`. That function is used in the `createClusterRole` function. Includes: - docs - development - unit test - e2e test ## Related Issue Fixes #31 <!-- or --> Relates to # ## Type of change - [ ] Bug fix (non-breaking change which fixes an issue) - [x] New feature (non-breaking change which adds functionality) - [ ] Other (security config, docs update, etc) ## Checklist before merging - [x] Test, docs, adr added or updated as needed - [x] [Contributor Guide Steps](https://github.com/defenseunicorns/pepr/blob/main/CONTRIBUTING.md#submitting-a-pull-request) followed --------- Signed-off-by: Case Wylie <[email protected]>
github-project-automation
bot
moved this from 👀 In review
to ✅ Done
in Pepr Project Board
Oct 26, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently, Pepr doesn't limit the ClusterRole or Webhook bindings to the current module. These should be limited if possible to not over-privilege the controller service account. We also need to evaluate how the webhook bindings work.
The text was updated successfully, but these errors were encountered: