-
Notifications
You must be signed in to change notification settings - Fork 197
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
refactor: Separate kube-bench -specific code #405
Conversation
Signed-off-by: Daniel Pacak <pacak.daniel@gmail.com>
Codecov Report
@@ Coverage Diff @@
## main #405 +/- ##
==========================================
- Coverage 67.75% 67.69% -0.06%
==========================================
Files 59 58 -1
Lines 3098 3105 +7
==========================================
+ Hits 2099 2102 +3
- Misses 738 741 +3
- Partials 261 262 +1
Continue to review full report at Codecov.
|
) | ||
// Plugin defines the interface between Starboard and Kubernetes configuration | ||
// checker with CIS Kubernetes Benchmarks. | ||
type Plugin interface { |
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.
Even though there's (and probably will be) only one implementation that relies on Kube-Bench, the purpose of this interface is to share the logic between CLI and the operator in preparation to resolve #263
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 👍
Privileged: pointer.BoolPtr(false), | ||
AllowPrivilegeEscalation: pointer.BoolPtr(false), | ||
Capabilities: &corev1.Capabilities{ | ||
Drop: []corev1.Capability{"all"}, |
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.
Drop: []corev1.Capability{"all"}, | |
Drop: []corev1.Capability{"ALL"}, |
Isn't this supposed to be ALL (caps)?
According to spec, PSA implementation, and most policy rules?
Signed-off-by: Daniel Pacak pacak.daniel@gmail.com