-
Notifications
You must be signed in to change notification settings - Fork 271
BED-6418: Completeness Metrics Update #2015
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
Conversation
WalkthroughThe changes shift user activity filtering logic in Active Directory completeness analysis from PasswordLastSet to LastLogonTimestamp. A test harness is updated to include a disabled user node with corresponding relationship adjustments. Query functions are refactored to enforce the Enabled flag and reduce the activity threshold from ninety to fourteen days. Changes
Sequence DiagramsequenceDiagram
participant Filter as Activity Filter Logic
participant OldPath as Old Path (PasswordLastSet)
participant NewPath as New Path (LastLogonTimestamp)
participant Result as Filter Result
rect rgb(240, 248, 255)
Note over OldPath: Previous Approach
Filter->>OldPath: Check PasswordLastSet > 90 days ago
OldPath->>Result: Include/Exclude based on pwd change
end
rect rgb(230, 245, 230)
Note over NewPath: New Approach
Filter->>NewPath: Check Enabled == true
NewPath->>NewPath: Check LastLogonTimestamp exists
NewPath->>NewPath: Check LastLogonTimestamp > 14 days ago
NewPath->>Result: Include/Exclude based on recent activity
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (2)
🧰 Additional context used🧬 Code graph analysis (1)packages/go/analysis/ad/queries.go (2)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
🔇 Additional comments (5)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
AD7ZJ
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me, at least as far as implementing what is described in the ticket :)
|
Just wondering, but why doesn't CComputerB(Base Computer) and CGroup(Base Group) not have |
|
@ALCooper12 CComputerA and CComputerB are both intended as different kinds of negative cases and should not be included in the calculation for Local Group Completeness, since they do not meet the requirements for both the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for clarifying! LGTM 👍🏾
Description
This PR updates our rules for determining which users or computers to consider "active" when calculating Local Group Completeness and Session Completeness metrics. Both should now use the following criteria:
enabledproperty set totruelastlogontimestampproperty within the last 14 daysMotivation and Context
Resolves BED-6418
Previously, we were not checking the
enabledproperty and we had a expiration window of 90 days, which is too long to provide helpful results and makes this metric appear lower than needed.How Has This Been Tested?
Screenshots (optional):
Types of changes
Checklist:
Summary by CodeRabbit