Skip to content
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

Fix: Ignore disabled clients in monitors when enabled #64

Merged
merged 21 commits into from
Jan 9, 2025

Conversation

malexmave
Copy link
Collaborator

Some of the monitors did not respect the --ignore-disabled-clients switch. This PR fixes that issue and closes #46 (or, to be exact, its more general case, as that issue only refers to one of the three affected monitors).

@malexmave malexmave added the bug Something isn't working label Dec 13, 2024
@malexmave malexmave requested a review from twwd December 13, 2024 09:54
Copy link
Collaborator

@twwd twwd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add some tests to ensure that the bugs cannot be introduced in future again.

@malexmave
Copy link
Collaborator Author

I have added tests for the ServiceAccountWithSensitiveRole monitor, but should probably take this opportunity to add tests for the other four monitors as well. So, please hold off on merging for now.

@malexmave malexmave requested a review from twwd December 19, 2024 15:08
@malexmave
Copy link
Collaborator Author

Added test cases for all monitors now. Should probably go back and rewrite some of the older test cases with the techniques I learned now, but if I do that, we will never merge this 😁.

@twwd twwd force-pushed the feature/ignore_disabled_clients_in_monitors branch from a143e7b to 8b12197 Compare January 6, 2025 12:43
@twwd twwd force-pushed the feature/ignore_disabled_clients_in_monitors branch from 8b12197 to e1cd0f9 Compare January 9, 2025 13:02
@twwd twwd merged commit addcc02 into main Jan 9, 2025
4 checks passed
@twwd twwd deleted the feature/ignore_disabled_clients_in_monitors branch January 9, 2025 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants