TMAegis
Plus de règles pour tdsql

TMA-TDSQL-5.8

Ensure Authentication Is Enabled on the OSS Management Platform

CritiqueNiveau 1Automatiséetdsql

Description

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.

Méthode de vérification

Méthode d'audit: Commande 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
Sortie attendue
compliant

Méthode de correction

Méthode de correction: Recommandation ou correctif d'infrastructure

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

Propriétés

Systèmes d'exploitation
Tous
Étiquettes
tdsqlauthenticationoss
Référence
CIS Tencent TDSQL 10.3.22 Benchmark v1.0.0 - 5.8 Ensure Authentication Is Enabled on the OSS Management Platform

Vérifier cet hôte

Exécutez cette commande sur une machine que vous êtes autorisé à auditer. L'analyse est en lecture seule.

shell
tmaegis scan --target tdsql