TMAegisBeta
Más reglas para postgres

PostgreSQL

TMA-POSTGRES-4.10

Ensure all accounts that can log in have passwords

AltaNivel 1Revisión manualpostgres

Descripción

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

Cómo se verifica

Método de auditoría: Revisión manual

Esta recomendación no se puede verificar automáticamente. Un escaneo la lista con estas instrucciones cuando se pasa --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.

Cómo se corrige

Método de corrección: Guía o parche de infraestructura

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.

Propiedades

Sistemas operativos
Cualquiera
Etiquetas
postgresdatabaseauthenticationmanual
Referencia
CIS PostgreSQL 18 Benchmark v1.0.0 - 4.10 Ensure all accounts that can log in have passwords