Commit Graph

26 Commits

Author SHA1 Message Date
Derek Nola 07c8b80395
Fix K3s 2.X checks and other minor cleanup (#228)
* Fix K3s 4.X checks to automated

Signed-off-by: Derek Nola <derek.nola@suse.com>

* Fix audits and remediations for K3s 2.X checks

- Simplify the check_for_k3s_etch.sh script
Signed-off-by: Derek Nola <derek.nola@suse.com>

* Remove extra period and the

Signed-off-by: Derek Nola <derek.nola@suse.com>

* Follow standard yaml list indentation

Signed-off-by: Derek Nola <derek.nola@suse.com>

* Fix typo

Signed-off-by: Derek Nola <derek.nola@suse.com>

* Corrected file name in K3s 4.2.3

Signed-off-by: Derek Nola <derek.nola@suse.com>

* Convert automated (hardened) checks to scored.

Signed-off-by: Derek Nola <derek.nola@suse.com>

* Fix typos

Signed-off-by: Derek Nola <derek.nola@suse.com>

* Remove check_for_k3s_etcd.sh

Signed-off-by: Derek Nola <derek.nola@suse.com>

---------

Signed-off-by: Derek Nola <derek.nola@suse.com>
2024-08-09 12:04:28 -04:00
Derek Nola 8a42384782
Remove 1.X.XX check from K3s etcd helper script
Signed-off-by: Derek Nola <derek.nola@suse.com>
2024-07-30 09:58:03 -07:00
Derek Nola 6df32f8098
Correct audits and add remediation/rationale for K3s 1.1.XX checks
Signed-off-by: Derek Nola <derek.nola@suse.com>
2024-07-30 09:53:32 -07:00
Bas van Kampen 5595be124f
Update package/helper_scripts/check_for_k3s_etcd.sh
Co-authored-by: Derek Nola <derek.nola@suse.com>
2024-07-18 08:52:33 +02:00
Bas van Kampen 3369503988
k3s etcd scan fix 2024-07-16 13:36:24 +02:00
Andy Pitcher 1a9d809212 Improve journalctl commands 2023-09-29 17:56:56 -04:00
Rayan Das fe199ce5d5 To protect against the possibility that .items is not an array added []? 2023-03-10 17:20:15 +05:30
Hussein Galal c9323984c3
Revert "move psp hardened tests to psa (#94)" (#97)
This reverts commit 3ee7b008f0.
2022-10-11 23:22:40 +02:00
Hussein Galal 3ee7b008f0
move psp hardened tests to psa (#94) 2022-09-20 00:05:26 +02:00
Rayan Das b48d6dfa40 fix k3s permissive and hardened profile failures 2022-07-12 12:51:51 +05:30
Rayan Das 845113065c Fix for RKE1 1.5 1.6 1.20 and 1.23 permissive profiles 2022-07-12 12:51:51 +05:30
Sameer Kulkarni 1655638e12
Merge pull request #65 from dhruvmewada15/updatebaseimage-sle-bci
[2.6.4] Add SLE BCI base image for security-scan
2022-01-06 19:17:07 +05:30
dhruvmewada15 084677b853 Update SLE BCI base image 2021-12-22 16:18:35 +05:30
rancher-max 881e3ccdc0
Fix etcd checks for k3s clusters 2021-11-17 15:09:39 -07:00
dereknola d7071178a4 Fixed k3s CIS results on non-etcd clusters
Signed-off-by: dereknola <derek.nola@suse.com>
2021-09-08 15:39:26 -07:00
Menna Elmasry fb343678ea
Add k3s-cis permissive and hardened profiles (#42)
* add k3s hardened and permissive profiles
2021-04-27 01:27:39 +02:00
mrajashree 6ee3d1d5f8 Move node 4.1.7 and 4.1.8 tests to script to avoid errors
On running the scan for CIS 1.6, the scan got stuck in Error state with the following error:
```
level=fatal msg=\"error summarizing: \\nfailed to check if command: \\\"CAFILE=$(ps\\\" is valid exit status 2
```
It looks like the command isn't getting parsed. Moving the audit commands to scripts and running the
scripts seems to resolve this issue.
2020-11-17 12:34:29 -08:00
Brian Downs d09b1a8b38 Add rke2 Security Scan Files (#22)
* Add support for rke2 scanning for CIS 1.5

Signed-off-by: Brian Downs <brian.downs@gm
2020-11-10 12:34:37 -07:00
Prachi Damle 8a2926c5f9 Fixes to the audit script 5.1.5 2020-06-29 16:31:45 -07:00
Prachi Damle 1332df6a8f Fix the script for test 5.6.4 2020-05-26 02:34:49 -07:00
Prachi Damle e2d8612042 update the script to check default ServiceAccounts only for namespaces
other than default and kube-system. Also check for rolebindings and
clusterrolebindings using default serviceaccounts.

Also added the check for test 5.6.4 to ensure no resource is found in
default namespace other than the kubernetes service
2020-05-13 00:07:47 -07:00
Murali Paluru 889736741e fix tests for 1.4 and 1.5 2020-03-05 15:17:17 -08:00
Murali Paluru 347fc4638c
changes for profiles 2020-02-19 19:03:55 +05:30
Murali Paluru ec0ff6be96
consider etcd user ownership for certs/keys
Addresses: https://github.com/rancher/rancher/issues/24964
2020-02-07 01:18:56 -08:00
Murali Paluru f21ca340be packaging changes, new tests format, etc 2019-11-21 14:18:13 -08:00
Murali Paluru b091888cb0 review comments, more changes 2019-06-21 13:34:39 -07:00