TMAegis베타
docker 관련 규칙 더 보기

Docker

TMA-DOCKER-7.5

Ensure that swarm manager is run in auto-lock mode

보통레벨 1자동docker

설명

Auto-lock protects the swarm raft keys at rest so a stolen manager disk cannot be used without the unlock key. On an active swarm manager the cluster spec must have AutoLockManagers true; compliant on non-swarm hosts and workers.

점검 방법

감사 방식: 셸 명령

shell
st=$(docker info --format '{{.Swarm.LocalNodeState}}') || exit 1; [ "$st" = active ] || { echo compliant; exit 0; }; m=$(docker info --format '{{.Swarm.ControlAvailable}}') || exit 1; [ "$m" = true ] || { echo compliant; exit 0; }; v=$(docker info --format '{{.Swarm.Cluster.Spec.EncryptionConfig.AutoLockManagers}}') || exit 1; [ "$v" = true ] && echo compliant || echo "autolock $v"
예상 출력
compliant

조치 방법

조치 방식: 가이드 또는 인프라 패치

docker swarm update --autolock=true on a manager and store the unlock key securely.

속성

운영 체제
모두
태그
dockerswarm
참고 자료
CIS Docker Benchmark v1.9.0 - 7.5 Ensure that swarm manager is run in auto-lock mode

이 호스트 점검하기

감사 권한이 있는 시스템에서 실행하세요. 스캔은 읽기 전용입니다.

shell
tmaegis scan --target docker