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(enforcer): add allow redundant rules to aid conflict resolution #986

Merged
merged 1 commit into from Nov 14, 2022

Conversation

daemon1024
Copy link
Member

@daemon1024 daemon1024 commented Nov 14, 2022

Purpose of PR?:

We removed redundant allow rules when default posture = audit. But this breaks our conflict resolution in from source profiles which aid lenient whitelisting policies.

This change will help make lenient whitelisting policies work with default posture audit.

Ref #985

If the changes in this PR are manually verified, list down the scenarios covered::
Lenient Whitelisting Test with DefaultPosture = audit

Checklist:

  • Bug fix.
  • PR Title follows the convention of <type>(<scope>): <subject>

We removed redundant allow rules when default posture = audit. But this breaks our conflict resolution in from source profiles which aid lenient whitelisting policies.

This change will help make lenient whitelisting policies work with default posture audit.

Signed-off-by: daemon1024 <barun.acharya@accuknox.com>
@codecov-commenter
Copy link

codecov-commenter commented Nov 14, 2022

Codecov Report

Merging #986 (7a92801) into main (03dfb28) will increase coverage by 0.00%.
The diff coverage is 31.39%.

@@           Coverage Diff           @@
##             main     #986   +/-   ##
=======================================
  Coverage   39.05%   39.06%           
=======================================
  Files          31       31           
  Lines        9898     9918   +20     
=======================================
+ Hits         3866     3874    +8     
- Misses       5515     5528   +13     
+ Partials      517      516    -1     
Impacted Files Coverage Δ
KubeArmor/enforcer/bpflsm/rulesHandling.go 0.00% <0.00%> (ø)
KubeArmor/enforcer/appArmorProfile.go 58.39% <58.69%> (ø)
KubeArmor/core/dockerHandler.go 47.47% <0.00%> (+2.69%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Copy link
Contributor

@nyrahul nyrahul left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@nyrahul nyrahul merged commit 9e68db5 into kubearmor:main Nov 14, 2022
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.

None yet

3 participants