TMAegisBeta
Mais regras para postgres

PostgreSQL

TMA-POSTGRES-4.10

Ensure all accounts that can log in have passwords

AltaNível 1Revisão manualpostgres

Descrição

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

Como é verificado

Método de auditoria: Revisão manual

Esta recomendação não pode ser verificada automaticamente. Uma varredura a lista com estas instruções quando você passa --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.

Como é corrigido

Método de correção: Orientação ou patch de infraestrutura

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.

Propriedades

Sistemas operacionais
Qualquer
Tags
postgresdatabaseauthenticationmanual
Referência
CIS PostgreSQL 18 Benchmark v1.0.0 - 4.10 Ensure all accounts that can log in have passwords