turbot/docker_compliance
GitHub
Loading controls...

Control: 3.10 Ensure that TLS CA certificate file permissions are set to 444 or more restrictively

Description

You should verify that the TLS CA certificate file (the file that is passed along with the -- tlscacert parameter) has permissions of 444 or is set more restrictively

The TLS CA certificate file should be protected from any tampering. It is used to authenticate the Docker server based on a given CA certificate. It must therefore have permissions of 444, or more restrictive permissions to ensure that the file cannot be modified by a less privileged user.

Remediation

The following command could be executed:

chmod 444 <path to TLS CA certificate file>

This sets the file permissions on the TLS CA file to 444.

Default Value

By default, the permissions for the TLS CA 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_10

Snapshot and share results via Steampipe Cloud:

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

SQL

This control uses a named query:

exec_permissions_444_tls_ca_certificate

Tags