TMAegisBeta
更多 postgres 規則

PostgreSQL

TMA-POSTGRES-4.9

Make use of predefined roles

中等級 1人工審核postgres

說明

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.

檢查方式

稽核方法: 人工審核

此項建議無法自動檢查。當您傳入 --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.

修補方式

修補方法: 操作指南或基礎設施修補檔

GRANT the suitable predefined role(s) to the account, then ALTER ROLE <role> NOSUPERUSER;

屬性

作業系統
不限
標籤
postgresdatabaseauthorizationsuperusermanual
參考資料
CIS PostgreSQL 18 Benchmark v1.0.0 - 4.9 Make use of predefined roles