TMAegis
Plus de règles pour postgres

TMA-POSTGRES-4.10

Ensure all accounts that can log in have passwords

ÉlevéeNiveau 1Revue manuellepostgres

Description

If not using certificate-based authentication, all database accounts that have the ability to login should have a password set.

Méthode de vérification

Méthode d'audit: Revue manuelle

Cette recommandation ne peut pas être vérifiée automatiquement. Une analyse la liste avec ces instructions lorsque vous passez --include-manual.

Run SELECT rolname FROM pg_authid WHERE rolpassword IS NULL AND rolcanlogin; Any returned account that is not known to authenticate with certificates (or peer/GSS) is a potential fail.

Méthode de correction

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

Set a password for each listed account with \password <user> in psql (ALTER ROLE ... PASSWORD writes the password to logs), or switch it to certificate authentication.

Propriétés

Systèmes d'exploitation
Tous
Étiquettes
postgresdatabaseauthenticationmanual
Référence
CIS PostgreSQL 18 Benchmark v1.0.0 - 4.10 Ensure all accounts that can log in have passwords