mirror of
https://github.com/rancher/rancher-docs.git
synced 2026-05-24 13:48:21 +00:00
Simplify example for skipping CIS scan tests
This commit is contained in:
@@ -187,17 +187,13 @@ To skip tests by editing a ConfigMap resource,
|
||||
|
||||
1. Create a `security-scan` namespace.
|
||||
1. Create a ConfigMap named `security-scan-cfg`.
|
||||
1. Enter the skip information under the key `config.json` in the following format. The CIS benchmark version is specified alongside the tests to be skipped for that version:
|
||||
1. Enter the skip information under the key `config.json` in the following format:
|
||||
|
||||
```json
|
||||
{
|
||||
"config.json": {
|
||||
"skip": {
|
||||
"rke-cis-1.4": [ "1.1.1", "1.2.2"]
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
```
|
||||
{"skip": {"rke-cis-1.4": [ "1.1.1", "1.2.2"]}}
|
||||
```
|
||||
|
||||
In the example above, the CIS benchmark version is specified alongside the tests to be skipped for that version.
|
||||
|
||||
**Result:** These tests will be skipped on subsequent scans that use the defined CIS Benchmark version.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user