7.7 Ensure that node certificates are rotated as appropriate

Information

You should rotate swarm node certificates in line with your organizational security policy.

Docker Swarm uses TLS for clustering operations between its nodes. Certificate rotation ensures that in an event such as a compromised node or key, it is difficult to impersonate a node. By default, node certificates are rotated every 90 days, but you should rotate them more often or as appropriate in your environment.

NOTE: Nessus has provided the target output to assist in reviewing the benchmark to ensure target compliance.

Solution

You should run the command to set the desired expiry time on the node certificate.

For example:

docker swarm update --cert-expiry 48h

Impact:

None

See Also

https://workbench.cisecurity.org/benchmarks/16041

Item Details

Category: IDENTIFICATION AND AUTHENTICATION

References: 800-53|IA-5(1), CSCv7|4.4

Plugin: Unix

Control ID: 55c0e63ada5167a5bd6d15bdedb9dad19c91c256eb5454dec8fbde12c9d7a250