TMAegis베타
mariadb 관련 규칙 더 보기

MariaDB

TMA-MARIADB-9.2

Ensure 'MASTER_SSL_VERIFY_SERVER_CERT' is enabled

높음레벨 1자동mariadb

설명

On the MariaDB REPLICA, the setting MASTER_SSL_VERIFY_SERVER_CERT indicates whether the REPLICA should perform server certificate verification of the PRIMARY's certificate. Checks every replication connection in SHOW ALL REPLICAS STATUS; passes on servers that are not replicas. Runs mariadb -NBe with the client defaults: as root on the server the unix_socket plugin usually authenticates; otherwise put an administrative account in ~/.my.cnf (mode 0600), not MYSQL_PWD (see 1.4/1.6).

점검 방법

감사 방식: SQL 쿼리

sql_query
out=$(mariadb -Ee "SHOW ALL REPLICAS STATUS" 2>/dev/null) || exit 1; printf '%s\n' "$out" | awk -F': ' '/Master_SSL_Verify_Server_Cert:/{if($2!="Yes")b++} END{print b?"noncompliant":"compliant"}'
예상 출력
compliant

조치 방법

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

STOP REPLICA; CHANGE MASTER TO MASTER_SSL_VERIFY_SERVER_CERT = 1; START REPLICA; (per connection name for multi-source replication).

속성

운영 체제
모두
태그
mariadbdatabasereplicationtls
참고 자료
CIS MariaDB 10.11 Benchmark v1.0.0 - 9.2 Ensure 'MASTER_SSL_VERIFY_SERVER_CERT' is enabled

이 호스트 점검하기

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

shell
tmaegis scan --target mariadb