PostgreSQL vs Redis for HIPAA and healthcare

PostgreSQL is open source with no vendor BAA, so your team carries its encryption, access control and logging obligations. Redis is commercial, and its BAA and hosting terms must be confirmed in writing before any ePHI is stored.

On this page

PostgreSQL vs Redis for HIPAA: which fits which data

If your organization is a covered entity or business associate, you must meet the HIPAA Security Rule for electronic protected health information (ePHI), and PostgreSQL gives the simpler scope of the two because no vendor signs a business associate agreement (BAA) for it, so your organization carries and evidences every control itself. Redis can hold ePHI only after its agreement and hosting terms are confirmed in writing for the specific product and plan you intend to run. This page covers the compliance angle only. The general PostgreSQL vs Redis comparison sits on its own page and is not restated here. The decision turns on three questions: where ePHI will be stored, who signs the agreement, and whether your team can run and evidence PostgreSQL.

The Security Rule applies to ePHI under 45 CFR 164.302, and Appendix A to Subpart C lists 18 standards with 36 implementation specifications, of which 14 are required and 22 are addressable. For an addressable specification, you must assess whether it is reasonable and appropriate, document why if it is not, and implement an equivalent measure where reasonable. For PostgreSQL, the technical safeguards map to concrete settings: set ssl to on in postgresql.conf for encrypted client connections, use SCRAM password hashing, and apply pgcrypto to fields that need column-level encryption. The PostgreSQL encryption options documentation says the server has no built-in transparent data encryption, and file-system encryption does not protect data while the file system is mounted, so record that gap in your risk analysis. Audit logging is a separate configuration task, and pgAudit is the extension to evaluate.

For Redis, the first step is written confirmation from the vendor. Review the Redis Trust Center and legal hub for current terms, then ask whether a BAA is available for the exact product and plan you will run, and where ePHI would be hosted. The Redis license is a separate question: from Redis 8.0 you can choose RSALv2, SSPLv1 or AGPLv3, and none of those choices answers the HIPAA question. If you self-host Redis, your team still owns encryption, access control and logging, so the evidence list above applies to it too. Document which data classes go into each database before build starts. The HHS guidance on whether certification is required is a useful read for the team. DeployOpen prepares controls and evidence for the assessment, but it does not certify either system.

What the HIPAA Security Rule asks of a database

The Security Rule (45 CFR Part 164 Subpart C, sections 164.302 to 164.318) binds covered entities and business associates for electronic protected health information. Appendix A sets 18 standards with 36 implementation specifications, 14 required and 22 addressable. An addressable specification still needs a documented assessment of whether it is reasonable and appropriate, and if it is not, a documented equivalent measure under 164.306(d).

Administrative safeguards (164.308)

This group covers the management side: a documented risk analysis of every system that holds ePHI, decisions on who can request and approve database accounts, workforce training, incident response and contingency plans. PostgreSQL is open source, so no vendor signs a business associate agreement for it and the organization running it carries these obligations. For Redis, the license is commercial, so ask the vendor whether it will sign a business associate agreement for the offering you plan to use. Your risk analysis must name the database and its backups so an assessor can trace each control back to it.

Appendix A matrix

Physical safeguards (164.310)

These controls cover facility access, workstation use, and how devices and media are handled. For a database, the assets in scope are the hosts and storage volumes, hypervisor consoles, and backup media. Redis keeps its working data in memory but can write snapshot or append-only files to disk, so those files need the same access and disposal rules as PostgreSQL data files. Ask your hosting provider for its physical controls evidence and confirm which of those controls you inherit when the platform runs in your own cloud account or data center.

Technical safeguards (164.312)

This group holds access control, audit controls, integrity and transmission security, so most of the database evidence sits here. PostgreSQL supports SSL for client connections once ssl is set to on, hashes passwords with SCRAM, and offers pgcrypto for column-level encryption. Its encryption page does not describe built-in transparent data encryption, and it notes that file system or block encryption does not protect data while the file system is mounted. Encryption at rest is a design decision you own, so document key handling and the audit trail an assessor will sample.

PostgreSQL encryption options

Organizational and documentation standards

Sections 164.314 and 164.316 require the paperwork that makes the other controls provable. Business associate arrangements must set out the safeguards the partner applies to ePHI, and policies and procedures must be written, kept current and retained. For this database, the runbook, configuration baseline and access review records are the documents an assessor will ask to see. Confirm the documentation retention period with your compliance counsel before you set it.

Subpart C text

How PostgreSQL and Redis meet HIPAA controls as documented

This table sets out how PostgreSQL and Redis each document the controls a HIPAA assessment usually asks about for a database holding electronic protected health information. Read the PostgreSQL column as a list of settings and gaps you own, since no vendor signs a BAA for the open source project. Read the Redis column as a list of items to confirm with Redis in writing, including which license and release line applies to your deployment.

ControlPostgreSQLRedis
Vendor agreement (BAA)No vendor signs a BAA for PostgreSQL, the open source project. Your organization carries the HIPAA obligations for its deployment.Confirm BAA terms on the Redis legal hub for your product. Its license choice is not a safeguard.
Encryption in transitSet ssl to on in postgresql.conf for native SSL on client connections. GSSAPI encryption is also documented.Confirm TLS configuration with Redis for your edition, using the Redis Cloud security documentation as the starting point.
Encryption at restNo built-in transparent data encryption. Use pgcrypto for columns and file system or block encryption, which does not protect while mounted.Confirm encryption at rest for your Redis Cloud or Redis Software deployment with Redis, including key management responsibilities.
Authentication and password storageSCRAM password hashing is documented. Access control, SSO and MFA are your design to build and evidence.Confirm password, ACL and SSO options for your edition and hosting model with Redis before relying on them.
Audit loggingLogging is configured by you through PostgreSQL logging settings. pgAudit is an extension to evaluate for session and object audit records.Confirm audit event coverage in the Redis Software audit events docs. Check Redis Cloud logging options for your plan.
Data location and hostingYou choose the location and hosting. Self-hosted in your own cloud, data center or air-gapped network, so you control residency.Redis Cloud is vendor-hosted, so confirm regions and data location in your contract. Redis Software can run in your own infrastructure.
Vendor assurance reportsThe PostgreSQL project issues no assurance report for your deployment. Your own assessor evaluates your configuration.Check the Redis Trust Center for current assurance documents and what each one covers before requesting them.
Supported version lines18 to November 14, 2030; 17 to November 8, 2029; 16 to November 9, 2028; 15 to November 11, 2027.Current line 8.10.2, a security release dated September 17, 2026. Confirm which line you run before planning upgrades.
Older version status14 ended November 12, 2026. 13 and earlier are unsupported, so plan upgrades before running them in production.Lines 7.2 and earlier are BSD-3-Clause. Lines 7.4 to 7.8 are RSALv2 or SSPLv1. Confirm which license your line uses.

Who covers what, and what your team still configures

Each card splits responsibility between the database project or vendor and your organization. HIPAA places the obligations on the organization that runs the database, so the your-side cards work as a configuration and evidence checklist. Read the vendor cards for what you can request in writing, then work through the rest before go-live.

PostgreSQL vendor side: no BAA

PostgreSQL is a community project released under the PostgreSQL License, a permissive license similar to the BSD and MIT licenses. No vendor signs a BAA for it, so no contract partner stands behind the software itself. The project publishes a predictable maintenance rhythm: a new major version about once a year, minor releases at least once every three months, and five years of support for each major version. Use that cadence to plan patching, then ask any hosting or support provider for its BAA terms in writing.

Versioning policy

PostgreSQL controls and evidence

Your team configures and evidences the database controls. Set ssl to on in postgresql.conf, use SCRAM for password hashing, and choose the encryption layer on purpose: pgcrypto for column-level encryption, file system or block encryption for data at rest, or client-side encryption. The PostgreSQL encryption page describes no built-in transparent data encryption, and file system encryption does not protect data while the file system is mounted. Document logging and retention, apply minor releases, follow the documented upgrade paths, run access reviews, and record each decision in your risk analysis.

PostgreSQL SSL docs

Redis vendor side: plan-specific coverage

Redis publishes its security controls on the Redis Trust Center and the Redis Cloud security pages, and its agreement terms on the legal hub. These pages show what Redis documents, which makes them the starting point for your vendor file. Coverage has to be checked for the specific plan you buy, since a document describing one offering does not confirm the BAA scope of another. Ask Redis in writing which offering, controls and agreement terms apply before you move any regulated data into it.

Redis Trust Center

Redis BAA, data scope and settings

Get BAA coverage confirmed in writing for the offering you run, and check which components the agreement names. Decide which data may enter Redis at all, because cached values and queued messages are protected health information whenever they identify a patient. Configure the access and transport settings the Redis documentation describes, review any audit events you export, and track the release line in use, such as the 8.x line, which reached 8.10.2 on September 17, 2026.

