BE: RBAC: Ignore values for non-applicable resources #253
Labels
area/rbac
Related to Role Based Access Control feature
good first issue
Up for grabs
hacktoberfest
Issues good for hacktoberfest goal
scope/backend
Related to backend changes
status/triage/completed
Automatic triage completed
type/bug
Something isn't working
Milestone
Issue submitter TODO list
main
-labeled docker image and the issue still persists thereDescribe the bug (actual behavior)
I get the 500 errors while trying to get Broker configs or edit dynamic config of a cluster.
Roman Zabaluev suggested that it may be a bug with RBAC. Logs and RBAC config are in the attachment.
log-events-viewer-result.csv
rbac-qa.zip
Uploaded Files
Expected behavior
Cluster dynamic config reachable.
Broker configs tab working.
Your installation details
I'm running an image 2956664 v1.0.0 from ghcr.io/kafbat/kafka-ui:latest
I build a custom image in ECR with this simple Dockerfile:
FROM provectuslabs/kafka-ui:latest
COPY rbac-qa-test.yml /roles.yml
ENV SPRING_CONFIG_ADDITIONAL-LOCATION /roles.yml
EXPOSE 8080
It is deployed on AWS ECS with AWS IAM authorization to Cluster and Cognito authorization to Kafka-UI with RBAC enabled.
Cluster config is transferred via env variables.
rbac-qa.zip
Steps to reproduce
Use configuration to deploy KafkaUI, then click the appropriate "configure" button or broker config tab.
Screenshots
Screenshots
Logs
1711720109267,java.lang.IllegalStateException: null
1711720109267, at com.google.common.base.Preconditions.checkState(Preconditions.java:496)
1711720109267, Suppressed: reactor.core.publisher.FluxOnAssembly$OnAssemblyException:
1711720109267,Original Stack Trace:
1711720109267, at com.google.common.base.Preconditions.checkState(Preconditions.java:496)
1711720109267, at io.kafbat.ui.model.rbac.AccessContext$SingleResourceAccess.lambda$isAccessible$1(AccessContext.java:72)
log-events-viewer-result.csv
Additional context
No response
The text was updated successfully, but these errors were encountered: