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

Open
wants to merge 21 commits into
base: main
Choose a base branch
from

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 😁.

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