PostgreSQL Security
Entry points for PostgreSQL authentication, access control, encrypted communication, data protection, and secure operations.
PostgreSQL security combines authentication, authorization, network boundaries, encrypted communication, data protection, and operational process. Pigsty provides configuration entry points for these mechanisms; operators must still harden, verify, and audit the deployment for its environment.
Concepts and Boundaries
| Topic | Content |
|---|---|
| Security and Compliance | Default state, capability boundaries, and hardening path |
| Authentication | HBA, SCRAM, certificate authentication, and credential management |
| Access Control | Built-in roles, default privileges, database ACLs, and instance-access boundaries |
| Encrypted Communication | CA, TLS, server authentication, and certificate rotation |
| Data Security | Page checksums, replication, backup, PITR, audit, and logging |
| Compliance | Launch checks, control mappings, and evidence requirements |
Configuration Reference
- HBA Configuration: declare PostgreSQL and PgBouncer authentication rules.
- Access Control Configuration: configure default roles, application users, object privileges, and database ACLs.
- User Configuration: define user attributes, role membership, and connection-pool options.
- CRIT Parameter Template: critical parameters for synchronous replication, checksums, logging, and watchdog.
Administration and Verification
- User Management: create, update, and remove users.
- HBA Management: refresh rules, inspect effective configuration, and troubleshoot authentication.
- Security Considerations: production hardening and acceptance checklist.
- Security Recommendations: minimum password, network, and file checks before installation.
The inventory describes desired state. Acceptance checks should also inspect HBA, certificates, listen ports, and sensitive files on running nodes, and verify effective roles and privileges through PostgreSQL catalogs.
Feedback
Was this page helpful?
Thanks for the feedback! Please let us know how we can improve.
Sorry to hear that. Please let us know how we can improve.