PostgreSQL security audit

An outside PostgreSQL security audit checks the version, authentication, TLS, roles, extensions, logging, backups and encryption of a self-hosted cluster, then ranks the fixes. This page explains what is checked, how the work runs and what the client provides.

On this page

What a PostgreSQL security audit covers and when to commission one

Commission a PostgreSQL security audit when a self-hosted estate holds regulated data, when an assessment is coming and you need to know your gaps before the assessor does, or when a new cluster needs an independent check before it goes live. The review covers the database and the way it is reached and run: the PostgreSQL version and patch level, client authentication in pg_hba.conf, TLS on client and replication connections, roles and privileges, installed extensions, logging and pgAudit, and how backups and encryption are handled. DeployOpen performs the review in your infrastructure, records what it finds and produces a ranked remediation list. The review is fixed-scope, so the systems, databases and control areas are agreed in writing before work starts.

Each area produces evidence you can act on. The version check compares your running minor release and major version against the supported list in the PostgreSQL versioning policy, so you can see whether you are on a release that still receives fixes. The authentication and TLS review checks whether rules are narrowed to specific addresses and databases, whether weak methods remain, and whether replication and administrative access are separated. The privilege review looks for superuser use by applications, broad default privileges and public schema permissions. Logging review checks whether authentication failures and privileged actions are recorded and whether those records leave the database host. Backup and encryption review checks what is encrypted at rest and in transit and whether restores have been tested.

DeployOpen prepares findings, configuration evidence and fixes. It does not issue audit reports, attestations or certifications. If you need an opinion for a regulator, a customer or a framework, ask your assessor or certification body which evidence they expect from you and confirm that they accept a third-party technical review as input. Before you commission a review, confirm the database inventory, the access paths into each cluster and the change windows available for remediation, since these shape the scope and the time needed to fix what is found.

Which PostgreSQL controls the review examines

A PostgreSQL security review tests whether the database is patched, who can connect and how, what each role can do, and whether activity is recorded and recoverable. The six areas below are connected: a rule that admits the wrong client is only as safe as the role behind it, and a log that is never reviewed does not show an attack. Ask for the evidence listed on each card before the review starts.

Version and patch level

The reviewer compares the running major and minor version with the supported-version list and checks how far behind the current minor release the cluster is. Community support for PostgreSQL 13 and earlier has ended, so an unsupported major version is a finding on its own. Expect to provide the output of SELECT version();, the package or container image in use, the maintenance window history and any vendor packaging changes. Confirm with your operator whether security fixes arrive through your OS packages or directly from the project.

Support per major version
5 years
Versioning policy

pg_hba.conf and TLS

The reviewer reads pg_hba.conf in order, looking for trust entries, broad address ranges, host lines where hostssl is needed, and md5 in place of SCRAM. TLS settings such as ssl, ssl_min_protocol_version and the certificate chain are checked on the server and on each client's sslmode. Provide the active file, the pg_hba_file_rules view output, certificate expiry dates and the list of connection poolers in the path.

Roles and privileges

The reviewer maps which roles are superusers, which own schemas and tables, and which hold predefined roles such as pg_read_all_data. Default privileges on the public schema, shared application logins and unused roles are common findings. Provide a role inventory from pg_roles and pg_auth_members, grants on each database and schema, and the process used to approve privilege changes.

Extensions

Each installed extension runs code inside the database server, so the reviewer checks which extensions are installed, who can create them and whether any are unmaintained. Compare pg_available_extensions with the approved list and confirm the owner and version of each. Ask for the extension source, its license and the upgrade history, and confirm that extensions in use still receive fixes from their maintainers.

Logging and pgAudit

The reviewer checks whether connections, disconnections, failed logins, DDL and privileged actions are written to logs, and whether those logs leave the database host. Settings such as log_connections, log_disconnections and log_statement are reviewed alongside the pgAudit extension if it is used. Provide the logging configuration, a sample of recent authentication failures, the log destination and retention, and the person who reviews them.

Backups and encryption

