PostgreSQL for CMMC and NIST SP 800-171

A self-hosted PostgreSQL deployment that stores CUI needs specific access, encryption, logging and evidence controls. This page maps those requirements to what PostgreSQL and its surrounding stack provide, and what remains yours.

On this page

Can PostgreSQL support CMMC Level 2 for CUI databases?

A PostgreSQL database that stores CUI has to meet the 110 requirements of NIST SP 800-171 Rev. 2, which CMMC Level 2 incorporates, and PostgreSQL alone does not make it compliant. PostgreSQL provides configurable mechanisms for authentication, TLS, logging and backup, but the assessed system is the whole environment: the operating system, the identity provider, the administrator workstations, the backup repository and the processes that run them. DeployOpen plans, configures and documents those pieces and prepares the evidence an assessor will ask for. DeployOpen does not issue assessments or certifications. Level 2 certification assessments are performed by C3PAOs authorized or accredited by the CMMC Accreditation Body, and the CMMC Program rule sets out how that process works in 32 CFR Part 170.

The current status is less settled than the rule text suggests. On 13 July 2026 the Department of War suspended CMMC Phase II, which had been scheduled to start 10 November 2026 and would have required Level 2 C3PAO certification for applicable contracts. Phase I self-assessments, SPRS postings, annual affirmations and DFARS 252.204-7012 obligations remain in place, and the Department of War said it will enforce Rev. 2 in the interim. NIST withdrew Rev. 2 in May 2024 when it published Rev. 3, and a proposed FAR overhaul would move contractors to Rev. 3 with organization-defined parameter values, but that rule was not final as of October 2026. Confirm with your contracting officer which revision and assessment method apply to your contracts before you scope the database.

Which NIST SP 800-171 Rev. 2 requirement families touch the PostgreSQL database

This table maps the CMMC domains that apply to a PostgreSQL database holding CUI to the database settings, the records to keep and the controls that sit outside PostgreSQL. Read each row as a split of responsibility: the database enforces part of the requirement, while the identity provider, operating system or your own processes carry the rest. The main takeaway is that PostgreSQL alone does not satisfy any domain.

CMMC domainWhat PostgreSQL contributesWhat sits outside the database
Access control (AC), for example AC.L2-3.1.1pg_hba.conf limits hosts, users, databases and methods. Roles and GRANTs limit functions. No shared accounts.Directory group membership, access approval, periodic access reviews and operating system account control.
Identification and authentication (IA)SCRAM passwords, certificate, GSSAPI, LDAP or OAuth methods. MD5 is deprecated as of PostgreSQL 18.Multifactor sign-in for administrators at the identity provider or a bastion host. PostgreSQL does not enforce MFA itself.
Audit and accountability (AU)pgAudit records statement and object activity. Connection logging ties events to individual roles.Log shipping, retention, time synchronization, log review and alerting in your SIEM.
System and communications protection (SC)TLS set in postgresql.conf, hostssl rules in pg_hba.conf and TLS on replication links.FIPS mode in the operating system, a FIPS-validated OpenSSL provider and volume encryption for data at rest.
Configuration management (CM)Version-controlled postgresql.conf and pg_hba.conf with a documented baseline.Change approval records and a review of each change against the approved baseline.
System and information integrity (SI)Minor releases, at least once every three months, replace executables and require a restart. Major upgrades need separate planning.Patch testing, vulnerability tracking and confirmation that the release line is still supported.
Media protection (MP)Encrypted backups and archived WAL files with restricted access and tested restores.Sanitization of retired disks, media custody records and off-site transfer procedures.

How administrator MFA reaches PostgreSQL through the identity provider

PostgreSQL does not run multifactor authentication itself. Its client authentication methods, configured in pg_hba.conf, decide how a login is verified, and the factor enforcement for administrators sits in the identity provider or in a bastion host in front of the database. For CMMC Level 2, the design question is which path an administrator takes to a superuser or role-management session, and whether that path can be shown to require a second factor. The PostgreSQL authentication methods documentation lists the methods the server supports, including password, GSSAPI, SSPI, LDAP, RADIUS, certificate, PAM and OAuth. Each one is a hook into an external system, and each has different limits on what the database can see and enforce.

Certificate authentication binds a session to a client certificate that the team issues and rotates, which fits well with a hardware-backed key store, but the MFA step happens when the certificate is issued, not at each login. LDAP and PAM pass the password check to a directory or operating system stack, so MFA depends on that stack supporting a second factor for the account. GSSAPI and SSPI rely on Kerberos or Windows domain tickets, which means the MFA policy lives in the domain controller or the ticket-granting service. PostgreSQL 18 added an OAuth 2.0 method, which can accept tokens from an identity provider that enforces MFA at sign-in. The trade-off is that token lifetime, revocation and the claims the database checks become part of your control set. On the password side, PostgreSQL 18 deprecated MD5 password authentication in favor of SCRAM, so any role still using MD5 should be migrated before an assessment.

For each method, confirm three things before you commit to it: where the second factor is enforced, how a revoked administrator loses database access, and how the log shows which identity connected. Ask your assessor how they expect MFA to be evidenced for privileged database access, because some will accept an identity provider policy export and session records, while others will want the database-side configuration. Keep one administrator path, and document the pg_hba.conf entries that allow it, so the evidence matches what the server actually accepts.

What evidence assessors ask for from the database

Assessors judge PostgreSQL controls by the records they can sample, not by the settings alone. The cards below cover the configuration, identity, logging, review, recovery and patch records that show each Level 2 requirement is implemented and operating. Each record has to be current, complete and in final form before an assessor will accept it.

Configuration exports and role lists

Keep dated exports of pg_hba.conf, postgresql.conf and the role and privilege inventory, taken from the running server rather than from templates. Assessors compare these files against the access and authentication requirements you claim, so each rule should trace to a documented reason. Check that no entry allows trust for remote connections and that shared or generic roles are absent. Record who generated each export and when. Export from the live server, not the repository copy alone.

Authentication methods docs

TLS and certificate records

Document which TLS versions and cipher settings the server accepts, where certificates were issued, their expiry dates and the process for renewal and revocation. Assessors look for evidence that encrypted transport is enforced for connections that carry CUI, including rules in pg_hba.conf that reject unencrypted connections. Confirm that the cryptographic modules used for these connections are FIPS-validated at the OS level, and keep the validation references with the records. Store the certificate inventory alongside the configuration exports.

pgAudit logs and retention

Show that audit records of database activity are generated, protected and kept for the period your policy sets. Keep a sample of pgAudit output that shows logins, privilege changes, DDL and reads or writes against CUI tables, and confirm the log settings in postgresql.conf that produced it. Store logs off the database host so an administrator cannot alter them unnoticed. Ask your assessor which retention period they expect to see evidenced, and confirm how log review is performed and recorded.

Continuous archiving docs

Access review records

Retain signed or system-recorded reviews of who holds database roles, when each review occurred and what changed as a result. Each review should compare role memberships against current identity provider groups, so that departed staff and expired contractors lose access. Record the reviewer, the scope and every removal. Administrative access should show multifactor authentication enforced through the identity provider. A review that lists no changes still needs a dated record that shows the review happened.

Backup and restore test results

Keep the outputs of restore tests that rebuild a database from a base backup and archived WAL files, including the target time used for point-in-time recovery. Each test record should show the backup set, the restore environment, the result of data validation and the person who approved it. Assessors use these records to judge whether backup controls operate in practice. Confirm the recovery steps and the restore environment with your own team and retain the results with the configuration exports.

Patch records tied to supported releases

Maintain a record of the PostgreSQL version in each environment, the minor release applied, the date applied and the change ticket that approved it. Compare these against the supported release list, because a server running an unsupported major version cannot show current patching. Keep the release notes that describe security fixes for each minor update. Track the date each major version leaves support so that upgrade work is planned and recorded before the deadline passes.

Oldest supported major
14
Versioning policy

Configuration sequence for a CUI PostgreSQL system

This sequence takes a PostgreSQL database that stores CUI from an undefined scope to a configured, tested and documented system whose evidence is ready for an assessor. Each step depends on the one before it, so the order matters more than the speed of any single step.

  1. Define the CUI boundary and data flows

    Before any configuration, the organization lists every place CUI enters, is stored, processed or transmitted in the database estate, including the application servers, replicas, backup targets, admin workstations and support tooling that touch those systems. The owner records this as a system boundary diagram and a data flow inventory. The step is done when the security lead and the assessor-facing owner agree on the boundary in writing, because every later control is scoped to it. Confirm with your assessor how they expect external service providers and cloud components inside or outside the boundary to be documented.

  2. Choose the identity and MFA path

    The team decides how administrators and application accounts authenticate, for example through a central identity provider that enforces multifactor authentication before database or host access is granted. PostgreSQL supports several client authentication methods, so the choice should be recorded in the pg_hba.conf design and the identity provider settings. The step closes when a test administrator can sign in only through the approved path and shared or local-only accounts are removed or documented as exceptions. Confirm with your assessor which identifiers and MFA evidence they will sample.

  3. Configure TLS and OS-level FIPS mode

    The platform team enables TLS for client and replication connections using certificates issued from an approved chain, and disables weak protocols and ciphers. Cryptographic operations should run on modules validated under FIPS 140, which usually means enabling FIPS mode at the operating system level and confirming that OpenSSL and the PostgreSQL build use the validated provider. The step is done when a connection test shows encrypted sessions, and a report from the host confirms FIPS mode is active. Confirm with your assessor and your OS vendor which module certificate numbers they will accept as evidence.

  4. Install and configure pgAudit

    The team installs the pgAudit extension on the database build, loads it through the server configuration, and defines audit classes and object-level rules that cover reads and changes to CUI tables, privilege changes and failed authentication where the logging settings allow it. Log output is routed to a central store with restricted write and read access. The step is complete when test queries against a CUI table produce the expected audit records and those records reach the central store. Confirm with your assessor which audit events they expect to see for each requirement in the audit and accountability family.

  5. Set roles and privileges

    The database owner creates group roles that match the job functions defined in the boundary, grants the minimum privileges each role needs, and separates schema ownership from application data access. Shared and superuser accounts are restricted to break-glass use with logging. The step closes with a exported grant report for every CUI schema, reviewed and signed by a person other than the one who built the roles. Confirm with your assessor how often they expect access reviews to occur and how they want the review records kept.

  6. Enable backups and prove restores

    The operations team configures continuous archiving with a base backup schedule, stores copies in a location with access controls that match the CUI boundary, and documents the point-in-time recovery procedure. A restore test runs into an isolated environment, and the team confirms that restored data matches the source and that any CUI in the restore is handled under the same controls. The step is done when the restore result is written up with the date, the operator and the outcome. Confirm with your assessor which backup records they want for the sample of controls they select.

  7. Collect and freeze evidence

    The compliance lead gathers configuration exports, the boundary diagram, role and grant reports, TLS and FIPS status captures, pgAudit samples, MFA test records and restore reports into a single evidence set. Each item is reviewed for completeness, and the set is frozen with a version date so that later edits are tracked as changes. The step is complete when every requirement in the assessment objectives has a mapped artifact in final form, not a draft. Confirm with your assessor which evidence format and retention period they accept before the evidence set is frozen.

How the admin login, TLS path and audit trail fit together

The flow starts with an administrator signing in to the identity provider with multifactor authentication, then reaching PostgreSQL only through a bastion host. The bastion opens a TLS connection to the database, where pgAudit records statements and sends them to a log store that administrators cannot change. Check that the CUI boundary contains every path to the database, that the bastion is the only entry, and that the log store has its own access controls and retention.

Administrator access, encrypted session and audit records inside the CUI boundary.

Questions buyers ask before hiring help for CMMC PostgreSQL

What drives the cost of a CMMC PostgreSQL engagement?

The biggest drivers are the size of the system boundary (which databases, replicas, backup stores, admin workstations and identity components hold or touch CUI), the number of database and operating system roles that need separate access rules, whether an identity provider already enforces multifactor sign-in, and how mature your evidence is today. A boundary with one primary, one standby and an off-site backup is far smaller to document than a shared estate where many applications connect with common accounts. Costs are mostly one-time build and documentation work, with recurring effort for access reviews, patching and evidence collection. Ask any provider for a quote built from a written scope that lists the boundary, roles, identity sources and deliverables, since DeployOpen issues quotes from written scope and does not publish prices.

Should we start CMMC PostgreSQL work now or wait for the rule to settle?

Start with the controls that apply regardless of the timeline, because NIST SP 800-171 Revision 2 remains the version contractors are assessed against under the current CMMC rule. On 13 July 2026 the Department of War suspended CMMC Phase II, which had been scheduled to start 10 November 2026, and Phase I self-assessments, SPRS postings and DFARS 252.204-7012 obligations remain in place. As of 17 October 2026, the DoW CIO page says implementation is paused in Phase 1 and may only require self-assessments at Levels 1 and 2, while the eCFR text still contains the original four-phase schedule. Confirm the current status with your contracting officer and counsel before fixing a schedule, and expect a FAR proposal that would move contractors to Revision 3 to change the version you build against.

What does our team need to provide for this work?

Your team needs to supply the facts that a boundary cannot be drawn without. That includes an inventory of every PostgreSQL cluster, its hosts, backup targets and replicas, a list of which systems store or process CUI, the identity provider and its multifactor settings, the people who administer each layer, and any existing logs, runbooks and change records. You also need a named decision maker who can accept the boundary and the assessment objectives in writing. Without those inputs, the work stalls in discovery, and the scope and effort grow. Ask any provider to list these inputs in the written scope before work starts.

Can our internal team implement NIST SP 800-171 controls on PostgreSQL without a partner?

Yes, if your team already runs PostgreSQL in production and understands the control families and assessment objectives. The work is mostly configuration, identity integration and documentation, and it can be done internally. The risk is in the details: CMMC evidence must be in final form, and a requirement is met only when all applicable assessment objectives in NIST SP 800-171A are satisfied. Teams without a dedicated compliance owner often find that logs, access reviews and change records were not kept in a way an assessor can sample. A partner is most useful as a second reviewer or for the build, while your team keeps ownership of the system and its records.

How does pgAudit fit into CMMC Level 2 audit evidence?

pgAudit writes detailed statement and object activity to the PostgreSQL log, which can support the audit and accountability requirements in NIST SP 800-171 Revision 2. It produces records only for the events you configure, so the first task is to decide which classes of activity must be captured for CUI tables and roles. Log output must then be protected, retained and reviewed, and the review must be shown as a repeatable process. Confirm the pgAudit version that matches your PostgreSQL major version, and confirm with your assessor how they expect log integrity and retention to be demonstrated for your environment.

Why does DeployOpen not provide CMMC certification?

Level 2 certification assessments are performed by C3PAOs authorized or accredited by the CMMC Accreditation Body, currently The Cyber AB, and Level 3 assessments are performed by DCMA DIBCAC. DeployOpen does not issue certifications, attestations or audit reports, so it cannot certify your environment. What DeployOpen can do is plan and build the platform, document the controls, and prepare the systems and evidence that an independent assessor will examine. Ask any provider to state clearly which parts of the work prepare you for assessment and which parts an assessor must perform.

Does a FedRAMP-authorized cloud change the scope of our PostgreSQL work?

It can. Under 32 CFR 170.17(c)(5), a contractor may store or process CUI in a cloud service only if that service is FedRAMP Authorized at the Moderate baseline or higher, or meets equivalent requirements. When PostgreSQL runs in a cloud account, confirm whether the provider's service is in your assessed scope or is an external service with its own authorization, and get that answer in writing. When the database runs in infrastructure you control, the boundary is usually easier to define because your team owns more of the controls. Confirm the specifics with your assessor and the cloud provider, because the answer depends on the service model and contract.

How DeployOpen scopes and delivers CMMC-ready PostgreSQL

DeployOpen plans, implements, hardens, documents and supports self-hosted PostgreSQL inside the infrastructure you control, so the database that stores CUI can be reviewed with the rest of your system boundary. Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.

How we scope

  • Map which PostgreSQL clusters, replicas and backups hold or touch CUI, and which systems fall inside your assessment boundary.
  • Confirm the NIST SP 800-171 Rev. 2 requirements your PostgreSQL estate must support, with the assessment objectives you will be measured against.
  • Agree the written scope, deliverables and timeline with your compliance lead, including which evidence your assessor will expect.

How we build

  • Configure administrator access through your identity provider with multifactor sign-in, and keep database roles separate from personal accounts.
  • Set up TLS for client and replication connections and confirm the FIPS-validated cryptography your OS and libraries actually use.
  • Enable pgAudit with logging settings chosen against the requirement set, then test that audit records are complete and protected.

How we hand over

  • Deliver configuration baselines, a system description and a requirement-by-requirement evidence map in final form, not drafts.
  • Document backup, restore and access review procedures, with restore tests and their recorded results included in the handover.
  • Walk your operators and compliance staff through the runbooks so the team can reproduce the evidence without us.

How we support

  • Offer ongoing support, upgrades and continuous testing as a retainer, covering PostgreSQL minor releases and planned major upgrades.
  • Re-verify controls after configuration changes, new administrators or new replicas, and refresh evidence before each assessment.
  • Confirm with your assessor which certification body and assessment steps apply, since DeployOpen prepares evidence but does not issue certifications.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.