KSQLDB query error #1487
Unanswered
MrCenterLine
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
First, I want to thank the developers for creating Kafka UI (Kafbat). It's an excellent product.
I am running into a persistent 403 Forbidden error when attempting to execute KSQL queries through the UI, and I suspect it might be a bug related to Basic Authentication handling for POST requests.
Environment Details
Problem Summary
When I attempt to run any query (e.g., list topics;) from the KsqlDB menu:
Configuration Attempts (All Resulted in 403 on the POST Request)
We have confirmed all Kafka ACLs are set to ALL for the admin user. The issue persists even after separating the UI login user (spring.security) from the KSQLDB user (ksqldbServerAuth).
Configuration Used in application.yml
ksqldbServer: http://SERVICE-BROKER-01:8088
ksqldbServerAuth:
username: admin
password: password
spring:
security:
user:
name: ui-user # Separated user for UI login
password: ui-pass
roles: ADMIN # Added roles to ensure authorization
Request for Assistance
Since the KsqlDB server returns 200 OK, the 403 error must be generated by the Kafka UI server itself when proxying the POST request. This strongly suggests a Spring Security configuration or CSRF handling bug within Kafka UI for KSQL POST requests under Basic Auth.
Could you please confirm if this is a known bug in specific Kafka UI versions, or if there is a required Spring Security setting (e.g., a specific role or a change to the default security filter chain) in application.yml to allow the KSQL /v2POST requests to pass the internal authorization check?
Thank you for your help.
Beta Was this translation helpful? Give feedback.
All reactions