TMA-COCKROACHDB-1.4
Do Not Use the --insecure Flag in Production Environments Under Any Circumstances
설명
CockroachDB supports an --insecure startup option that disables all node-to-node and client-to-node encryption, authentication, and certificate validation. When started in this mode, the cluster operates entirely without Transport Layer Security (TLS), allowing unauthenticated and unencrypted connections. This option exists only for initial testing or ephemeral local development. The benchmark rates this recommendation Manual; the automated check covers its objective pass criterion. Passes when no running cockroach start process uses --insecure (FAIL when no node process is running). Also grep the node log for "RUNNING IN INSECURE MODE".
점검 방법
감사 방식: 셸 명령
out=$(ps -eo args= | grep '[c]ockroach start') || exit 1; printf '%s\n' "$out" | grep -c -- '--insecure' || true- 예상 출력
0
조치 방법
조치 방식: 가이드 또는 인프라 패치
Stop the insecure nodes, create a CA and node/client certificates (cockroach cert create-ca / create-node / create-client), replace --insecure with --certs-dir=<certs> in the systemd unit and restart the nodes.
속성
- 운영 체제
- 모두
- 태그
- cockroachdbtlsauthentication
- 참고 자료
- CIS CockroachDB v25.x Benchmark v1.0.0 - 1.4 Do Not Use the --insecure Flag in Production Environments Under Any Circumstances
이 호스트 점검하기
감사 권한이 있는 시스템에서 실행하세요. 스캔은 읽기 전용입니다.
tmaegis scan --target cockroachdb