Redis audit events

Where ePHI flows and where the vendor agreement stops

This illustrative diagram starts with application servers inside the organization network. They connect to PostgreSQL over SSL, which the PostgreSQL documentation says is enabled by setting ssl to on. PostgreSQL writes data to storage the organization encrypts and controls, and its audit logs leave the boundary for the organization's own log store. The Redis cache sits inside the same network, and the dashed line marks where a Redis vendor agreement would apply if Redis holds ePHI. Check whether your Redis deployment holds ePHI at all, and confirm the license and terms with Redis before you rely on it.

Illustrative flow: PostgreSQL inside the boundary, with the Redis vendor agreement marked dashed.

Why the vendor agreement decides the Redis scope first

Start with the vendor agreement, because it sets the boundary of the Redis question before any configuration is reviewed. PostgreSQL is open source software, so no vendor signs a business associate agreement for it. The organization running PostgreSQL carries the HIPAA obligations itself, and its policies, configuration (for example, ssl set to on in postgresql.conf), access controls, logging and retained evidence form the whole case an assessor will examine. Redis is treated as commercial for this comparison, so the first step differs: obtain written confirmation from Redis of whether a BAA is available for the specific product, edition and plan under consideration, and whether that agreement covers the data types the team intends to store.

A BAA answer can narrow the Redis scope. If the organization has classified a Redis deployment as holding only data it has determined is not electronic protected health information, the HIPAA question shrinks and the BAA may stop being the deciding factor. That classification must be documented by the organization, with a data inventory, a named owner who signed off and a review date. It should never be assumed from the application's purpose. In an illustrative case, a cache that stores session tokens, patient identifiers or appointment details can contain ePHI even when the team describes it as only a performance layer. Ask the team to list every key pattern and data type that will reach Redis, and have the privacy or compliance lead approve that list before design work begins.

Licensing is a separate check from the BAA. Redis 8.0 and later can be used under a license of the user's choice among RSALv2, SSPLv1 and AGPLv3, while Redis 7.4.x to 7.8.x remain under RSALv2 or SSPLv1, neither of which is OSI-approved, and Redis 7.2.x and earlier remain under BSD-3-Clause. Record the exact version line you intend to run, then read the current terms on the Redis legal hub and in the Redis Trust Center with counsel. The license terms that apply to your use determine what you may deploy, host and provide to others, so confirm them against the version you will actually install.

HIPAA evidence an assessor asks for from each database

The assessor first asks who signs for the database and what that party has committed to in writing. PostgreSQL is open source under the PostgreSQL License, so no vendor signs a business associate agreement for it, and the organization running it carries the HIPAA obligations. Redis is treated as commercial for this comparison, so the same question goes to its vendor, and the answer depends on the product and deployment you run.

  • PostgreSQL risk analysis. No vendor paperwork exists, so the evidence is your own risk analysis under the administrative safeguards in 45 CFR 164.308, covering the database, its hosts and its backups.
  • PostgreSQL policies. Written, dated policies on access, encryption, logging and change control that name the owner of each control.
  • Redis business associate agreement. A signed agreement for the exact Redis product, edition and deployment model, if the vendor offers one. Request it in writing and file it with the date it was signed.
  • Redis assurance material. Trust Center documents and legal terms you download and file with the Redis version you run. The Redis Trust Center is the starting point.
  • Addressable decisions. For each addressable implementation specification, a documented decision on whether it is reasonable and appropriate, and the equivalent measure you chose if it is not.

Confirm with Redis whether its agreement covers self-hosted software or only its managed service, and ask your own counsel how the HHS position on certification applies to your organization.

Configuring PostgreSQL for HIPAA scope

