RBAC User Unbale to create Topic/New Cluster from Kafka UI #1589
-
Issue submitter TODO list
Describe the bug (actual behavior)Hi Team, I have created a docker-compose.yml file with two images: frontend and backend. Frontend: Using Nginx to re-route traffic with SSL. Backend: Kafka application enabled with OAuth configuration, using a .jks certificate along with key and URLs. SSL is enabled, and I am able to see the cluster, configure a new cluster option, and view the option to create new topics. Issue: When I try to add a new cluster or create a new topic, I receive a 403 error. Did I miss any configuration, or is there something additional that needs to be added? Please suggest. Config File: Expected behaviorNo response Your installation detailsI have done the installation and using by docker compose. Steps to reproduceThe docker compose file which i attached will give more info. ScreenshotsProvided error snap and log file here. LogsLogs: kafka-ui-proxy | - - [01/Dec/2025:13:45:02 +0000] "POST /api/clusters/CLuster/topics HTTP/1.1" 403 13 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36" kafka-ui-proxy | - - [01/Dec/2025:13:45:03 +0000] "GET /api/clusters/CLuster/topics?page=1&perPage=25&showInternal=true HTTP/1.1" 200 25056 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36" kafka-ui-proxy | - - [01/Dec/2025:13:45:09 +0000] "DELETE /api/clusters/CLuster/topics/--test1 HTTP/1.1" 403 13 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36"` Additional contextNo response |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments
-
|
Hi stalinbritto! 👋 Welcome, and thank you for opening your first issue in the repo! Please wait for triaging by our maintainers. As development is carried out in our spare time, you can support us by sponsoring our activities or even funding the development of specific issues. If you plan to raise a PR for this issue, please take a look at our contributing guide. |
Beta Was this translation helpful? Give feedback.
-
|
Please try to add role.yaml into your SPRING_CONFIG_ADDITIONAL_LOCATION path |
Beta Was this translation helpful? Give feedback.
-
|
Here am facing different issues. Once I added the roles.yml as you recommended, the UI no longer shows cluster details (it appears empty). Still, I’m unable to create topics or other configurations — the same error occurs as before. "https://kafkaui-domain.in/ui/clusters/CLUSTER/all-topics/create-new-topic"
Still, I’m unable to create topics or other configurations — the same error occurs as before. |
Beta Was this translation helpful? Give feedback.
-
|
@Team I am able to see the nodes and topics. However, RBAC is not enabled based on users. |
Beta Was this translation helpful? Give feedback.
-
|
From your From your compose: where did you get these from? these are all not valid properties. they’re not in the repo and not in the docs, so kafka-ui will ignore them. the supported oauth2 config is here: https://ui.docs.kafbat.io/configuration/authentication/for-the-ui/oauth2 also, you define |
Beta Was this translation helpful? Give feedback.
-
|
a guide to debug RBAC issues, once you get there: https://ui.docs.kafbat.io/faq/rbac-issues |
Beta Was this translation helpful? Give feedback.


From your
roles.yml:- provider: roleFrom your compose:
where did you get these from?
these are all not valid properties. they’re not in the repo and not in the docs, so kafka-ui will ignore them.
the supported oauth2 config is here: https://ui.docs.kafbat.io/configuration/authentication/for-the-ui/oauth2
also, you define
SPRING_SECURITY_OAUTH2_CLIENT_REGISTRATION_OIDC_CLIENT_SECRETtwice in your compose. Run a linter or at leastdocker compose configbefore sending issues.