-
Notifications
You must be signed in to change notification settings - Fork 48
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
Fixing alert on all hostPaths #494
Conversation
PR Analysis
PR Feedback
How to use
|
Summary:
|
/describe |
/improve |
Co-authored-by: codiumai-pr-agent[bot] <138128286+codiumai-pr-agent[bot]@users.noreply.github.com>
Summary:
|
Summary:
|
Summary:
|
PR Type:
Bug fix
PR Description:
This PR is focused on fixing the alert mechanism for all hostPaths in the system. Previously, the alert was only triggered for hostPaths that started with '/etc' or '/var'. Now, the alert will be triggered for any hostPath, enhancing the security of the system.
PR Main Files Walkthrough:
-
rules/alert-any-hostpath/raw.rego
: The functionis_dangerous_host_path
was renamed tois_dangerous_volume
and its logic was simplified. Instead of checking if the hostPath starts with '/etc' or '/var', it now simply returns the hostPath. This change was also reflected in thedeny
rules, whereis_dangerous_host_path
was replaced byis_dangerous_volume
.