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 matrixPhysical 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 optionsOrganizational 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 textHow 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.
| Control | PostgreSQL | Redis |
|---|---|---|
| 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 transit | Set 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 rest | No 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 storage | SCRAM 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 logging | Logging 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 hosting | You 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 reports | The 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 lines | 18 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 status | 14 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. |
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.
The assessor compares the configuration against the access and encryption decisions in your risk analysis. For PostgreSQL, the documented options cover SSL, SCRAM password hashing, pgcrypto for column-level encryption and encryption of the data partition at the file system or block level. The documentation also states that the server has no built-in transparent data encryption and that partition encryption does not protect data while the file system is mounted, so those limits belong in your own write-up.
- SSL setting. Evidence that
sslis set tooninpostgresql.conf, withhostsslentries inpg_hba.conffor remote clients. The PostgreSQL SSL documentation explains the settings. - Password hashing. The
password_encryptionvalue and the authentication method inpg_hba.conf, showing that SCRAM is used for client logins. - Encryption choices. Which columns use pgcrypto and how keys are handled, which volume encryption protects the data directory, and the mounted-state limit recorded beside it. The PostgreSQL encryption options page lists the methods.
- Role and access lists. An export of roles, memberships and table grants, reviewed against the people who need access to electronic protected health information.
- Redis settings. The TLS and access control configuration for your Redis version, exported and reviewed. Confirm the exact key names and defaults in the documentation for that release.
Capture each setting from the running server, not only from the file, and keep the output with the date you captured it.
Assessors ask for evidence that access to protected health information is recorded and that someone reviews the record. With PostgreSQL, you choose what to log, where it goes, how long it is kept and how often it is reviewed. Redis documents audit events for Redis Software, but what you can produce depends on the edition and deployment, so confirm that before you promise a trail.
- PostgreSQL logging. The logging settings you chose, such as connection and statement logging and the destination of the log files, with sample entries. The PostgreSQL logging reference lists the options.
- pgAudit. If you use it, the installed version, its configuration, and the classes of statements it records. pgAudit is a separate extension that you install and maintain, and its repository documents the settings.
- Redis audit events. If your deployment produces them, the event types and where they are sent, as documented for Redis Software. Confirm whether Redis Open Source emits the same events.
- Retention. The period you set for each log source, written into policy, with the storage location and the roles allowed to change it.
- Review cadence. Dated records showing who reviewed the logs, how often, what they checked and what they escalated.
Before the assessment, test that one sample access to protected data produces an entry in each trail you plan to hand over.
The assessor checks that each database runs on a supported line, that updates are applied on a schedule, and that major upgrades are planned and reversible. PostgreSQL publishes support windows for each major version and releases minor versions at least every three months. Minor releases do not change the storage format, so applying one means replacing executables and restarting. Redis license terms vary by release line, so the version you run also decides which license you cite.
- Supported line. The major version in use and its end-of-support date. PostgreSQL 14 support ended on November 12, 2026, so a 14 cluster needs a dated upgrade plan, while PostgreSQL 18 is supported until November 14, 2030.
- Applied minor releases. A record of each minor update with its date, the version before and after, and the approver. The PostgreSQL versioning policy sets the release cadence you should compare against.
- Major upgrade plan. A dated plan naming the method, such as pg_upgrade, a dump and restore, or logical replication, and the test environment where it was rehearsed.
- Rollback record. The rollback steps you tested for each upgrade, with the result and the date.
- Redis version and license. The Redis line in use and its license option. Redis 8.0 and later offer a choice among RSALv2, SSPLv1 and AGPLv3, while 7.4.x to 7.8.x are under RSALv2 or SSPLv1, and 7.2.x and earlier are under BSD-3-Clause.
Confirm the Redis license option you rely on in writing, because the terms differ across these lines.
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.
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.
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.
Enable SSL and verify connections
Set
ssltooninpostgresql.conf, pointssl_cert_fileandssl_key_fileat the certificate and key you manage, and apply the change. The SSL documentation lists the related settings. Usehostssllines inpg_hba.confso that only encrypted connections can match those rules, then retire the plainhostlines for ePHI databases. Confirm each application, batch job and admin tool connects over TLS by checking thepg_stat_sslview from a live session. The output is a connection test for every client type and an extract ofpg_hba.conffor the assessor.Enforce SCRAM password hashing everywhere
Set
password_encryptiontoscram-sha-256so 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 inpg_authidfor every role. Change password-based lines inpg_hba.conftoscram-sha-256and remove anytrustormd5entries 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 reviewedpg_hba.confapproved by the DBA.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.
Configure logging and pgAudit
Set
log_connectionsandlog_disconnectionsinpostgresql.conf, and choose alog_statementlevel 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.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.
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
ssltooninpostgresql.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
- 45 CFR Part 164 Subpart C, Security Standards for the Protection of Electronic Protected Health Information, eCFR ↗
- Appendix A to Subpart C of Part 164, Security Standards: Matrix, eCFR ↗
- HHS FAQ 2003: Are we required to certify our organization's compliance with the standards? ↗
- PostgreSQL: Encryption options ↗
- PostgreSQL: Error reporting and logging ↗
- Redis Trust Center ↗

