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

Fixing evaluation logic in C-0044 and execution safety in C-0048 #60

Merged
merged 6 commits into from
Jan 30, 2025

Conversation

slashben
Copy link
Collaborator

This pull request includes updates to the validation expressions in the policy.yaml files for controls C-0044 and C-0048. The changes aim to simplify and improve the accuracy of the validation logic.

Fixes #58 and #59

Improvements to validation expressions:

  • controls/C-0044/policy.yaml: Updated the expressions to use the exists method for checking container ports with host ports, improving readability and accuracy.
  • controls/C-0048/policy.yaml: Modified the expressions to include a check for the presence of volumes before validating hostPath mounts, ensuring the logic handles cases where volumes may not be present.

@slashben slashben requested a review from amitschendel January 30, 2025 11:28
amitschendel
amitschendel previously approved these changes Jan 30, 2025
@slashben slashben merged commit 194b654 into kubescape:main Jan 30, 2025
5 checks passed
@slashben slashben deleted the fix/volumes branch January 30, 2025 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

C-0048 - not working with deployments without volumes key
2 participants