Skip to content

ACL: Not specifying principalType crashes topics page #1687

@RotemCDos

Description

@RotemCDos

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)

Creating a new ACL not in the following format principalType:principalName will cause the topics page to crash.
The entire page seems empty while the topics still exist.
For example: a new ACL test will be accepted by the UI but cause errors on the Kafka cluster.

Expected behavior

By the Apache Kafka ACL security validations (specified in clients/src/main/java/org/apache/kafka/common/utils/SecurityUtils.java), an ACL will not be created if it does not follow the principalType:principalName format.

Your installation details

I used the docker-compose with SSL/TLS, the latest Kafbat UI and Kafka versions for my current tests.
The issue exists on my production environment as well, which run on Kafbat UI v1.1.4 and Kafka 3.5.1.

Steps to reproduce

Navigate to the ACLs page -> Create ACL -> under Principal fill out test or any ACL without principalType: -> navigate to the topics page and it should now be empty

Screenshots

No response

Logs

No response

Additional context

No response

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions