TMAegis베타
cockroachdb 관련 규칙 더 보기

CockroachDB

TMA-COCKROACHDB-1.2

Ensure CockroachDB systemd Service Files Are Enabled

낮음레벨 1수동 검토cockroachdb

설명

Confirm, and correct if necessary, that the CockroachDB systemd service is enabled on Linux-based systems. This ensures CockroachDB starts automatically at system boot, recovers gracefully from crashes, and is consistently managed under a dedicated non-root service account.

점검 방법

감사 방식: 수동 검토

이 권장 사항은 자동으로 점검할 수 없습니다. --include-manual 옵션을 전달하면 스캔 결과에 이 지침과 함께 표시됩니다.

Run systemctl list-unit-files | grep cockroach, then systemctl is-enabled cockroach.service and systemctl status cockroach.service, and ps -u cockroach -f | grep cockroach. A CockroachDB unit must exist, be enabled at boot, be active, and run as the dedicated cockroach user.

조치 방법

조치 방식: 가이드 또는 인프라 패치

For each initial node of your cluster, complete the following steps: 1. Create the Cockroach directory: mkdir /var/lib/cockroach 2. Create a Unix user named cockroach: useradd cockroach 3. Move the certs directory to the cockroach directory: mv certs /var/lib/cockroach/ 4. Change the ownership of the cockroach directory to the user cockroach: chown -R cockroach /var/lib/cockroach 5.

속성

운영 체제
모두
태그
cockroachdbservice
참고 자료
CIS CockroachDB v25.x Benchmark v1.0.0 - 1.2 Ensure CockroachDB systemd Service Files Are Enabled