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

[Feature Request] Matching namespaces with regular expressions #353

Open
jmueller42 opened this issue Nov 16, 2022 · 1 comment
Open

[Feature Request] Matching namespaces with regular expressions #353

jmueller42 opened this issue Nov 16, 2022 · 1 comment
Labels
enhancement Adding additional functionality or improvements pinned Prevents stalebot from removing

Comments

@jmueller42
Copy link

jmueller42 commented Nov 16, 2022

Hi team,

thank you for this very nice operator.

It would be very handy if namespaces could not only be matched by their exact name, but instead by a pattern.
Currently we use an external script to find matching namespaces per user and then create the RBACDefinition and apply it to the cluster.
Unfortunately this creates quite some delay between a newly created namespace and the corresponding team members getting access to it.
Unfortunately we cannot use labels on namespaces since in our setups it's not possible to add labels or annotations to the namespaces themselves.

Example how this could look like:

apiVersion: rbacmanager.reactiveops.io/v1beta1
kind: RBACDefinition
metadata:
  name: rbac-manager-users-example
rbacBindings:
  - name: web-developers
    subjects:
      - kind: User
        name: dave@example.com
      - kind: User
        name: joe@example.com
    roleBindings:
      - clusterRole: edit
        namespaceRegex: ".*-project-xy-.*"

@jmueller42 jmueller42 added enhancement Adding additional functionality or improvements triage This bug needs triage labels Nov 16, 2022
@sudermanjr sudermanjr added pinned Prevents stalebot from removing and removed triage This bug needs triage labels Nov 16, 2022
@sudermanjr
Copy link
Member

Seems like a great idea, thanks for the request!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Adding additional functionality or improvements pinned Prevents stalebot from removing
Projects
None yet
Development

No branches or pull requests

2 participants