TMAegis
Plus de règles pour postgres

PostgreSQL

TMA-POSTGRES-4.9

Make use of predefined roles

MoyenneNiveau 1Revue manuellepostgres

Description

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.

Méthode de vérification

Méthode d'audit: Revue manuelle

Cette recommandation ne peut pas être vérifiée automatiquement. Une analyse la liste avec ces instructions lorsque vous passez --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.

Méthode de correction

Méthode de correction: Recommandation ou correctif d'infrastructure

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

Propriétés

Systèmes d'exploitation
Tous
Étiquettes
postgresdatabaseauthorizationsuperusermanual
Référence
CIS PostgreSQL 18 Benchmark v1.0.0 - 4.9 Make use of predefined roles