Feature/linux user auditor - #2414
Merged
Merged
Conversation
…ty resolution in repository
🛑 AI review — Sensitive area, extra care recommendedThis PR touches critical paths or introduces changes the model cannot judge with sufficient confidence. Review carefully before merging. 🛑
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this PR does
Extends the User Auditor feature — until now it only tracked Active Directory users from Windows event logs — to also track user accounts on Linux hosts. The same page, the same API, the same table, but now Windows and Linux user lifecycle events (create, delete, login, session activity) coexist in the same inventory with a
sourcefield that tells them apart.Plugin changes
dataType: Windows events still flow through the same code path as before (zero regression), and Linux events are routed to new handlers.useradd/userdelmessages. Login and session events come from auditdUSER_LOGINandUSER_START. The plugin maintains a Linux-specific cache, flushes to the backend every 60 seconds just like the Windows path, and filters out system accounts (uid < 1000,auid=unset, etc).Why this change
Two motivations, one blocking the other:
manager-onlyguard described above. That fix is included here because without it the Linux feature would also fail on any event routed to the worker container.Referenced issue
N/A