How PostgreSQL supports SOX IT general controls
PostgreSQL can support SOX IT general controls evidence, but management must design the controls itself. No SEC rule or PCAOB standard publishes a catalog of IT general controls, so the control set for a PostgreSQL database that feeds financial reporting is a judgment that management documents for its own facts. SEC Release 33-8810 says the IT general control areas relevant to an internal control over financial reporting (ICFR) evaluation vary with each company's facts and circumstances, and that management only needs to evaluate the controls necessary for other financial reporting controls to operate properly and consistently. The guidance names program development, program changes, computer operations and access to programs and data as areas to consider. Start by identifying which PostgreSQL databases hold or transform figures that reach the financial statements, then decide which of those areas apply to each one.
PostgreSQL supplies mechanisms, not the control itself. Roles and privilege grants, pg_hba.conf entries, server and audit logs, base backups with archived WAL, and replication all produce records an auditor can inspect. The approval of who receives a privileged role, the rule that a schema or data fix needs a second reviewer, the periodic review that removes stale access, and the retention period for logs remain the client's responsibility and must be written down. An auditor will test whether those procedures were followed, so the database configuration should match the documented process rather than rely on a person remembering it.
Section 404 of the Sarbanes-Oxley Act requires management to assess ICFR each year, and for accelerated and large accelerated filers that are not emerging growth companies, an external auditor must also attest to that assessment (see 15 U.S.C. 7262). Management's assessment is the owner's conclusion, and the auditor tests it under PCAOB AS 2201 with risk assessment work under AS 2110. Confirm with your external auditor which filer status applies to your company, which IT general control areas they expect to see documented for the PostgreSQL systems in scope, and what sample sizes and evidence periods they will request before you design the control set.
Mapping SOX ITGC areas to PostgreSQL capabilities
This table maps the IT general control areas named in SEC Release 33-8810 to the PostgreSQL features that support them, plus job monitoring and periodic access review. Read each row as a question the auditor will ask, the database capability that helps answer it, and the configuration you must confirm in your own environment. The main takeaway is that PostgreSQL provides the building blocks, but failover automation, job scheduling and review evidence come from processes and external tools that you must design and document.
| Requirement area | PostgreSQL capability | Configuration needed |
|---|---|---|
| Program development | Schema and code are not generated by PostgreSQL itself, so development controls sit in your change tooling and migration repository | Keep schema migrations in version control, require peer review before merge, and confirm that developers hold no production login roles |
| Program changes | Role and privilege changes are recorded only if you log DDL and GRANT statements, and pgAudit can add that detail | Enable statement logging for DDL and role changes, ship logs off the server, and tie each change to an approved ticket |
| Computer operations | Hot standby servers serve read-only queries, and synchronous or asynchronous replication keeps copies current; automatic failover needs external tools | Document which failover tool is used, test promotion, and record job runs and backup results as operating evidence |
| Access to programs and data | Roles and privileges control object access, and pg_hba.conf with GSSAPI, LDAP, certificate or OAuth authentication ties logins to your directory | Use group roles without login, restrict superuser, and set pg_hba.conf so production accepts only directory-backed or certificate logins |
| Access to data, recovery | Continuous archiving with a base backup and WAL supports point-in-time recovery, and pg_basebackup incremental backups can be combined with pg_combinebackup | Store archives separately, restrict who can restore, and keep restore test records to show recovery works |
| Connection control | PgBouncer pools client connections, so application sessions can be routed through named accounts rather than shared administrative logins | Map each application to its own role, disable direct production access for people, and keep the PgBouncer version current |
| Job monitoring | PostgreSQL does not schedule or alert on batch jobs, so monitoring of scheduled SQL fixes and data loads depends on an external scheduler | Use an external scheduler with run logs, alerts on failure, and a documented owner for each recurring database job |
| Periodic access review | PostgreSQL can list roles and grants from catalog views, but it does not perform reviews or record approvals | Export role membership and grants on a set schedule, have owners certify them, and retain signed results with remediation tickets |
Evidence auditors sample from a PostgreSQL estate
Auditors testing IT general controls for SOX sample records, not configurations alone. The cards below cover the artifacts a PostgreSQL estate can produce for access, authentication, change, recovery and job oversight. Each one needs an owner, a fixed capture point and protected storage, so the records still hold up when the auditor asks for them.
Role and grant exports for access reviews
Periodic access reviews need a point-in-time list of who holds which role, which databases and schemas they can reach, and whether any account has superuser or role-management rights. Export roles and grants on a fixed schedule with a query against the catalog, store the output with a timestamp, and record the reviewer's sign-off against that exact file. Compare each export to the prior one so that unexplained grants surface before the review meeting. Confirm with your auditors whether they expect the export itself or the reviewer's decisions as the primary evidence.
Authentication methods docsAuthentication logs and pg_hba.conf history
The pg_hba.conf file defines which hosts, users and methods can connect, so changes to it change who can get in. Keep this file in version control, require a reviewed commit for each change, and retain the connection and authentication log lines that show which accounts actually logged in. A change that is not in version control is the first finding an auditor is likely to raise. Check that log retention on the database host matches the review period you agree with your auditors.
Change tickets linked to schema and data fixes
Schema changes and manual data corrections in a financial system need a ticket, an approver, and a record of what ran. Store each migration or fix script in Git, reference the ticket ID in the commit message, and have the deploy tool log the commit hash it applied. Data fixes run by hand are the usual gap, so require the same path for them, with the affected row count and the executing account recorded. Ask your auditors how they want to sample these changes before you design the ticket fields.
Backup and restore test records
Auditors test whether recovery works, not just whether backups run. Record each restore test with the source backup, the target environment, the date, the person who ran it, the row counts or checksums compared, and the outcome. PostgreSQL point-in-time recovery depends on a base backup and archived WAL files, so the test should show both were usable. Store these records with the same protection as the backups themselves, and confirm the restore test cadence with your auditors.
Continuous archiving docsReplication and scheduled job run logs
Financial batch jobs and replication both affect whether reported numbers are complete. Keep run logs for scheduled jobs that show start time, end time, exit status and the account that ran them, and alert on failures that are not retried. For replication, retain records of standby lag and any failover or promotion events, since a promoted standby can change where transactions were recorded. Confirm with your auditors which job classes are in scope before you decide what the logs must capture.
Tamper-evident storage and retention
Every artifact above is only useful if it cannot be altered after the fact. Write exports and logs to storage that the database administrators cannot edit, hash each file when it is created, and keep the hashes somewhere separate. Access to the evidence store should be logged and reviewed like any other privileged path. The retention period is a decision you make with your auditors, based on the review cycle and the periods they plan to test, so record that decision in writing.
Configuring PostgreSQL for SOX evidence
This sequence sets up the database access, change, logging, job and review controls that a SOX auditor will sample for a PostgreSQL database supporting financial reporting. Each step ends with a named record that the control owner can produce on request.
Agree the in-scope systems with the audit team
Start with the audit team, the finance systems owner and the database owner to list which financial applications, databases, schemas and replicas feed reporting. Record which controls the auditors plan to rely on and which IT general control areas they consider relevant to the company's facts. The output is a signed scope register that names each database, its owner, the financial process it supports and the control objectives it serves. Confirm the scope with the auditors before you change any access settings, because the scope decides which logs and reviews must exist.
Define privileged roles and route production access
Create separate PostgreSQL roles for schema owners, application service accounts, read-only reporting and emergency administration, and grant each one only the privileges its job needs. Where your PostgreSQL build and authentication method support it, route administrator logins through your identity provider so every person signs in as a named user. Confirm which authentication methods your version supports, since the PostgreSQL client authentication documentation lists several options. The output is a role matrix that maps each role to a person or service, an approver and a justification.
Set host-based and password authentication rules
Write the
pg_hba.confrules so that only approved networks and named roles can reach production, and reject all other connections. Use SCRAM-based password storage for any password login, because PostgreSQL 18 deprecated MD5 password authentication in favor of SCRAM. Where you use certificates instead of passwords, document how certificates are issued, rotated and revoked. The output is the version-controlledpg_hba.conffile, its change history and a password policy that the security team has approved, which the access review will later check.Separate schema changes from ad hoc data fixes
Deploy DDL and planned data changes through a versioned migration tool that runs from a pipeline, with a named approver and a test run in a non-production copy before release. Route urgent data corrections through a separate procedure that requires a ticket, a written reason, a second person's approval and a scripted statement that is reviewed before it runs. Confirm with the audit team that both paths meet the change management expectations in your ICFR documentation. The output is a change log linking each migration or data fix to its ticket, approver and deployment record.
Enable and retain database activity logs
Turn on PostgreSQL logging for connections, disconnections, failed logins, privilege and role changes, and DDL statements, and add an audit extension if your scope requires statement-level records. Send the logs to a store that the database administrators cannot edit, and set a retention period that your auditors confirm. Test that a sample login, a role change and a schema change each produce a log entry with a timestamp and user name. The output is a logging configuration file, a retention policy and a test record showing the entries were captured.
Schedule and monitor financial jobs
Document each batch job, replication process and scheduled report that feeds financial reporting, including its owner, schedule and expected completion. Configure alerts for failed, late or skipped runs, and define who reviews each alert and how the review is recorded. Confirm that job definitions are themselves under change control, so that a change to a schedule goes through the same approval path as a schema change. The output is a job inventory, alert routing rules and a sample of reviewed alerts with dated sign-off.
Document and run the periodic access review
Write the access review procedure, naming the reviewer, the frequency agreed with the audit team, the population to review and the action taken for each access that no longer fits the role. Export the current role memberships and privilege grants from PostgreSQL, compare them to the role matrix and record every exception with a removal or approval. Confirm the review covers both database roles and the identity provider groups that map to them. The output is a signed review record, the exported role listing used for the review and a ticket for each removed or changed grant.
Run and record a documented restore test
Restore the most recent backup of an in-scope database to an isolated environment, then check row counts, key balances and a sample of reconciled reports against the source. Record the start time, end time, the backup used and who verified the result, and log any gaps as findings with owners. Confirm with the audit team that the restore test supports the continuity expectations for the financial process. The output is a restore test report with the evidence attached, which the audit team can sample alongside the other controls.
Questions finance and IT leaders ask before a SOX database audit
Does a PostgreSQL deployment alone satisfy SOX requirements?
No. SOX Section 404 requires management to assess internal control over financial reporting, and no single database product satisfies that assessment. PostgreSQL is one component. What matters is whether the controls around it, such as who can reach production data, how schema and data changes are approved, and whether jobs and access are reviewed, operate consistently and leave evidence. The SEC's guidance in Release 33-8810 says the IT general controls to evaluate depend on each company's facts and circumstances, and management only needs to evaluate those that support other controls addressing financial reporting risks. Start by mapping which financial systems write to PostgreSQL and which of their controls depend on the database.
What drives the effort of scoping IT general controls for a database?
Scope follows the financial reporting risks, not the size of the database. The main drivers are the number of in-scope applications that read or write the database, how many people and service accounts hold privileged access, how often schema or data fixes go to production outside the normal application release path, and how many batch jobs feed the general ledger or subledgers. Each added system and access path adds walkthroughs, samples and evidence to collect. Ask your external auditor early which areas they expect to rely on, because that choice sets the testing depth.
What must our organization provide before a configuration project starts?
Expect to supply three things. First, named system owners for each in-scope financial application and for the database itself, with authority to approve access and changes. Second, a written change management policy that covers emergency fixes, schema migrations and direct data corrections, including who approves each type. Third, your identity source, such as the directory that holds employee accounts and group membership, so database roles can be tied to joiner, mover and leaver processes. Missing owners or an unclear change policy are the most common reasons controls cannot be evidenced later, so resolve them before design work begins.
Can our internal IT team configure and evidence these controls without outside help?
Often yes, if the team has database administration skills, access review experience and time to build repeatable evidence. The work is mostly design and documentation: role models, privileged access procedures, change records, job monitoring alerts and review sign-offs. Internal teams usually struggle with independence, because the people who build a control are rarely the best placed to test it, and with keeping evidence consistent across quarters. Ask whether your auditor expects a separate tester, and whether your team can commit to the recurring review cycle, not just the initial setup.
How long does a PostgreSQL controls configuration project take?
Duration depends on scope, and no fixed figure applies to every organization. The main variables are the number of in-scope databases, how many applications and roles need redesign, whether identity integration already exists, and how many change processes must be documented or rewritten. A single database with one owner and a documented change process is a small job. A cluster feeding several financial systems, with shared accounts to remove and no existing review process, takes longer. Ask any provider for a written timeline tied to a defined scope, and check which dependencies, such as directory access or owner availability, sit outside their control.
What determines what a SOX audit costs for database controls?
Cost reflects the scope of testing, the number of controls, the evidence the auditor samples and the frequency of testing. Internal costs include staff time for owners, administrators and reviewers. External costs include implementation support and the auditor's fees. For context, the SEC estimated in 2020 that an issuer newly exempt from the Section 404(b) auditor attestation would save about $210,000 per year on average, roughly $110,000 in audit fees and $100,000 in other costs (Release 34-88365). That estimate concerns the exemption savings only and does not give the cost of a SOX audit or of a database controls project. Request quotes that separate one-time build work from recurring reviews and evidence collection.
Who signs the conclusion on internal control over financial reporting?
Management signs. Under Rule 13a-15(c), management evaluates internal control over financial reporting as of each fiscal year end against a suitable, recognized framework, and the SEC guidance in Release 33-8810 explains how that evaluation should be performed. For accelerated and large accelerated filers that are not emerging growth companies, an external auditor then attests to management's assessment under PCAOB AS 2201. The auditor's report is the auditor's own opinion, so a configuration partner or tool vendor cannot supply that conclusion. Your consultants can prepare the controls and evidence that management relies on.
What does DeployOpen provide for database controls in a SOX context?
DeployOpen plans, implements, hardens, documents and supports self-hosted open-source platforms in infrastructure you control, and prepares systems, controls and evidence for compliance assessments. For PostgreSQL, that can include role and privileged access design, change procedures for schema and data fixes, job monitoring configuration and documentation for periodic access reviews. DeployOpen does not issue audit reports, attestations or certifications. Independent auditors and certification bodies perform those roles. Engagements are usually fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
How the database controls connect to ICFR testing
Management's annual assessment of internal control over financial reporting under Rule 13a-15(c) must be measured against a suitable, recognized framework, and the framework most often used is COSO's 2013 Internal Control, Integrated Framework. Principle 11 in that framework says the organization selects and develops general control activities over technology to support its objectives. For a PostgreSQL database behind a financial application, that principle is where the database controls enter the evaluation: privileged access to the production cluster, change management for schema and data fixes, job monitoring and periodic access reviews. Each one is a control activity that management has to name, own and be able to show working during the fiscal year, not only at year end.
Release 33-8810 narrows the scope in a way that saves effort if it is applied carefully. Management only needs to evaluate the IT general controls necessary for the proper and consistent operation of other controls that address financial reporting risks, and it does not need to evaluate those that only affect operational efficiency. The practical first step is to map each finance-relevant application to the database schemas, roles and batch jobs that feed its ledgers, then decide which database controls are the ones the application controls depend on. A reconciliation control that relies on a nightly job being complete, for example, makes the job monitoring control in scope. A dashboard that nobody uses for financial close does not. Write that mapping down before testing starts, because the auditor will ask how the scope was chosen.
The areas the database team owns are then tested against the framework the company has adopted, and the evidence they produce feeds the ICFR file. Auditors under AS 2201 and the risk assessment expectations of AS 2110 will want to understand which IT general controls matter to the automated controls they test, so the database owner should be ready to explain how a role grant, a migration approval or a failed job alert connects to a specific financial control. Confirm with your external auditor which framework version and which aspects of IT general controls they expect you to cover, since the SEC guidance leaves that to each company's facts and circumstances.
How access, change and evidence flow through a SOX database estate
The diagram starts at the identity provider and the approved change ticket, which are the two sources that should grant privileged database access. Access flows into named roles on the production PostgreSQL primary, while schema and data fixes move through a separate change pipeline before they reach that primary. The primary streams to a hot standby and ships WAL to archive and backups. Role grants and database logs are exported to a retained evidence store, which internal audit and external auditors read. Check that every arrow into production has a matching record in the evidence store.
Access, change, replication, backup and evidence paths for a SOX-scoped PostgreSQL estate.
How DeployOpen works on this
DeployOpen plans, builds and documents self-hosted PostgreSQL inside your own infrastructure so that the database controls auditors test can be scoped, configured and evidenced in writing. We agree the scope before work starts, then hand over the configuration, procedures and records your finance and compliance teams need for their own assessment.
How we scope
- We agree in writing which financial reporting systems and PostgreSQL clusters fall inside the engagement.
- We map the database controls to your own ICFR risk assessment, with your auditors' expectations confirmed early.
- Engagements are fixed-scope, with deliverables and timelines written down before work starts.
How we build
- We configure privileged access through named roles, SSO-linked administrator accounts and documented break-glass procedures.
- We set up schema and data-fix change paths, logging of job runs and alerting so evidence is produced as work happens.
- We test the controls with your team, including restore checks and role reviews, before anything is handed over.
How we hand over
- You receive configuration records, runbooks, role inventories and the review templates your team will run each period.
- We document which evidence each control produces, where it is stored and who owns it.
- We walk your finance, IT and audit stakeholders through the controls so they can judge fit for their own assessment.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers, with scope agreed in writing.
- Retainers can cover periodic access review support, change record checks and PostgreSQL minor and major upgrades.
- DeployOpen prepares systems and evidence for assessments but does not issue audit reports or attestations, which independent auditors provide.
Sources and further reading
- 15 U.S.C. 7262, Management assessment of internal controls (SOX Section 404 as amended) ↗
- Commission Guidance Regarding Management's Report on Internal Control Over Financial Reporting, Release 33-8810 ↗
- COSO Internal Control, Integrated Framework Principles (2013) ↗
- PostgreSQL authentication methods ↗
- Upgrading a PostgreSQL cluster ↗
- Continuous archiving and point-in-time recovery ↗

