TMA-POSTGRES-4.9
Make use of predefined roles
Mô tả
PostgreSQL provides a set of predefined roles that provide access to certain commonly needed privileged capabilities and information. Administrators can GRANT these roles to users and/or other roles in their environment, providing those users with access to the specified capabilities and information.
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_roles WHERE rolsuper IS TRUE; and, for each superuser other than the bootstrap account, decide whether predefined roles (pg_read_all_data, pg_write_all_data, pg_monitor, pg_signal_backend, pg_checkpoint, pg_maintain, ...) would suffice. Unneeded superusers are a 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
GRANT the suitable predefined role(s) to the account, then ALTER ROLE <role> NOSUPERUSER;
Thuộc tính
- Hệ điều hành
- Bất kỳ
- Thẻ
- postgresdatabaseauthorizationsuperusermanual
- Tham chiếu
- CIS PostgreSQL 18 Benchmark v1.0.0 - 4.9 Make use of predefined roles