Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Audit is not working with LDAP authentication #4131

Closed
4 tasks done
gfdsa opened this issue Aug 17, 2023 · 1 comment · Fixed by #4138
Closed
4 tasks done

Audit is not working with LDAP authentication #4131

gfdsa opened this issue Aug 17, 2023 · 1 comment · Fixed by #4138
Assignees
Labels
area/audit scope/backend status/accepted An issue which has passed triage and has been accepted status/confirmed A bug which actuality is confirmed type/bug Something isn't working
Milestone

Comments

@gfdsa
Copy link

gfdsa commented Aug 17, 2023

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 master-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)

Audit topic is created and the audit service is being called correctly but fails with the following:

reactor.core.Exceptions$ErrorCallbackNotImplemented: java.lang.ClassCastException: Cannot cast org.springframework.security.ldap.userdetails.LdapUserDetailsImpl to com.provectus.kafka.ui.config.auth.RbacUser
Caused by: java.lang.ClassCastException: Cannot cast org.springframework.security.ldap.userdetails.LdapUserDetailsImpl to com.provectus.kafka.ui.config.auth.RbacUser
	at java.base/java.lang.Class.cast(Class.java:3889)
	at reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber.onNext(FluxMapFuseable.java:113)
	at reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber.onNext(FluxMapFuseable.java:129)
	at reactor.core.publisher.MonoFlatMap$FlatMapMain.onNext(MonoFlatMap.java:158)
	at reactor.core.publisher.Operators$MonoSubscriber.complete(Operators.java:1839)
	at reactor.core.publisher.MonoCacheTime.subscribeOrReturn(MonoCacheTime.java:151)
	at reactor.core.publisher.Mono.subscribe(Mono.java:4480)
	at reactor.core.publisher.Mono.subscribeWith(Mono.java:4561)
	at reactor.core.publisher.Mono.subscribe(Mono.java:4323)
	at com.provectus.kafka.ui.service.audit.AuditService.audit(AuditService.java:163)

nothing is being published into the __kui-audit-log

Expected behavior

messagges in __kui-audit-log

Your installation details

ca2d53f

LDAP login is configured and is working correctly
Kafka cluster is visible and all is working

Steps to reproduce

login with ldap and do some auditable action

Screenshots

No response

Logs

redacted

Additional context

No response

@gfdsa gfdsa added status/triage Issues pending maintainers triage type/bug Something isn't working labels Aug 17, 2023
@github-actions
Copy link

Hello there gfdsa! 👋

Thank you and congratulations 🎉 for opening your very first issue in this project! 💖

In case you want to claim this issue, please comment down below! We will try to get back to you as soon as we can. 👀

@Haarolean Haarolean self-assigned this Aug 18, 2023
@Haarolean Haarolean added scope/backend status/accepted An issue which has passed triage and has been accepted status/confirmed A bug which actuality is confirmed area/rbac area/audit and removed status/triage Issues pending maintainers triage labels Aug 18, 2023
@Haarolean Haarolean added this to the 0.7.2 milestone Aug 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/audit scope/backend status/accepted An issue which has passed triage and has been accepted status/confirmed A bug which actuality is confirmed type/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants