Skip to content

🚀 rbac: Support group reference in superUsers config #7783

@Sancretor

Description

@Sancretor

Workspace

rbac

🔖 Feature description

Hello dear community,

Like explained below, I'd like to use group reference in the superUsers field of the RBAC plugin, so I don't have to list all users one by one.

As I'm pretty motivated to open a PR for this feature, I just wanted to know if there is a reason for not supporting this, so I'm not working on a PR that will be rejected right away.

Thanks for your feedback 🙏

🎤 Context

While testing the RBAC plugin (which is great, thanks community !), I realized the following configuration is failing :

permission:
  enabled: true
  rbac:
    admin:
      superUsers:
        - name: group:default/my-group # <--- this is the important part

It seems RBAC plugin does not support group reference in the superUsers field, unlike the users one.
The documentation states it works for users but do not provide any clue regarding superUsers.

✌️ Possible Implementation

No response

👀 Have you spent some time to check if this feature request has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

Are you willing to submit PR?

Yes I am willing to submit a PR!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions