PostgreSQL
TMA-POSTGRES-8.1
Ensure PostgreSQL subdirectory locations are outside the data cluster
低レベル 1手動レビューpostgres
説明
The PostgreSQL cluster is organized to carry out specific tasks in subdirectories. For the purposes of performance, reliability, and security some of these subdirectories should be relocated outside the data cluster.
チェック方法
監査方法: 手動レビュー
この推奨事項は自動ではチェックできません。--include-manual を指定すると、スキャン結果にこの手順付きで一覧表示されます。
Run SELECT name, setting FROM pg_settings WHERE name ~ '_directory$' OR name ~ '_tablespace'; and inspect the returned paths: log/stats/temp/tablespace locations should be outside the data cluster and only superusers and authorized users may access them.
修正方法
修正方法: ガイダンスまたは IaC パッチ
Relocate log_directory, tablespaces and other subdirectories outside PGDATA, owned by postgres with mode 0700, and update postgresql.conf accordingly.
プロパティ
- オペレーティングシステム
- すべて
- タグ
- postgresdatabasefilesystemmanual
- 参照
- CIS PostgreSQL 18 Benchmark v1.0.0 - 8.1 Ensure PostgreSQL subdirectory locations are outside the data cluster