Eight steps take a PostgreSQL cluster from an unreviewed install to one an assessor can inspect. The order matters: data must be classified before encryption choices make sense, and the risk analysis comes last so it records what was actually configured. Each step ends with a check you can repeat and a record you can hand to the assessor.

  1. Map ePHI to each database

    Gate: any Redis instance holding ePHI waits until its business associate agreement is confirmed with the vendor, using the Redis legal hub as a starting point. PostgreSQL needs no BAA because you run it yourself, so the organization carries the obligations directly. Next, the compliance lead and data owners list every database, table, cache and log sink that holds patient identifiers or health information, including replicas, backups and analytics exports. The output is a data inventory that names the host and database for each ePHI location, and it becomes the scope boundary for every later step.

  2. Confirm the PostgreSQL major version

    Check the version against the support table, because PostgreSQL 14 support ended on November 12, 2026, so a cluster still on 14 is unsupported today. Supported majors are 18 (supported through November 14, 2030), 17 (to November 8, 2029), 16 (to November 9, 2028) and 15 (to November 11, 2027). Pick a supported major, plan the move using the documented upgrade path (dump and restore, pg_upgrade or logical replication), and test it on a copy first. The output is a version decision with its end-of-support date, recorded in the inventory from step one.

  3. Enable SSL and verify connections

    Set ssl to on in postgresql.conf, point ssl_cert_file and ssl_key_file at the certificate and key you manage, and apply the change. The SSL documentation lists the related settings. Use hostssl lines in pg_hba.conf so that only encrypted connections can match those rules, then retire the plain host lines for ePHI databases. Confirm each application, batch job and admin tool connects over TLS by checking the pg_stat_ssl view from a live session. The output is a connection test for every client type and an extract of pg_hba.conf for the assessor.

  4. Enforce SCRAM password hashing everywhere

    Set password_encryption to scram-sha-256 so new passwords are stored as SCRAM verifiers. Existing passwords keep their old hash until each role's password is changed, so reset them and check the hash type in pg_authid for every role. Change password-based lines in pg_hba.conf to scram-sha-256 and remove any trust or md5 entries you cannot justify. Where your architecture allows it, route human admin access through your identity provider, and keep service account secrets in a secrets manager. The output is a role list showing SCRAM hashes and a reviewed pg_hba.conf approved by the DBA.

  5. Encrypt columns and the data partition

    Use pgcrypto for specific columns that hold identifiers or diagnosis data, and write down who holds the keys and how they rotate. Encrypt the data partition at the file system or block level, then document that this layer does not protect data while the file system is mounted. It covers lost or retired disks, and it does nothing against someone with access to a running, mounted system. PostgreSQL's encryption options page does not describe built-in transparent data encryption, so the at-rest controls in this design are the partition and column layers only. The output is a column list, a key custody record and a design note stating what each layer protects.

  6. Configure logging and pgAudit

    Set log_connections and log_disconnections in postgresql.conf, and choose a log_statement level that records the access your audit requirement names without writing ePHI values into the log. Decide whether the pgAudit extension is needed to capture reads and changes against ePHI tables by role. Send logs to a store the database administrators cannot silently edit, and set retention from your audit and records policy before go-live. The output is a logging configuration, a test in which a read of a sample ePHI row appears in the audit trail, and a retention decision signed off by the compliance owner.

  7. Apply and record minor releases

    Subscribe to PostgreSQL release announcements and schedule minor updates, since the project releases minor versions at least once every three months, as set out in the versioning policy. A minor update replaces executables and needs a restart, and it never changes the internal storage format, so it is a separate change from a major upgrade. Apply the update to replicas and standbys as well as the primary, then record the version on each node, the date and the approver. The output is a patch log showing every cluster on a current minor release at each review.

  8. Write decisions into risk analysis and policy

    Record each configuration choice in the risk analysis, marking which Security Rule standards in 45 CFR Part 164 Subpart C are required and which are addressable. For each addressable specification, document whether it is reasonable and appropriate for your environment and, where it is not, the equivalent measure you put in place. Tie the database settings to your access control, audit review, encryption and change management policies, each with a named owner. The output is a risk analysis entry for every ePHI database and a policy set an assessor can trace from requirement to setting to evidence.

What do buyers ask before hiring help with HIPAA database controls?

Can DeployOpen certify PostgreSQL for HIPAA compliance?

No. DeployOpen prepares systems, controls and evidence for a HIPAA assessment, but it does not issue audit reports, attestations or certifications. Independent auditors and certification bodies issue those, and the covered entity or business associate decides how it meets the Security Rule. For PostgreSQL, the work covers the settings that carry electronic protected health information: SSL for client connections, SCRAM password hashing, role and access design, audit logging and the records that show each control operates. Ask the team to state this boundary in the written scope, so that leadership and the assessor both read the engagement as preparation for an assessment.

What drives the cost of HIPAA database controls work?

Scope drives most of the cost. The main factors are how many databases hold electronic protected health information, how much of each one falls under encryption and logging work, how much documentation the assessor will expect, and how many environments (production, staging, backups and disaster recovery) are included. DeployOpen does not publish a price list. A quote follows from the written scope, so ask for it to list each database and environment, each control area and each document delivered. You pay DeployOpen for the agreed work, your own staff pay for their time, and any Redis or other product subscription goes to that vendor. Costs rise with more databases, more environments and more custom integration. They tend to fall when data classification and named owners are already in place.

