CockroachDB
TMA-COCKROACHDB-6.2
Ensure local connections via UNIX domain sockets are configured correctly
설명
UNIX domain sockets provide secure local inter-process communication for database connections on the same host. When combined with certificate-based authentication (see section 6.0), UNIX domain sockets offer the most secure mechanism for local database access.
점검 방법
감사 방식: 수동 검토
Check the --socket-dir used by cockroach start (default $TMPDIR); the socket (.s.PGSQL.26257) directory should be owned by cockroach and not world-writable (e.g. /var/run/cockroach, 755). Confirm cockroach sql --certs-dir=certs --host=<socket dir> --user=root works only with valid client certificates and that unauthenticated local logins fail.
조치 방법
조치 방식: 가이드 또는 인프라 패치
Prerequisites: Complete certificate infrastructure setup as described in section 6.0. 1. Configure UNIX Domain Socket Location # Start CockroachDB with custom socket directory cockroach start \ --certs-dir=certs \ --store=node1 \ --listen-addr=localhost:26257 \ --socket-dir=/var/run/cockroach \ --http-addr=localhost:8080 # Ensure socket directory has appropriate permissions mkdir -p /var/run/cockroach chown cockroach:cockroach /var/run/cockroach ...
속성
- 운영 체제
- 모두
- 태그
- cockroachdbauthentication
- 참고 자료
- CIS CockroachDB v25.x Benchmark v1.0.0 - 6.2 Ensure local connections via UNIX domain sockets are configured correctly