-
Notifications
You must be signed in to change notification settings - Fork 353
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
Equip KubeArmor with Default Armors #602
Conversation
Codecov Report
@@ Coverage Diff @@
## main #602 +/- ##
==========================================
+ Coverage 43.55% 44.28% +0.73%
==========================================
Files 24 24
Lines 8482 8536 +54
==========================================
+ Hits 3694 3780 +86
+ Misses 4336 4299 -37
- Partials 452 457 +5
Continue to review full report at Codecov.
|
28371f5
to
92abd1b
Compare
b609ff0
to
61280ab
Compare
ef2ddce
to
be477f5
Compare
295337b
to
9a5952d
Compare
f30506c
to
e945d83
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
a3ce1d4
to
b61add4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's update this PR on the latest code and merge it.
By the way, it would be better if we have a document that explains how the default posture works in specific cases.
KubeArmor didn't have a configurable default mode of operations. This commit introduces a configurable default posture as well changes in enforcement system to act accordingly. Ref kubearmor#595 Signed-off-by: daemon1024 <[email protected]>
When KubeArmor is equipped with default posture block/audit each of the telemetry events generated needs to be an alert. This commit introduces changes to the policy matcher to update our logs to implicit block/audit alerts based on the configured default posture. Ref kubearmor#595 Signed-off-by: daemon1024 <[email protected]>
3ebb49f
to
b699495
Compare
Let's document it as part of #630 since will also need to document how to exactly to apply default postures... WDYT? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@nam-jaehyun , can you please review/approve/merge? Thanks |
tests/scenarios/github_test_12/ksp-ubuntu-1-net-tcp-from-source-allow.yaml
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added some comments. Please check them.
b699495
to
64140bf
Compare
This commit also fixes the bug where default deny didn't work if we only had fromSource based Allow Policies Signed-off-by: daemon1024 <[email protected]>
Signed-off-by: daemon1024 <[email protected]>
… allow policy Signed-off-by: daemon1024 <[email protected]>
Modified test script to accomodate DefaultPosture logs Signed-off-by: daemon1024 <[email protected]>
64140bf
to
dbfb5cc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's merge it.
Ref #595