TMAegis베타
tdsql 관련 규칙 더 보기

TDSQL

TMA-TDSQL-12.3

Ensure OSS Sensitive Information Masking Is Enabled

보통레벨 1자동tdsql

설명

TDSQL OSS provides sensitive information masking that automatically hides sensitive fields such as passwords and keys in API responses and logs. Uses TDSQL_HOME (install directory with bin/, conf/, boot/, log/; default /data/tdsql); reads <TDSQL_HOME>/conf/oss.json and passes when property_mask contains pwd, password, secretid, secretkey, token, secret_id, secret_key and keyring_kms_config. Also confirm the certificate fields and that interface_mask and znode_prefix_mask are present.

점검 방법

감사 방식: 셸 명령

shell
f="${TDSQL_HOME:-/data/tdsql}/conf/oss.json"; [ -r "$f" ] || exit 1; v=$(grep -A3 '"property_mask"' "$f" | tr -d '\n'); [ -n "$v" ] || { echo missing; exit 0; }; for k in pwd password secretid secretkey token secret_id secret_key keyring_kms_config; do printf '%s' "$v" | grep -q "$k" || { echo "missing $k"; exit 0; }; done; echo compliant
예상 출력
compliant

조치 방법

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

Extend the property_mask value in oss.json, e.g. { "name": "property_mask", "value": "pwd,password,secretid,secretkey,token,secret_id,secret_key,<certificate fields>,keyring_kms_config" }, and restart OSS.

속성

운영 체제
모두
태그
tdsqlossdata-protection
참고 자료
CIS Tencent TDSQL 10.3.22 Benchmark v1.0.0 - 12.3 Ensure OSS Sensitive Information Masking Is Enabled

이 호스트 점검하기

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

shell
tmaegis scan --target tdsql