TMA-POSTGRES-4.10
Ensure all accounts that can log in have passwords
CaoCấp 1Xem xét thủ côngpostgres
Mô tả
If not using certificate-based authentication, all database accounts that have the ability to login should have a password set.
Cách kiểm tra
Phương pháp kiểm tra: Xem xét thủ công
Khuyến nghị này không thể kiểm tra tự động. Lần quét sẽ liệt kê mục này kèm hướng dẫn khi bạn truyền cờ --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ách khắc phục
Phương pháp khắc phục: Hướng dẫn hoặc bản vá hạ tầng
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.
Thuộc tính
- Hệ điều hành
- Bất kỳ
- Thẻ
- postgresdatabaseauthenticationmanual
- Tham chiếu
- CIS PostgreSQL 18 Benchmark v1.0.0 - 4.10 Ensure all accounts that can log in have passwords