TMAegis
postgres 관련 규칙 더 보기

PostgreSQL

TMA-POSTGRES-7.1

Ensure a replication-only user is created and used for streaming replication

보통레벨 1수동 검토postgres

설명

Create a new user specifically for use by streaming replication instead of using the superuser account.

점검 방법

감사 방식: 수동 검토

이 권장 사항은 자동으로 점검할 수 없습니다. --include-manual 옵션을 전달하면 스캔 결과에 이 지침과 함께 표시됩니다.

Run SELECT rolname FROM pg_roles WHERE rolreplication IS TRUE; Streaming replication must use a dedicated, non-superuser role with only the REPLICATION attribute; replication via postgres or another superuser is a fail.

조치 방법

조치 방식: 가이드 또는 인프라 패치

CREATE ROLE replication_user WITH LOGIN REPLICATION PASSWORD '<pw>'; and add a 'hostssl replication replication_user <standby_ip>/32 scram-sha-256' line to pg_hba.conf, then reload.

속성

운영 체제
모두
태그
postgresdatabasereplicationmanual
참고 자료
CIS PostgreSQL 18 Benchmark v1.0.0 - 7.1 Ensure a replication-only user is created and used for streaming replication