-
Notifications
You must be signed in to change notification settings - Fork 683
Add infrastructure for reactive auditing [DATACMNS-1231] #1670
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
Comments
Mark Paluch commented Auditing for imperative data access is different than auditing could work for reactive usage because of the way how we propagate contexts (like All involved components need to integrate with the changed context passing mechanism. The current implementation is based (for e.g. MongoDB) on a listener ( That said, we need to change auditing for reactive use and it might be we need to provide a separate implementation for auditing |
Scott White commented Mark Paluch Could you confirm that this breaks audit user functionality (AuditorAware) for reactive endpoints. Also are there any workarounds for this? |
maresja1 commented Mark Paluch the same question here, is there a way to use AuditorAware for webflux without this issue resolved? If not, when is this issue going to be addressed? The last update is adding blocking issue, which is resolved now. Thank you, |
Mark Paluch commented We don't have a reactive implementation for For reactive auditing, we need to rethink how auditing is implemented and likely entirely rewrite the auditing implementation. You can implement auditing somewhat yourself as we have laid a reactive foundation with EntityCallbacks. For a reactive security context integrations, all calling paths must participate in returning That being said, it's a fair amount of work to make these things work |
Lee commented Related discussion, assuming potential use of Future as one solution: |
Jocelyn Ntakpe opened DATACMNS-1231 and commented
AuditorAware currently doesn't support any way to retrieve user. Since SecurityContext is not available, AuditorAware should provide a way to pass ReactiveSecurityContext for instance using Mono.subscriberContext
Issue Links:
("depends on")
("is depended on by")
("is depended on by")
("is depended on by")
Referenced from: pull request #458
11 votes, 14 watchers
The text was updated successfully, but these errors were encountered: