SV-260911r1015770_rule
V-260911
SRG-APP-000033-CTR-000100
CNTR-MK-000130
CAT II
10
To create secrets when using Swarm Orchestration, log in to the MKE UI. Navigate to Swarm >> Secrets, and then click "Create".
Provide a name for the secret and enter the data into the "Content" field.
Add a label to allow for RBAC features to be used for access to secret.
Click "Save".
To create secrets when using Kubernetes orchestration, run the following command on the MKE Controller node:
Configure the $AUTH variable to contain the token for the SCIM API endpoint.
curl -X PUT -H 'Accept: application/json' -H "Authorization: Bearer $AUTH" -d '{"KMSEnabled":true,"KMSName"":"<kms_name>","KMSEndpoint":"/var/kms"}' "https://$MKE_ADDRESS/api/MKE/config/kubernetes"
Review the System Security Plan (SSP) and identify applications that leverage configuration files and/or small amounts of user-generated data, and ensure the data is stored in Docker Secrets or Kubernetes Secrets.
When using Swarm orchestration, log in to the MKE web UI and navigate to Swarm >> Secrets and view the configured secrets.
If items identified for secure storage are not included in the secrets, this is a finding.
When using Kubernetes orchestration, log on to the MKE Controller node then run the following command:
kubectl get all -o jsonpath='{range .items[?(@..secretKeyRef)]} {.kind} {.metadata.name} {"\n"}{end}' -A
Or, using API, configure the $AUTH variable to contain the token for the SCIM API endpoint:
curl -k 'Accept: application/json' -H "Authorization: Bearer $AUTH" -s "https://$MKE_ADDRESS/api/MKE/config/kubernetes" | jq '.KMSEnabled' true
If any of the values returned reference environment variables, this is a finding.
V-260911
False
CNTR-MK-000130
Review the System Security Plan (SSP) and identify applications that leverage configuration files and/or small amounts of user-generated data, and ensure the data is stored in Docker Secrets or Kubernetes Secrets.
When using Swarm orchestration, log in to the MKE web UI and navigate to Swarm >> Secrets and view the configured secrets.
If items identified for secure storage are not included in the secrets, this is a finding.
When using Kubernetes orchestration, log on to the MKE Controller node then run the following command:
kubectl get all -o jsonpath='{range .items[?(@..secretKeyRef)]} {.kind} {.metadata.name} {"\n"}{end}' -A
Or, using API, configure the $AUTH variable to contain the token for the SCIM API endpoint:
curl -k 'Accept: application/json' -H "Authorization: Bearer $AUTH" -s "https://$MKE_ADDRESS/api/MKE/config/kubernetes" | jq '.KMSEnabled' true
If any of the values returned reference environment variables, this is a finding.
M
5595