SV-242415r712601_rule
V-242415
SRG-APP-000171-CTR-000435
CNTR-K8-001160
CAT I
10
Any secrets stored as environment variables must be moved to the secret files with the proper protections and enforcements or placed within a password vault.
On the Kubernetes Master node, run the following command:
kubectl get all -o jsonpath='{range .items[?(@..secretKeyRef)]} {.kind} {.metadata.name} {"\n"}{end}' -A
If any of the values returned reference environment variables, this is a finding.
V-242415
False
CNTR-K8-001160
On the Kubernetes Master node, run the following command:
kubectl get all -o jsonpath='{range .items[?(@..secretKeyRef)]} {.kind} {.metadata.name} {"\n"}{end}' -A
If any of the values returned reference environment variables, this is a finding.
M
5376