The reviewer checks that base backups and WAL archives are encrypted in transit and at rest, that access to backup storage is separate from database access and that restores have been tested. Keys for encrypted backups and for any transparent data encryption are a frequent gap, because a backup copy can bypass every control on the live server. Provide the backup configuration, the storage location and access list, key custody records and the date of the last restore test.

Continuous archiving docs

How the review checks version and patch level against the support window

The first check in a PostgreSQL security audit is whether the running major version is still receiving fixes. Supported major versions are 14 through 18. PostgreSQL 18 is supported until November 14, 2030, 17 until November 8, 2029, 16 until November 9, 2028, 15 until November 11, 2027, and 14 until November 12, 2026. Any cluster on version 13 or earlier is out of support and is recorded as a high-priority finding, because the community no longer publishes security fixes for it. The reviewer confirms the exact major version with SHOW server_version_num; or SELECT version(); on every primary, standby and backup host, since replicas and forgotten test clusters are common places for old versions to survive.

Next, the reviewer compares the minor version with the latest minor release for that major line. Minor releases come at least once every three months, and they replace executables and require a restart without changing the on-disk storage format, so a missed minor update is usually a planning gap rather than a data risk. The reviewer asks the client for the date of the last minor update, the change record for it, and the process that tracks new releases. Also confirm that the client knows whether its packages come from the official repositories or a distribution, because distribution builds can lag behind upstream fixes. Connection poolers such as PgBouncer sit in the same path and need their own version check, including the security fixes in each release.

The client should confirm three things before the review starts: the target minor cadence they can keep, the window in which a critical fix must be applied, and the major version they plan to be on before the current one reaches end of support. The last point links to the upgrade planning in the PostgreSQL upgrades group, because a major upgrade needs a rehearsal and a rollback path that a minor update does not. Reviewers record the answers as a patch policy with named owners, which becomes the baseline for the remediation list.

Audit scope options and when each fits

This table compares three depths of outside PostgreSQL security review, from configuration files only to restore tests and logging checks. Read each column to see what the review covers, what you must hand over, and which decision the findings support. The main takeaway is that the deeper scopes produce evidence about how the database behaves in practice, not just how it is configured.

Scope levelWhat is includedWhat the client must provideDecision it supports
Configuration-only reviewServer version and patch level against the supported release list, pg_hba.conf rules, TLS settings such as ssl_min_protocol_version, and postgresql.conf logging parametersRead access to configuration files, the server version output, and the deployment model (packages, containers or operator)Whether the stated configuration is sound and which settings need changing before a live check
Configuration plus live role and privilege extractionEverything in the first scope, plus a read-only export of roles, memberships, schema and default privileges, superuser use, and installed extensionsA read-only database account, a maintenance window for the export if required, and a list of application and service accountsWhether access matches what each application and person needs, and which roles to redesign first
Full review with backup restore testing and logging verificationEverything above, plus a test restore of a recent backup into an isolated system, a check that WAL archiving and encryption of backups work, and a test that audit log entries are written and retainedAn isolated restore environment, access to backup storage and keys, the log destination, and a named owner for the test resultsWhether recovery and audit evidence hold up under test, not just on paper, before an assessor asks
Scope add-on: extension and pgAudit reviewReview of installed extensions, their versions and privileges, and whether pgAudit or equivalent logging is configured for the events you needThe list of extensions in use and the logging requirements your compliance team has setWhether extensions add risk you must patch or remove, and what logging must be enabled
Scope add-on: encryption at rest and key handlingReview of disk or block encryption, the choice of any transparent encryption method, key storage and rotation, and what the design does not protect againstStorage and key management details, and the threat model your organization has agreedWhether the encryption design matches the data and threats in scope

How an outside PostgreSQL security audit runs, step by step

The sequence moves from agreed scope and access to evidence-backed findings, a ranked remediation list and a retest of the fixes the client accepted. Each step ends with a check the client can confirm before the next one starts.

  1. Agree written scope and access

    Before any work begins, the client and the auditor agree in writing which clusters, databases, hosts, backup systems and key stores are in scope, which accounts the auditor will use, and which environments are off limits. The agreement also names a point of contact for each system and states whether testing happens in production, staging or a copy. Confirm that the auditor receives read-only or least-privilege access, that you know how that access will be logged and revoked, and that the scope names the exact PostgreSQL versions in use. The step is complete when the signed scope, access list and contact sheet are on file.

  2. Collect configuration and catalog extracts

    The auditor gathers the server version, the active settings from the configuration files, the pg_hba.conf and pg_ident.conf files, and read-only catalog queries that list roles, memberships, database and schema privileges, and installed extensions. Extracts are taken as copies so the live system is not changed. Confirm that your team reviews the collection commands before they run, that the extracts are stored in a location with restricted access, and that any secrets appearing in configuration files are masked. The step is complete when the auditor has a dated snapshot of the configuration and catalog that everyone agrees matches the running system.

  3. Review pg_hba.conf and TLS settings

    The auditor reads the client authentication rules in order, because PostgreSQL applies the first matching line. They check for permissive address ranges, entries that allow connections without authentication, password methods that are weaker than current options, and replication rules that are broader than needed. TLS is reviewed on the server and on the client side: certificate validity and chain, the minimum protocol version, whether non-encrypted connections are refused where required, and how clients verify the server. Confirm that you can explain the business reason for each remaining broad rule, and that the certificate owners and renewal process are known. The step is complete when each rule has a finding or a documented reason it stays.

  4. Test roles and privileges

    The auditor maps the role hierarchy and checks who holds superuser, role-creation, replication, and bypass-row-security attributes. They confirm that application roles do not own the objects they use, that the public schema permissions are reviewed, and that default privileges match the intended design. Where the client allows, the auditor tests whether a given login can reach data it should not, using accounts that exist for that purpose. Confirm that every superuser and privileged role has a named owner, that shared login accounts are identified, and that the test accounts are removed afterward. The step is complete when the privilege map is signed off and each excess grant is either removed or justified.

  5. Check extensions, logging and pgAudit

    The auditor compares installed extensions against the approved list and checks their versions against the vendor's current releases, since extensions carry their own security history. Logging settings are reviewed for what is recorded, where logs go, who can read them, and how long they are kept. Where the audit scope requires statement or role-level auditing, the auditor checks whether pgAudit is installed, configured and writing to a destination that the database administrators cannot silently alter. Confirm that log retention matches your policy, that logs do not capture passwords, and that someone monitors the log stream. The step is complete when extension, logging and auditing findings are recorded with the evidence used to reach them.

  6. Verify backup and encryption design

    The auditor reviews how base backups and archived WAL files are produced, where they are stored, who can read or delete them, and whether they are encrypted in transit and at rest. They also check whether the design covers point-in-time recovery and whether the encryption key is held separately from the data it protects. A restore is not part of this step unless the scope includes it, so the auditor records what has been tested and what has not. Confirm that backup credentials are not reused from production roles, that key custody is documented, and that someone can name the most recent restore test. The step is complete when backup and encryption findings are written against the stated recovery requirements.

  7. Produce a ranked remediation list

    The auditor turns the findings into a single list ranked by the risk each one creates in your environment, considering exposure, the sensitivity of the data involved, and how hard the issue is to fix. Each item states the evidence, the affected system, a recommended fix, and the owner who would make the change. Confirm that your team reviews the ranking, challenges any item it believes is misjudged, and agrees which fixes will be made, which will be accepted as risk, and which need more information. The step is complete when the accepted list is signed off with named owners, and the disagreements are recorded rather than dropped.

  8. Retest the agreed fixes

    After your team applies the agreed fixes, the auditor repeats the original checks for those items and confirms that each one now behaves as intended. Retesting covers the same evidence trail as the first pass, so that the before and after states can be compared directly. Items that were accepted as risk are carried forward with their documented reasons. Confirm that the retest uses the current configuration rather than the earlier snapshot, and that any change made during the retest is recorded. The step is complete when the retest report lists each item as closed, open or accepted, with the date of verification.

How the audit moves from evidence to a ranked fix list

The review starts with a scoped, read-only access grant from the client, and evidence is gathered inside the client's environment: the server version and patch level, pg_hba.conf, TLS settings, role and privilege grants, installed extensions, logging configuration and backup records. Findings move across the trust boundary only as written evidence, not as credentials. Each finding is then ranked by severity and turned into a remediation list that the client's team applies, followed by a retest to confirm each fix holds.

Evidence stays in the client environment, and only written findings leave it.

What the reviewer finds in pg_hba.conf, TLS and password methods

The reviewer reads pg_hba.conf top to bottom, because PostgreSQL applies the first rule that matches a connection attempt. A broad early rule can make later, stricter rules unreachable, so the review starts by mapping the order of entries against the intended design. The next checks are the connection type and the address scope. A host line accepts both encrypted and unencrypted connections, while hostssl accepts only SSL connections, so any application or administrator rule written as host on a network segment that carries credentials is a finding. Entries using trust skip authentication entirely and should be rare to absent outside a tightly controlled local socket. Entries using md5 are flagged because PostgreSQL 18 deprecated MD5 password authentication in favor of SCRAM, so the reviewer will ask for scram-sha-256 and confirm that stored passwords were re-hashed with password_encryption set to SCRAM.

The reviewer also checks whether the methods in use fit the environment. PostgreSQL documents password, GSSAPI, SSPI, LDAP, RADIUS, certificate, PAM and OAuth methods, and PostgreSQL 18 added the OAuth 2.0 method. A password method is acceptable when secrets are managed and rotated, but a review should ask whether an existing directory, Kerberos realm, certificate authority or identity provider should own those logins instead. Reviewers record the answer as a decision, not as a default. Confirm with your identity team which method each user population will use before the review, since the auditor will test the rule set against that intent.

On TLS, the reviewer asks whether the server accepts only encrypted connections for remote clients, which minimum protocol version is set through ssl_min_protocol_version, and whether clients verify the server certificate with verify-full rather than accepting any certificate. Replication entries in pg_hba.conf get the same scrutiny, and the review notes any connection pooler sitting between clients and the server, since it can change where TLS terminates. Implementation details for these settings belong to the sibling topics on writing a secure pg_hba.conf and configuring TLS for PostgreSQL connections, and the reviewer will check that those pages' decisions match what is running.

Security and operational risks the audit flags

Why is overusing the superuser role a security risk in PostgreSQL?

A superuser bypasses every privilege check in the database, so any application or person connecting as one can read, change or drop any object and can run operating system commands through some extensions and functions. Auditors look for superuser logins used by applications, scheduled jobs or day-to-day administrators. The fix involves moving each workload to a login role with only the grants it needs, using predefined roles such as pg_read_all_data or pg_maintain for operational tasks, and keeping a small number of named administrator accounts for break-glass work with logging turned on. The review also checks pg_hba.conf to confirm superuser logins are restricted to specific hosts and authentication methods. Expect the role design to touch application connection strings and deployment pipelines, so the work is usually scoped alongside the application teams.

What is wrong with broad permissions on the public schema?

By default, every role that can connect to a database can create objects in the public schema of that database in the PostgreSQL versions we review, which lets unrelated accounts add tables, functions or views where other users may find them. This opens the door to schema-based attacks, where a malicious object shadows a trusted one and captures queries or data. The fix is to revoke the CREATE privilege on the public schema from PUBLIC, grant creation only to the roles that need it, place application objects in their own schemas owned by a dedicated owner role, and review default privileges so new objects do not inherit open access. Confirm the exact behavior for your major version against the PostgreSQL documentation before changing grants, because some applications depend on the current defaults and will need their search paths updated.

How can installed extensions give more access than intended?

Extensions run code inside the database server, and some are created by superusers, can run functions with the owner's rights, or expose functions that reach the file system or network. An auditor lists every installed extension, its version, its owner, and whether it is trusted, then checks which roles can call its functions. Common findings are extensions installed in the public schema, extensions left over from a test, and extensions whose functions are executable by PUBLIC. The fix is to remove unused extensions, keep the rest in dedicated schemas, revoke EXECUTE from PUBLIC where it is not needed, and track extension versions as part of the patch process. Changes like these affect applications that call extension functions directly, so the list of dependencies should be built before anything is dropped.

What happens if PostgreSQL audit logging is missing or incomplete?

Without audit logging, the organization cannot reconstruct who read or changed sensitive data, when privilege changes happened, or which failed logins preceded an incident, and compliance evidence for access reviews becomes hard to produce. PostgreSQL logs connections and errors through its server logging parameters, but detailed object-level activity usually needs the pgAudit extension, which must be installed, configured and shipped to a log store that the database administrators cannot quietly edit. The fix involves choosing which classes of events to record, setting log destinations and retention, protecting log files from change, and testing that a sample action produces the expected entry. Log volume and storage grow with the settings chosen, so the design should start from the questions the logs must answer. Teams governed by PCI DSS or the HIPAA Security Rule should review their own logging obligations with their assessors.

Why are unencrypted PostgreSQL backups a finding?

A backup is a complete copy of the data, often held longer than the live database and stored in places with weaker access controls, such as shared network storage or object buckets. If a backup file is copied or lost unencrypted, the data is exposed even when the live server is well protected. Auditors check whether backups are encrypted in transit and at rest, where the encryption keys are held, who can read them, and whether the same protection applies to WAL archives and base backups. The fix usually combines encryption of the backup tool output or the storage target with keys held separately from the backup files, access limited to the backup service account, and documented key rotation. Encryption at rest for the live cluster is a separate decision, and the threats each option covers should be compared before choosing one.

What does it mean that restore paths were never tested?

A backup that has never been restored is an assumption, not evidence. Auditors ask for the last restore test, what was restored, where, how long it took, and whether the restored database was checked for completeness. Point-in-time recovery depends on a base backup and archived WAL files being present and consistent, and incremental backups need pg_combinebackup at restore time, so a gap in the chain can make a restore impossible even when backup jobs report success. The fix is a scheduled restore drill into an isolated environment, a runbook that names the steps and owners, checks that the recovered data matches expectations, and a record of the results. The recovery targets the business needs, and how often drills run, should be agreed before the test is designed.

How much does a PostgreSQL security audit cost and how long does it take?

The cost depends on the number of clusters, the authentication and TLS design, how many databases and roles are in scope, whether extensions and backup tooling are reviewed, and whether the review includes remediation or only findings. Ask any provider, including DeployOpen, for a written scope listing the systems, the checks, the evidence format and the retest approach, then compare quotes against that list rather than against headline figures. One-time costs cover the review and the ranked remediation list; recurring costs appear only if the organization adds scheduled reviews or ongoing support. DeployOpen does not publish a price list, and a quote follows from the agreed written scope.

Can our own team run a PostgreSQL security review without an outside partner?

Yes, an internal team can perform much of the review if it has someone who understands pg_hba.conf, role design, TLS, and the operating system and backup tooling around the cluster. The main reasons organizations bring in an outside reviewer are independence, a second set of eyes on privilege design, and the time needed to test restores and remediation. An internal review should still produce a written inventory of versions, roles, extensions, logging settings and backup tests, and it should be repeated on a schedule. Compliance assessors will generally want to see who performed the review and how independence was handled, so confirm those expectations with your assessor before deciding who does the work.

Limits of an outside review and what to confirm in your environment

An outside PostgreSQL review is a snapshot built from the access you grant, the versions in place on the test date, and the layers outside the database that you run yourself. The cards below set out what a review can and cannot establish, and what your own team should confirm before and after the engagement.

A snapshot at the time of testing

Findings describe the cluster as it was on the dates the review ran. A minor release applied later, a new role granted for a batch job, or a relaxed pg_hba.conf rule changes the result without anyone re-running the review. Ask for the test window and the exact server version in the report, and schedule a retest after remediation or after any change to authentication, roles or network paths.

No compliance certification

A security review tests PostgreSQL settings and evidence against the controls you select. It does not issue an audit report, attestation or certification. Those come from an independent auditor or certification body. Ask the reviewer to map each finding to the control it relates to, and ask your assessor which evidence they will accept, such as configuration exports, role listings and log samples.

Limited to the access you grant

A reviewer can only see what the granted accounts, hosts and files reveal. Without read access to pg_hba.conf, the server configuration, the pg_stat_activity view and the backup catalog, findings on those areas stay open or get marked as unverified. Agree the access list in writing before testing, including a read-only database role, host access for configuration files and backup console access.

Encryption at rest outside the database

Encryption of data files depends on the storage layer, the hypervisor or the cloud volume service, and the key provider behind them. A PostgreSQL review can confirm whether an extension such as pg_tde is configured, but it cannot confirm that the disk, volume or snapshot is encrypted unless your team supplies that evidence. Confirm the encryption setting for each volume, snapshot and backup target, and who holds the keys.

Confirm pgAudit against your major version

pgAudit is a separate extension, and its releases track PostgreSQL major versions. A build that works on one major version may not load on the version you run after an upgrade. Ask the vendor or the extension project which pgAudit release supports your PostgreSQL major version, and confirm that shared_preload_libraries and the audit settings survive a planned major upgrade before the window opens.

Confirm the PgBouncer release in use

Connection poolers sit in the authentication path, so their version and configuration affect which login methods and TLS settings a client actually uses. PgBouncer 1.26.1 was released on October 14, 2026 with security fixes. Ask your platform team which release runs in each environment, whether it is patched to that level or later, and whether client TLS and authentication are configured at the pooler or passed through to the server.

PgBouncer site

How findings are ranked and turned into a remediation plan

Findings from a PostgreSQL security audit should be ranked by the exposure they create in your environment and the effort it takes to close them, not by a generic severity label alone. Exposure depends on your threat model: a cluster reachable only from a private application subnet with certificate-based service accounts carries different risk from one where a host all all 0.0.0.0/0 md5 line, a superuser shared by several applications, or an unencrypted replication link can be reached from a wider network. The reviewer should group each finding into one of a few bands, such as fix before the next release, fix within the current change window, and schedule into planned maintenance, and record the reason for each placement. Ask for the threat model assumptions in writing before the ranking is finalized, so you can challenge any placement that does not match how your network and data are actually exposed.

Each ranked item should be written so a team can schedule it without reopening the audit. A good entry names the affected object (for example the pg_hba.conf rule, the role or the extension), the current state with the evidence that showed it, the target state, the change steps, the owner, the rollback path and any dependency such as a restart or a client change. Some fixes are a configuration reload, while others, such as moving to a supported major version or switching a password method, touch applications and drivers. The plan should separate one-time work from recurring checks, such as reviewing role grants after each deployment or confirming patch level after each minor release, and ask the reviewer to state which items they expect your own team to do and which they expect to support.

Retesting confirms that a fix closed the finding rather than moving the problem elsewhere. For each item, the retest should repeat the original check against the changed system, record the new output, and confirm that the change did not weaken a neighboring control, for example by testing that clients still connect over hostssl after a TLS change. Ask for the retest to be included in the written scope, with a defined point at which findings are closed and which are accepted as risk with a named owner. Compliance mapping, such as which controls a finding relates to under PCI DSS or the HIPAA Security Rule, is prepared as evidence for your assessors. It is not an attestation, and only an independent auditor or certification body can issue one.

Questions buyers ask before commissioning a PostgreSQL security audit

How much does a PostgreSQL security audit cost?

The cost comes from a written scope quote, not from this page, and DeployOpen does not publish a price list. The main cost drivers are the number of clusters, the number of databases and roles, the number of installed extensions, the backup design (including whether backups and archived WAL are encrypted and tested), and the complexity of the access model, such as directory login, certificate authentication or application roles that bypass people. Ask the provider to price each cluster and environment separately, to state what is one-time (the review and ranked remediation list) and what recurs (retests or retainer support), and to list which items are excluded, such as fixing the findings. Compare quotes on the same written scope.

How long does a PostgreSQL security review take?

Duration depends on the same drivers as cost: how many clusters are in scope, how many databases and roles each one holds, how many extensions are installed, and how quickly the team can provide configuration files, access lists and backup records. Access arrangements also matter, since reviewers need read access to configuration, catalog views and logs in a controlled way. Ask the provider for a timeline in the written scope, with separate milestones for discovery, testing, the findings report and the retest of agreed fixes, and confirm which of those steps depend on your change windows.

What do we need to provide for the review?

Plan to supply the inputs the review cannot work out alone. Typically that includes the PostgreSQL major and minor versions in use, copies of the active pg_hba.conf and postgresql.conf files, the TLS settings and certificate chain, a role and privilege export, the list of installed extensions, logging and pgAudit settings, backup and restore runbooks, and the recent restore test records. You also need a named technical contact who can answer questions on each cluster, and a decision on how reviewers reach production-like systems (read-only accounts, a staging copy or a supervised session).

Can our internal team run the PostgreSQL security review ourselves?

Yes, a capable internal team can run parts of the review, and many do. The checks are documented, and the PostgreSQL documentation covers authentication methods and logging. The difficulty lies in consistency and independence: internal staff often know the exceptions that were granted years ago, and they are less likely to challenge their own designs. A common split is for the internal team to collect evidence and fix issues, while an outside reviewer tests the findings and produces a ranked remediation list. Decide early who owns each finding and who signs off on closing it.

Will an external audit accept a PostgreSQL security review?

A security review by DeployOpen does not replace an assessment by an independent auditor, and DeployOpen does not issue audit reports, attestations or certifications. Its output is evidence and findings that help your compliance team and assessor review the database controls. Before commissioning the work, ask your assessor which evidence they expect for the controls in scope, such as configuration snapshots, access reviews, logging records and restore test results, and make sure the written scope covers them. Confirm the exact requirements with your assessor or certification body, since they decide what satisfies an assessment.

Does the review change our production database?

A review should observe and test without changing production settings. Changes belong to the remediation phase, which the client approves and schedules. Some fixes, such as editing pg_hba.conf or enabling TLS, require a configuration reload or a restart, so plan change windows and rollback steps. Ask the provider how testing is done against production, whether they use read-only access or a copy, and which actions need your written approval before they run.

Does a security audit include fixing the findings?

The audit produces a ranked remediation list, with each finding explained, its risk described and a suggested fix. Implementing the fixes is a separate scope item that can be included in the same written agreement, delivered by your own team, or handled through ongoing support. Ask the provider to state in the scope which findings are fixed by them, which are handed over, and how a retest confirms that each fix works as intended.

How DeployOpen scopes, delivers and supports a PostgreSQL security audit

DeployOpen reviews self-hosted PostgreSQL in the infrastructure you control, from version and patch level through authentication, privileges, logging and recovery. The work is agreed as a fixed scope, and the output is a ranked remediation list that your team can act on and retest.

How we scope

  • Agree in writing which clusters, databases, hosts and environments the review covers.
  • Confirm the PostgreSQL major versions in use against the supported release dates before testing starts.
  • Record which access paths, client tools and poolers are in scope, and who on your side provides read access.

How we build the review

  • Check pg_hba.conf, TLS settings, roles, privileges and extensions against your stated access model.
  • Review logging, pgAudit configuration, backup copies and encryption at rest against the scope you agreed.
  • Test findings in your environment where safe, and record evidence for each item rather than relying on configuration alone.

How we hand over

  • Deliver a written report with each finding, its evidence, affected systems and a severity ranking.
  • Provide a remediation list ordered by risk, with specific configuration changes and owners to assign.
  • Walk your security, DBA and platform teams through the results and agree which items the retest will cover.

How we support

  • Retest agreed remediation items and document the outcome for your records and any compliance file.
  • Offer ongoing support, upgrades and continuous testing as a retainer if you want the review repeated over time.
  • Ask for the retainer terms and retest scope in the written quote, so ongoing effort is planned rather than assumed.

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.