DKER-EE-005060 - Docker Swarm must have the minimum number of manager nodes.

Information

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

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 a manger. If fault tolerance is required then the smallest practical odd number to achieve the appropriate level of tolerance should be configured.

Solution

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

docker node demote <ID>
Where is the node ID value of the manager to be demoted.

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_Docker_Enterprise_2-x_Linux-Unix_V2R2_STIG.zip

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-6b., CAT|II, CCI|CCI-000366, Rule-ID|SV-235848r961863_rule, STIG-ID|DKER-EE-005060, STIG-Legacy|SV-104869, STIG-Legacy|V-95731, Vuln-ID|V-235848

Plugin: Unix

Control ID: 4475fae4eda2d4b1f44913c2dabcae2462b57f613f5ce1f060802d1d15327e04