Docker
TMA-DOCKER-2.14
Ensure centralized and remote logging is configured
MédiaNível 2Automatizadadocker
Descrição
Centralized logging keeps container logs off the host where they can be tampered with. The audit reads the default logging driver from docker info and fails for the local-only drivers json-file, local and none.
Como é verificado
Método de auditoria: Comando shell
shell
d=$(docker info --format '{{.LoggingDriver}}') || exit 1; case "$d" in json-file|local|none|'') echo "local:$d";; *) echo compliant;; esac- Saída esperada
compliant
Como é corrigido
Método de correção: Orientação ou patch de infraestrutura
Set "log-driver" (e.g. syslog, journald forwarded to a collector, fluentd, gelf, splunk) and its "log-opts" in /etc/docker/daemon.json, then restart the Docker daemon.
Propriedades
- Sistemas operacionais
- Qualquer
- Tags
- dockerdaemonlogging
- Referência
- CIS Docker Benchmark v1.9.0 - 2.14 Ensure centralized and remote logging is configured
Verificar este host
Execute isto em uma máquina que você tenha permissão para auditar. A varredura é somente leitura.
shell
tmaegis scan --target docker --level 2