TMAegis
Thêm quy tắc cho yugabytedb

YugabyteDB

TMA-YUGABYTEDB-3.3

Ensure that auditing is enabled for YCQL

Trung bìnhCấp 2Tự độngyugabytedb

Mô tả

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.

Cách kiểm tra

Phương pháp kiểm tra: Lệnh shell

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
Đầu ra mong đợi
compliant

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

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

Thuộc tính

Hệ điều hành
Bất kỳ
Thẻ
yugabytedbloggingaudit
Tham chiếu
CIS YugabyteDB Benchmark v2.0.0 - 3.3 Ensure that auditing is enabled for YCQL

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.

shell
tmaegis scan --target yugabytedb --level 2