TMAegisБета
Више правила за postgres

PostgreSQL

TMA-POSTGRES-4.10

Ensure all accounts that can log in have passwords

ВисокаНиво 1Ручни прегледpostgres

Опис

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

Како се проверава

Метод провере: Ручни преглед

Ова препорука се не може проверити аутоматски. Скенирање је наводи са овим упутствима када проследите --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.

Како се исправља

Метод исправке: Смерница или закрпа инфраструктуре

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.

Својства

Оперативни системи
Било који
Ознаке
postgresdatabaseauthenticationmanual
Референца
CIS PostgreSQL 18 Benchmark v1.0.0 - 4.10 Ensure all accounts that can log in have passwords