When does the Security Bench check for TLS authentication on the Docker daemon (2.7) actually matter?
Only when you expose the daemon over the network (HTTPS) so a remote client can reach it — then TLS mutual authentication protects that remote access. A purely local socket-only daemon doesn't need it.
By default the Docker daemon listens only on the local Unix socket (/var/run/docker.sock), reachable only from the same host. In that setup there is no network endpoint to attack, so the TLS check (2.7) is not relevant.
It becomes essential the moment you let a remote Docker client talk to the daemon over TCP/HTTPS. An unprotected remote daemon is catastrophic — remember, daemon access = host root — so if you expose it you must:
- Enable TLS so the connection is encrypted, and
- Use mutual (client-certificate) authentication so only authorised clients can connect (related check 2.12, authorization of client commands).
Related daemon checks the lab notes:
- 2.9 (enable user namespace support) — covered by
userns-remap. - 2.13 (centralized and remote logging) — ship logs off-box rather than only to a local JSON file (
docker info --format '{{.LoggingDriver}}'shows the current driver).
The general principle: only turn on remote daemon access if you truly need it, and never without TLS + client auth.
Go deeper:
Docker Docs: Protect the Docker daemon socket — setting up TLS and client-certificate auth for remote access.