TMAegisベータ
docker のその他のルール

Docker

TMA-DOCKER-7.2

Ensure that swarm services are bound to a specific host interface

中レベル 1手動レビューdocker

説明

By default, Docker swarm services will listen on all interfaces on the host. This may not be necessary for the operation of the swarm where the host has multiple network interfaces. When a swarm is initialized the default value for the --listen-addr flag is 0.0.0.0:2377 which means that swarm services will listen on all interfaces on the host. Reported as a manual review item: the audit needs a site-specific judgement.

チェック方法

監査方法: 手動レビュー

この推奨事項は自動ではチェックできません。--include-manual を指定すると、スキャン結果にこの手順付きで一覧表示されます。

You should check the network listener on port 2377 (the default for docker swarm) and 7946 (container network discovery), and confirm that it is only listening on specific interfaces. For example, in this could be done using the following command: ss -lp | grep -iE ':2377|:7946'

修正方法

修正方法: ガイダンスまたは IaC パッチ

Resolving this issues requires re-initialization of the swarm, specifying a specific interface for the --listen-addr parameter.

プロパティ

オペレーティングシステム
すべて
タグ
dockermanual
参照
CIS Docker Benchmark v1.9.0 - 7.2 Ensure that swarm services are bound to a specific host interface