Skip to content

Readonly roles can create acls #370

@marcosschroh

Description

@marcosschroh

Issue submitter TODO list

  • I've looked up my issue in FAQ
  • I've searched for an already existing issues here
  • I've tried running main-labeled docker image and the issue still persists there
  • I'm running a supported version of the application which is listed here

Describe the bug (actual behavior)

When using RBAC with a readonly role it is possible to create ACLs, which I think it should not be allowed

Expected behavior

Read only roles should not be able to create ACLs.

Your installation details

# values.yaml
kafka-ui:
  # kubernetes resources
  image:
    repository: kafbat/kafka-ui
    tag: "v1.0.0"

# Chart.yaml
dependencies:
- name: kafka-ui
  version: "1.4.0"
  repository: "https://kafbat.github.io/helm-charts"

Steps to reproduce

Setup RBAC and use the configuration that is it found in the documentation

rbac:
  roles:
    - name: "readonly"
      clusters:
        # FILL THIS
      subjects:
        # FILL THIS
      permissions:
        - resource: clusterconfig
          actions: [ "view" ]

        - resource: topic
          value: ".*"
          actions: 
            - VIEW
            - MESSAGES_READ

        - resource: consumer
          value: ".*"
          actions: [ view ]

        - resource: schema
          value: ".*"
          actions: [ view ]

        - resource: connect
          value: ".*"
          actions: [ view ]

Screenshots

Screenshot 2024-05-06 at 16 30 36
Screenshot 2024-05-06 at 16 32 38

Logs

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/rbacRelated to Role Based Access Control featurescope/frontendRelated to frontend changesstatus/invalidThis doesn't seem rightstatus/triage/completedAutomatic triage completedtype/bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions