Skip to content

Create button visible in ACL list despite read-only mode #800

@michael-follmann

Description

@michael-follmann

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 I navigate to the ACL page in a cluster with active read-only mode, I can see a disabled "Create ACL" button. When I move my mouse over it, I can see the message "You don't have a required permission to perform this action".

Expected behavior

I expected this button not to be visible at all. This would be consistent with the lists for topics and schemas in read-only mode.

Your installation details

I'm using the Docker image ghcr.io/kafbat/kafka-ui:v1.1.0 and mount a application.yml file as volume to configure the application.

Steps to reproduce

  1. configure a Kafka cluster to have read-only mode
  2. navigate to the ACL list

Screenshots

Image

Logs

No response

Additional context

I could find this button in the code and don't see any isReadOnly checks as for other components:
https://github.com/kafbat/kafka-ui/blob/main/frontend/src/components/ACLPage/List/List.tsx#L153

I'm unsure if the following issue is related: #230

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions