TMA-COCKROACHDB-1.4
Do Not Use the --insecure Flag in Production Environments Under Any Circumstances
Mô tả
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".
Cách kiểm tra
Phương pháp kiểm tra: Lệnh shell
out=$(ps -eo args= | grep '[c]ockroach start') || exit 1; printf '%s\n' "$out" | grep -c -- '--insecure' || true- Đầu ra mong đợi
0
Cách khắc phục
Phương pháp khắc phục: Hướng dẫn hoặc bản vá hạ tầng
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.
Thuộc tính
- Hệ điều hành
- Bất kỳ
- Thẻ
- cockroachdbtlsauthentication
- Tham chiếu
- CIS CockroachDB v25.x Benchmark v1.0.0 - 1.4 Do Not Use the --insecure Flag in Production Environments Under Any Circumstances
Kiểm tra máy này
Chạy lệnh này trên máy bạn được phép kiểm tra. Lần quét chỉ ở chế độ đọc.
tmaegis scan --target cockroachdb