While impersonating a different user, the action_events
shows the impersonated user, implying the change was made by the impersonated user
#6545
Unanswered
bmoex
asked this question in
Ideas & Feature Requests
Replies: 1 comment 1 reply
-
I believe this need to be study in detail before making a massive change. In the meantime, temporary you might want to look into overriding the AcrionEvent model or setting the user via Model Observer |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
Summary
As the impersonation implementation is available for laravel nova, I've found a 'vulnerability' for invalid auditing. Impersonation works perfectly and has a beautiful way of showing impersonation.
However, while tracking our
audit_actions
, i've noticed invalid records for thatuser_id
.This can pollute this table with invalid data.
Details
When impersonating another user, the
action_events
writes the current user id (impersonated user) as 'owner' of that action.Detailed steps to reproduce the issue on a fresh Nova installation
Impact
I expect this as low impact in general but as this is required by our security/privacy policy to be monitored. This has high impact for us.
Possible solution(s)
A) Use the
id
of the original impersonated inuser_id
B) Add a column
through_user_id
with this impersonated id if availableBeta Was this translation helpful? Give feedback.
All reactions