mirror of
https://github.com/aquasecurity/kube-bench.git
synced 2024-12-19 05:08:07 +00:00
False positive when running rh-0.7 benchmarks (#886)
This commit is contained in:
parent
fb92680702
commit
6605ff8844
@ -369,7 +369,7 @@ groups:
|
|||||||
tests:
|
tests:
|
||||||
bin_op: and
|
bin_op: and
|
||||||
test_items:
|
test_items:
|
||||||
- path: "{.kubeletClientInfo. keyFile}"
|
- path: "{.kubeletClientInfo.keyFile}"
|
||||||
compare:
|
compare:
|
||||||
op: eq
|
op: eq
|
||||||
value: "master.kubelet-client.key"
|
value: "master.kubelet-client.key"
|
||||||
@ -408,9 +408,9 @@ groups:
|
|||||||
compare:
|
compare:
|
||||||
op: eq
|
op: eq
|
||||||
value: "serviceaccounts.private.key"
|
value: "serviceaccounts.private.key"
|
||||||
- path: "{.serviceAccountConfig. publicKeyFiles}"
|
- path: "{.serviceAccountConfig.publicKeyFiles}"
|
||||||
compare:
|
compare:
|
||||||
op: eq
|
op: has
|
||||||
value: "serviceaccounts.public.key"
|
value: "serviceaccounts.public.key"
|
||||||
remediation: |
|
remediation: |
|
||||||
OpenShift API server does not use the service-account-key-file argument.
|
OpenShift API server does not use the service-account-key-file argument.
|
||||||
@ -1032,7 +1032,7 @@ groups:
|
|||||||
checks:
|
checks:
|
||||||
- id: 5.1
|
- id: 5.1
|
||||||
text: "Verify the default OpenShift cert-file and key-file configuration"
|
text: "Verify the default OpenShift cert-file and key-file configuration"
|
||||||
audit: "/bin/sh -c '/usr/local/bin/master-exec etcd etcd grep ETCD_CERT_FILE=/etc/etcd/server.crt /proc/1/environ; /usr/local/bin/master-exec etcd etcd grep etcd_key_file=/etc/etcd/server.key /proc/1/environ; grep ETCD_CERT_FILE=/etc/etcd/server.crt /etc/etcd/etcd.conf; grep ETCD_KEY_FILE=/etc/etcd/server.key /etc/etcd/etcd.conf'"
|
audit: "/bin/sh -c '/usr/local/bin/master-exec etcd etcd grep ETCD_CERT_FILE=/etc/etcd/server.crt /proc/1/environ; /usr/local/bin/master-exec etcd etcd grep ETCD_KEY_FILE=/etc/etcd/server.key /proc/1/environ; grep ETCD_CERT_FILE=/etc/etcd/server.crt /etc/etcd/etcd.conf; grep ETCD_KEY_FILE=/etc/etcd/server.key /etc/etcd/etcd.conf'"
|
||||||
tests:
|
tests:
|
||||||
bin_op: and
|
bin_op: and
|
||||||
test_items:
|
test_items:
|
||||||
|
Loading…
Reference in New Issue
Block a user