TMA-YUGABYTEDB-5.1
Ensure that authentication is enabled for YCQL interface of the YugabyteDB
Nghiêm trọngCấp 2Tự độngyugabytedb
Mô tả
YCQL authentication is based on roles. Roles can be created with superuser, non- superuser, and login privileges. New roles can be created, and existing ones altered or dropped by administrators using YCQL commands. 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 use_cassandra_authentication=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 -- '--use_cassandra_authentication=(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 --use_cassandra_authentication=true to every YB-TServer and restart it; then change the default cassandra password (5.2).
Thuộc tính
- Hệ điều hành
- Bất kỳ
- Thẻ
- yugabytedbauthentication
- Tham chiếu
- CIS YugabyteDB Benchmark v2.0.0 - 5.1 Ensure that authentication is enabled for YCQL interface of the YugabyteDB
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