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

Add Cluster Roles to auto-reconcile user facing roles #335

Open
Mascarenhas12 opened this issue Jul 21, 2024 · 1 comment · May be fixed by #336
Open

Add Cluster Roles to auto-reconcile user facing roles #335

Mascarenhas12 opened this issue Jul 21, 2024 · 1 comment · May be fixed by #336
Labels

Comments

@Mascarenhas12
Copy link

What did you do to encounter the bug?
Kubernetes has some default user-facing roles (admin, edit, view) which can be auto-reconciled based on labels. User-Facing Roles
This way, new custom resources can be added to the standard permissions automatically.
This is particularly useful for cluster admins to give standardized roles to users (ex: Rancher project admin, member, reader permissions).

What did you expect?
When mongodb operator is installed:

  • Default admin role should have permission to all verbs the CR API Group: mongodbcommunity.mongodb.com
  • Default edit role should have permission to write verbs the CR API Group: mongodbcommunity.mongodb.com
  • Default view role should have permission to read verbs the CR API Group: mongodbcommunity.mongodb.com

Admin can/should be combination of edit and view roles instead of a separate role by itself.
See Fluxcd's example: Flux User Edit Role
What happened instead?
User facing roles are not auto-reconciled.

Mascarenhas12 pushed a commit to Mascarenhas12/mongodb-operator-chart that referenced this issue Jul 21, 2024
@Mascarenhas12 Mascarenhas12 linked a pull request Jul 21, 2024 that will close this issue
4 tasks
Copy link
Contributor

This issue is being marked stale because it has been open for 60 days with no activity. Please comment if this issue is still affecting you. If there is no change, this issue will be closed in 30 days.

@github-actions github-actions bot added the Stale label Sep 20, 2024
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 a pull request may close this issue.

1 participant