mirror of
https://github.com/aquasecurity/kube-bench.git
synced 2026-02-14 10:00:14 +00:00
Add logging (#822)
* Add more logging The old logging could was lacking and in some cases misleading * Add Logging Add more logs and change some old messages, the important part is make each test log more readable by adding ------ test id ------ section in logs * Fix typos * more info add more info in comment about the function and it use cases Co-authored-by: Liz Rice <liz@lizrice.com> * Use switch case Change the logic from if to switch and tidy up the code
This commit is contained in:
2
integration/testdata/cis-1.5/job.data
vendored
2
integration/testdata/cis-1.5/job.data
vendored
@@ -353,7 +353,7 @@ UIDs not including 0.
|
||||
5.2.8 Ensure that allowedCapabilities is not present in PSPs for the cluster unless
|
||||
it is set to an empty array.
|
||||
|
||||
5.2.9 Review the use of capabilites in applications runnning on your cluster. Where a namespace
|
||||
5.2.9 Review the use of capabilites in applications running on your cluster. Where a namespace
|
||||
contains applicaions which do not require any Linux capabities to operate consider adding
|
||||
a PSP which forbids the admission of containers which do not drop all capabilities.
|
||||
|
||||
|
||||
4
integration/testdata/cis-1.6/job.data
vendored
4
integration/testdata/cis-1.6/job.data
vendored
@@ -356,7 +356,7 @@ UIDs not including 0.
|
||||
5.2.8 Ensure that allowedCapabilities is not present in PSPs for the cluster unless
|
||||
it is set to an empty array.
|
||||
|
||||
5.2.9 Review the use of capabilites in applications runnning on your cluster. Where a namespace
|
||||
5.2.9 Review the use of capabilites in applications running on your cluster. Where a namespace
|
||||
contains applicaions which do not require any Linux capabities to operate consider adding
|
||||
a PSP which forbids the admission of containers which do not drop all capabilities.
|
||||
|
||||
@@ -416,4 +416,4 @@ resources and that all new resources are created in a specific namespace.
|
||||
72 checks PASS
|
||||
11 checks FAIL
|
||||
39 checks WARN
|
||||
0 checks INFO
|
||||
0 checks INFO
|
||||
|
||||
Reference in New Issue
Block a user