1. Home
  2. Security Hardening
  3. CIS Docker 1.13.0 V1.0.0 L1 Docker
  4. Control the number of manager nodes in a swarm

Control the number of manager nodes in a swarm

Details

Ensure that the minimum number of required manager nodes is created in a swarm.

Rationale:

Manager nodes within a swarm have control over the swarm and change its configuration modifying security parameters. Having excessive manager nodes could render the swarm more susceptible to compromise.

If fault tolerance is not required in the manager nodes, a single node should be elected as amanger. If fault tolerance is required then the smallest practical odd number to achieve the appropriate level of tolerance should be configured.

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

Solution

If an excessive number of managers is configured, the excess can be demoted as worker using the following command:

docker node demote

Where is the node ID value of the manager to be demoted.

Impact:

None

Default Value:

A single manager is all that is required to start a given cluster.

Supportive Information

The following resource is also helpful.

This security hardening control applies to the following category of controls within NIST 800-53: Configuration Management.This control applies to the following type of system Unix.

References

Source

Updated on July 16, 2022
Was this article helpful?

Related Articles