Open yusaito01 opened 10 months ago
Hello there yusaito01! 👋
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. 👀
Same is true when using AWS Cognito for authentication following the instructions given at https://docs.kafka-ui.provectus.io/configuration/authentication/oauth2#cognito. Fails with exactly the same error message, so AuditService currently seems to be not compliant with OAuth2 authentication mecahnisms, as there is a hard Class Cast to type UserDetails happening at the Audit Service, while the provided [SecurityContext.getAuthentication](https://docs.spring.io/spring-security/site/docs/current/api/org/springframework/security/core/context/SecurityContext.html#getAuthentication()).[getPrincipal](https://docs.spring.io/spring-security/site/docs/current/api/org/springframework/security/core/Authentication.html#getPrincipal()) is returning an instance of type OidcUser
Hi @Haarolean , can you assign it to me? I want to work on it.
@Haarolean thank you for answering
Anyway, I created a PR. I look forward to restarting the project.
@moremagic @Haarolean Any updates on this PR merge? Audit logs are not working with Google OAuth as well
@TharukaMannapperuma https://github.com/provectus/kafka-ui/discussions/4255
Issue submitter TODO list
master
-labeled docker image and the issue still persists thereDescribe the bug (actual behavior)
After enabling authentication using okta and the audit log feature, the audit log is not output when accessing kafka-ui.
Expected behavior
the audit logs are output. If I disable okta auth and follow the steps above, the following logs are output.
Your installation details
Steps to reproduce
Screenshots
No response
Logs
Additional context
Perhaps the cause of this problem is related to the following issue, but since there is no mention of an audit log in this issue, I have created a new issue. https://github.com/provectus/kafka-ui/issues/4226
The contents of kafka.audit are written in camelcase because of the following comment. https://github.com/provectus/kafka-ui/issues/4309#issuecomment-1786456025