TMAegisベータ
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.

修正方法

修正方法: ガイダンスまたは IaC パッチ

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