SV-260931r966150_rule
V-260931
SRG-APP-000158-CTR-000390
CNTR-MK-000770
CAT II
10
To configure IPSec network encryption in Swarm orchestration, create an overlay network with --opt encrypted flag.
Example:
docker network create --opt encrypted --driver overlay my-network
To configure IPSec network encryption in Kubernetes orchestration, modify an existing MKE configuration.
Working as an MKE admin, use the config-toml API from within the directory of your client certificate bundle to export the current MKE settings to a TOML file (mke-config.toml).
1. Define the following environment variables:
export MKE_USERNAME=<mke-username>
export MKE_PASSWORD=<mke-password>
export MKE_HOST=<mke-fqdm-or-ip-address>
2. Obtain and define an AUTHTOKEN environment variable by executing the following:
AUTHTOKEN=$(curl --silent --insecure --data '{"username":"'$MKE_USERNAME'","password":"'$MKE_PASSWORD'"}' https://$MKE_HOST/auth/login | jq --raw-output .auth_token)
3. Download the current MKE configuration file by executing the following:
curl --silent --insecure -X GET "https://$MKE_HOST/api/MKE/config-toml" -H "accept: application/toml" -H "Authorization: Bearer $AUTHTOKEN" > mke-config.toml
4. Modify "secure_overlay" settings to "true".
5. Upload the newly edited MKE configuration file by executing the following:
curl --silent --insecure -X PUT -H "accept: application/toml" -H "Authorization: Bearer $AUTHTOKEN" --upload-file 'mke-config.toml' https://$MKE_HOST/api/MKE/config-toml
Note: Users may need to reacquire AUTHTOKEN, if significant time has passed since it was first attained.
Verify IPSec network encryption.
For Swarm orchestration log in to the MKE web UI and navigate to Swarm >> Networks.
If the "scope" is not local and the "driver" is not overlay, this is a finding.
Kubernetes orchestration:
Note: The path may need to be edited.
cat /etc/mke/config.toml | grep secure_overlay
If the "secure_overlay" settings is not set to "true", this is a finding.
V-260931
False
CNTR-MK-000770
Verify IPSec network encryption.
For Swarm orchestration log in to the MKE web UI and navigate to Swarm >> Networks.
If the "scope" is not local and the "driver" is not overlay, this is a finding.
Kubernetes orchestration:
Note: The path may need to be edited.
cat /etc/mke/config.toml | grep secure_overlay
If the "secure_overlay" settings is not set to "true", this is a finding.
M
5595