TMAegis
Другие правила для postgres

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