How long does HIPAA database hardening take to finish?

The duration depends on the written scope, so ask for the timeline in writing before you plan around it. A useful timeline lists the phases, the environments covered, the dates by which you must supply access, classification and owner names, and the review and retest points. Timelines slip most often when access to production or backup systems is delayed, when data classification has not been done, or when the Redis business associate question is still open, because that answer can change the design. Ask also how the plan handles an assessor's document requests and which milestones depend on your change windows. A timeline that does not name those dependencies is hard to hold anyone to.

What does our team need to provide for this engagement?

DeployOpen needs access, data classification, named owners and existing policies before the work can be scheduled. In practice, that means:

  • Access to the PostgreSQL and Redis hosts, their configuration and their backup systems, in your cloud accounts, data centers or air-gapped network, under the access model agreed in the scope.
  • A data classification that says which tables, keys or cache entries hold electronic protected health information.
  • Named owners for each database, for access reviews, for incident response and for the security official role.
  • Current policies and procedures, or a decision about who writes what is missing.
  • Vendor contacts at Redis who can answer the business associate question in writing.

The more of these you have ready at kickoff, the less time the engagement spends waiting on your organization.

Can our team handle HIPAA database controls without a partner?

Yes, if your team already has the skills to configure PostgreSQL's TLS, authentication, roles, logging and backups, and to build the evidence file an assessor will ask for. Much of the work follows documented steps: enable SSL in postgresql.conf, set password hashing to SCRAM, restrict roles, configure logging and keep a record of each setting. Two items need a deliberate decision. PostgreSQL's documentation says data partition encryption does not protect data while the file system is mounted, and column-level encryption with pgcrypto needs its own key handling design. Confirm the Redis license and any business associate terms directly with Redis before relying on it for protected data. A partner adds the most value where the team lacks time or a second reviewer.

Is a business associate agreement part of DeployOpen's engagement?

Confirm it in the written scope before work starts. PostgreSQL is open source software, so no vendor signs a business associate agreement for it, and the organization running PostgreSQL carries the HIPAA obligations. Whether DeployOpen signs a business associate agreement with your organization is a contract question, and the written scope should state the answer along with the data access the engagement involves. Redis is a separate question. Its licensing has changed across versions, so ask Redis directly whether it will sign a business associate agreement for the edition and deployment you plan to use, and what that agreement covers. Have your compliance lead or counsel review both answers in writing before any protected data enters the environment.

What is one-time and what recurs after HIPAA database work?

Fixed-scope work is one-time. Scope, deliverables and timeline are agreed in writing, and the engagement ends when they are delivered. Ongoing support, upgrades and continuous testing are available as retainers, priced from the written scope. Your own staff time recurs as well. PostgreSQL releases minor versions at least once every three months, and applying them means replacing executables and restarting the server. Major versions arrive about once a year, and each is supported for five years after its initial release. Any Redis subscription or license is a separate purchase, so confirm it directly with Redis. Ask for a quote that puts one-time and recurring items on separate lines.

How DeployOpen helps prepare a HIPAA database scope

DeployOpen plans the database scope for PostgreSQL or Redis, then deploys and documents the chosen platform inside your own infrastructure. We plan, implement, harden, back up and document self-hosted open-source platforms, and we prepare the systems, controls and evidence an assessment will review. We do not issue audit reports, attestations or certifications; independent assessors do that.

How we scope

  • The written scope names each database instance, its data classes, and the PostgreSQL or Redis version in use.
  • It records which Redis license your deployment uses, since Redis 8.0 and later offer RSALv2, SSPLv1 or AGPLv3.
  • The scope, deliverables and timeline are agreed in writing before work starts.

How we build

  • We enable SSL connections by setting ssl to on in postgresql.conf, then configure SCRAM password hashing and role-based access.
  • We document the chosen file system or block encryption for data at rest, since PostgreSQL has no built-in transparent encryption.
  • For Redis, we confirm each control against the edition and license in scope before building it.

How we hand over

  • Handover includes the configuration, the access and logging settings, and the evidence list agreed in the scope.
  • Documentation maps each addressable implementation specification to the decision taken and any equivalent measure.
  • Upgrade and minor-release steps are written down so your team can repeat them.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers, scoped in writing.
  • Upgrade planning tracks PostgreSQL support windows, including PostgreSQL 15 end of support on November 11, 2027.
  • Security testing and retests can check the database access paths before an assessment starts.

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.