turbot/docker_compliance
GitHub
Loading controls...

Control: 3.12 Ensure that the Docker server certificate file permissions are set to 444 or more restrictively

Description

You should verify that the Docker server certificate file (the file that is passed along with the --tlscert parameter) has permissions of 444 or more restrictive permissions.

The Docker server certificate file should be protected from any tampering. It is used to authenticate the Docker server based on the given server certificate. It should therefore have permissions of 444 to prevent its modification.

Remediation

The following command could be executed:

chmod 444 <path to Docker server certificate file>

This sets the file permissions of the Docker server certificate file to 444.

Default Value

By default, the permissions for the Docker server certificate file might not be 444. The default file permissions are governed by the operating system or user specific umask values.

Usage

Run the control in your terminal:

steampipe check docker_compliance.control.cis_v160_3_12

Snapshot and share results via Steampipe Cloud:

steampipe login
steampipe check --share docker_compliance.control.cis_v160_3_12

SQL

This control uses a named query:

exec_permissions_444_docker_server_certificate

Tags