TMAegis
yugabytedb 관련 규칙 더 보기

YugabyteDB

TMA-YUGABYTEDB-3.3

Ensure that auditing is enabled for YCQL

보통레벨 2자동yugabytedb

설명

Audit logging can be used to record information about YCQL statements or events (such as login events) and log the records on a per-node basis into the YB-Tserver logs. Audit logging can be enabled on YugabyteDB cluster by setting the ycql_enable_audit_log TServer flag to true. By default, each TServer records all login events and YCQL commands issued to the server. The benchmark rates this recommendation Manual; the automated check covers its objective pass criterion. Reads the YB-TServer GFlags from the web UI at ${YB_TSERVER_WEB:-127.0.0.1:9000}/varz; run it against every TServer. Passes when ycql_enable_audit_log=true.

점검 방법

감사 방식: 셸 명령

shell
out=$(curl -sf "http://${YB_TSERVER_WEB:-127.0.0.1:9000}/varz?raw=1" 2>/dev/null) || exit 1; if printf '%s\n' "$out" | grep -qE -- '--ycql_enable_audit_log=(true)([^[:alnum:]_]|$)'; then echo compliant; else echo noncompliant; fi
예상 출력
compliant

조치 방법

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

Add --ycql_enable_audit_log=true to every YB-TServer and restart it.

속성

운영 체제
모두
태그
yugabytedbloggingaudit
참고 자료
CIS YugabyteDB Benchmark v2.0.0 - 3.3 Ensure that auditing is enabled for YCQL

이 호스트 점검하기

감사 권한이 있는 시스템에서 실행하세요. 스캔은 읽기 전용입니다.

shell
tmaegis scan --target yugabytedb --level 2