TMAegisBeta
更多 tdsql 规则

TDSQL

TMA-TDSQL-5.8

Ensure Authentication Is Enabled on the OSS Management Platform

严重级别 1自动化tdsql

说明

The TDSQL OSS management platform provides API authentication, supporting username/password- and token-based authentication as well as IP allowlisting. Uses TDSQL_HOME (install directory with bin/, conf/, boot/, log/; default /data/tdsql); reads <TDSQL_HOME>/conf/scheduler.xml and passes when <oss_auth> has enable="1". Also confirm pwd_strength="2" and expire_hours of 24 or less.

检查方式

审计方法: Shell 命令

shell
f="${TDSQL_HOME:-/data/tdsql}/conf/scheduler.xml"; [ -r "$f" ] || exit 1; if grep -Eo '<oss_auth[^>]*' "$f" | grep -Eq '[[:space:]]enable="1"'; then echo compliant; else echo noncompliant; fi
预期输出
compliant

修复方式

修复方法: 操作指南或基础设施补丁

Set <oss_auth enable="1" ... pwd_strength="2" expire_hours="24" enable_token_renewal="1" /> in scheduler.xml and restart OSS.

属性

操作系统
任意
标签
tdsqlauthenticationoss
参考
CIS Tencent TDSQL 10.3.22 Benchmark v1.0.0 - 5.8 Ensure Authentication Is Enabled on the OSS Management Platform

检查本机

请在您有权审计的机器上运行此命令。扫描为只读操作。

shell
tmaegis scan --target tdsql