PostgreSQL vs Redis for PCI DSS

For PCI DSS v4.0.1, PostgreSQL fits a database you run and evidence inside cardholder scope, while Redis needs its own scope decision and vendor proof first. No Attestation of Compliance is confirmed for either product, so your own controls and evidence decide the outcome.

On this page

PostgreSQL vs Redis for PCI DSS: which one fits your cardholder scope

The decision turns on each deployment's scope. PostgreSQL usually lands inside the cardholder data environment when it stores primary account numbers. Redis usually lands there only when it holds cardholder data, session tokens tied to payment flows, or anything else that could affect that environment. PCI DSS v4.0.1 applies to any component that stores, processes or transmits cardholder data or sensitive authentication data, or could affect the security of the cardholder data environment, so the test is what each deployment actually holds and touches. Map the data flows for each product, then list the controls you can evidence to the assessor for each one. This page covers only the PCI DSS angle. The general PostgreSQL vs Redis comparison of licenses, architecture and operating effort has its own page, and it is not repeated here.

Neither product gives you an assessor-ready shortcut for a self-hosted deployment. The PostgreSQL project is a software project, not a service provider, and it holds no Attestation of Compliance, so your organization carries the controls: TLS for connections, role-based access, logging and the pgAudit extension, each configured and evidenced by your team. The Redis Trust Center shows a PCI DSS badge, but it has no linked report or stated scope, so no Attestation of Compliance is confirmed. Ask Redis in writing which product, version and deployment model the badge covers before you cite it, and treat a badge on a managed service as a separate question from the instance you run yourself.

Run the scope check before you settle the architecture. List every host, container, service account and client that connects to each database, and flag any Redis instance that caches or stores card data, session tokens or authentication material. For each in-scope component, confirm which PCI DSS v4.0.1 requirements your team already evidences, such as access reviews, log review and encryption of stored data, and record the gaps as work items with named owners. Expect the assessor to ask for configuration exports, role and permission lists, log samples and the pgAudit settings for PostgreSQL, plus equivalent evidence for Redis. Raise any doubtful component with the assessor early, because a component found in scope late usually means more evidence work at the end of the assessment.

How PostgreSQL and Redis meet PCI DSS as documented

This table sets out how PostgreSQL and Redis are documented against the areas a PCI DSS assessment usually examines for a database in the cardholder data environment. Read each row as the vendor's documented position, then check the confirmation notes against your own version, deployment and hosting. The main takeaway: PostgreSQL's documentation covers transit encryption, access and logging directly, while Redis leaves more to confirm, and neither vendor has a confirmed Attestation covering your environment.

Requirement areaPostgreSQL as documentedRedis as documented
Encryption in transitTLS for client connections per the SSL documentation and encryption options page. Confirm cipher settings and certificate handling in your build.No TLS settings confirmed here. Confirm them for your Redis version and deployment, in Redis Cloud or Redis Software documentation.
Encryption at restThe encryption options page describes the available options. The organization chooses the method and must document it. Confirm key management and backup encryption.Confirm persistence and at-rest options for your version and deployment. Persistence files and backups need their own encryption check.
Access controlRole-based access through database roles and privileges. Confirm how roles map to your identity provider and which accounts hold superuser rights.Confirm authentication and access settings in the Redis Cloud or Redis Software security documentation for your deployment. Check user, role and default account handling.
Audit loggingError reporting and logging settings, plus pgAudit for detailed session and object auditing. Confirm log retention and protection against tampering.Redis Software audit events page documents event records. Confirm whether open source or cloud deployments produce comparable records.
Vendor attestationThe PostgreSQL project is not a service provider and has no PCI DSS Attestation of Compliance. Your own assessment must cover it.PCI DSS badge on the Trust Center, no linked report or stated scope, so no Attestation confirmed. Ask Redis for the report and scope.
Version currencySupported majors are 18, 17, 16 and 15. Version 14 was supported only to November 12, 2026, a date that has now passed.8.0.0 published May 2, 2025. Current line 8.10.2, a security release dated September 17, 2026. 7.2.x and earlier are BSD-3-Clause. Confirm your build's license.
Data locationSelf-hosted software runs wherever you place it, so residency follows your infrastructure. Confirm backup and replica locations too.Self-hosted software runs where you place it. For hosted Redis, confirm region and provider terms, including backups and support access.

Who covers what for each side

Each side of this decision splits PCI DSS database work into what the project or vendor supplies and what your team must configure and evidence. For self-hosted PostgreSQL and Redis Open Source, most of that work sits with your operators. A hosted or Redis Software deployment moves some controls to the vendor, but only within a scope you confirm in writing.

The PostgreSQL project

The PostgreSQL project publishes the source code and documentation under the PostgreSQL License, a permissive license similar to the BSD and MIT licenses. The project is not a service provider and holds no PCI DSS Attestation of Compliance, so nothing in its code or documentation can serve as your compliance evidence. Use its documentation to justify your settings, then have your legal team confirm the license terms that apply to any builds you redistribute. Your assessor will look for evidence of your own configuration, not a vendor report.

PostgreSQL licence

The self-hosted PostgreSQL operator

This is your team, and it carries most of the PCI DSS work. You enforce TLS for client connections, design roles so cardholder tables are reachable only by the services that need them, and ship logs to a store your operators cannot edit, with pgAudit enabled to record the detail. You also patch within supported major versions. PostgreSQL 14 reached end of support on November 12, 2026, so any cluster still on it is outside the support policy. Keep backups with restore tests and a written scope document for the cardholder data environment.

pgAudit repository

Self-hosted Redis Open Source

From Redis 8.0, you choose the license for Redis Open Source among RSALv2, SSPLv1 and AGPLv3, and the license you pick determines what your legal team must accept. Redis 7.4.x to 7.8.x carry the dual RSALv2 or SSPLv1 license, neither of which is OSI-approved, while 7.2.x and earlier remain under BSD-3-Clause. Your team owns configuration, patching to the 8.10.2 line (which included a security release on September 17, 2026), and evidence of the settings in force. Keep configuration files and version records alongside your change tickets.

Redis legal hub

Hosted or Redis Software deployments

With Redis Cloud or Redis Software, the vendor operates parts of the platform and documents its controls in the Redis Cloud security pages, with audit events covered in the Redis Software documentation. The Trust Center shows a PCI DSS badge, but it links no report and states no scope, so no Attestation of Compliance is confirmed here. Ask in writing which services, regions and components any report covers. Then map your own tenant settings, access reviews and audit exports to that scope.

Redis Trust Center

Whether Redis belongs inside the cardholder data environment

A Redis instance that holds only tokens, session identifiers or other non-account values may sit outside the cardholder data environment, but that conclusion has to be proven for your environment and accepted by your assessor. Segmentation that keeps the instance out must be confirmed and tested, because a flat network places every reachable host into the scope discussion. Scope also reaches beyond storage. PCI DSS applies to any component that could affect the security of the cardholder data environment, so a Redis instance that supplies session state or authorization decisions to the payment flow needs review even when it never sees a card number. Repeat the segmentation test after network changes and keep the results for the assessor.

The failure mode to watch is caching card numbers for speed. Teams sometimes store a primary account number in Redis to skip a lookup, or let a cache fill with payment responses that include account data. An in-memory store is still a storage location. If persistence is enabled, the data reaches disk through snapshots or the append-only file, and it can be copied into backups and replicas. An assessor will treat that as stored account data and ask how it is protected and when it is removed. Check the settings that decide this exposure: whether persistence is on, what maxmemory-policy does when memory fills, and whether any application log or debug dump writes the values out. Keeping card numbers out of the cache entirely is an architecture decision, so settle it before the first assessment.

Document the following so the assessor can follow each path. Data flows: which services write to Redis, which read from it, and whether any path reaches the cardholder data environment. Key patterns: for each pattern, what the key holds and whether the value could ever contain account data. Retention and eviction: the time-to-live set per key pattern, the maxmemory-policy value and the persistence settings. Access: who can reach the instance, over which network paths, which ACL users exist, and how administrative and monitoring access is logged. Record the Redis version and the license you rely on, since Redis 8.0 and later offer RSALv2, SSPLv1 or AGPLv3 as a choice. If any part of the service is run by a vendor, the Redis Trust Center shows a PCI DSS badge without a linked report or stated scope, so request the Attestation of Compliance and its scope in writing before you rely on it.

How cardholder data and logs move through the database tier

This illustrative diagram starts at the application, which connects to the PostgreSQL primary over TLS and passes role checks before any cardholder data is read or written. The dashed arrow to Redis marks the only path into the cache, and it is limited to non-cardholder data, so the cache should stay outside cardholder data handling. PostgreSQL and pgAudit logs leave the database tier through a log shipper and land in a central log store that operators cannot edit. Check that the boundary matches your scoping, that TLS and role settings are enforced in your own configuration, and that the log store's write controls are documented and tested.

Illustrative data flow for the database tier, with no real addresses.

PostgreSQL vs Redis for PCI DSS: the evidence an assessor asks for

The PostgreSQL project is not a service provider and holds no Attestation of Compliance, so each control needs proof from your own cluster. Assessors expect exports from the running system with timestamps.

  • TLS configuration and certificates: the ssl settings in postgresql.conf, the certificate chain and expiry dates, and the hostssl rules in pg_hba.conf that require encrypted connections. See Secure TCP/IP connections with SSL.
  • Role and privilege lists: an export from pg_roles and the grants on cardholder tables, with an owner and a last review date for each role.
  • Logging and pgAudit: the log_connections and logging_collector settings, the pgaudit.log configuration, and a sample of production log lines showing a privileged action being recorded.
  • Version and patch records: the running major and minor version checked against the supported list. Version 14 had a listed end date of November 12, 2026, so any cluster still on 14 needs a dated upgrade plan.
  • Backup and restore tests: dated restore tests with the result and the approver. A backup job log shows that a copy was written, but only a restore test shows it can be recovered.

The gap to close is the pgAudit sample from the production cluster, which only you can capture. Confirm that each export came from the live server and that the version check covered every node.

Configuring PostgreSQL for PCI DSS cardholder scope, step by step

This sequence takes a PostgreSQL estate from an undefined scope to configured, tested and evidenced controls. Each step names what to set, who confirms it and the record it produces. The PostgreSQL project holds no PCI DSS Attestation of Compliance, so your team configures, operates and evidences these controls for your own assessment.

  1. Confirm scope and inventory each database

    Start by listing every PostgreSQL cluster, replica, backup target and administrative workstation that stores, processes or transmits cardholder data, or could affect the cardholder data environment. Record the owner, the data classes held and the network paths in and out. Done means the assessment owner has signed off the inventory, and any database left out of scope has a written reason. Ask your assessor to confirm the boundary before you change any configuration.

  2. Choose a supported major version

    Pick a major version whose end-of-life date falls after your assessment window closes. The PostgreSQL versioning policy lists version 18 to November 14, 2030, version 17 to November 8, 2029, version 16 to November 9, 2028 and version 15 to November 11, 2027. Version 14 was supported to November 12, 2026, so that date has already passed and it should not anchor new cardholder scope. Confirm the assessment window with your assessor, then record the chosen version and its end date in the inventory.

  3. Enable TLS and reject plaintext connections

    Set ssl to on in postgresql.conf and point ssl_cert_file and ssl_key_file at certificates issued by your internal or public certificate authority. In pg_hba.conf, allow hostssl entries for cardholder-scope databases and add a reject rule for hostnossl so unencrypted attempts fail. Done means a test client with sslmode set to disable is refused, and a client using sslmode verify-full connects. Keep the certificate, key file permissions and the configuration change history in your evidence set.

  4. Define least-privilege roles and record holders

    Create group roles for applications, read-only reporting, backup and administration, and grant each one only the object privileges it needs. Revoke default privileges granted to PUBLIC on cardholder schemas, and keep applications off the postgres superuser. Record every person and service account that holds a role, the approver and the review date in an access register. Done means a query of pg_roles and role memberships matches the register, and every account has a named owner.

  5. Turn on logging and pgAudit with protected storage

    Set logging_collector to on and enable log_connections and log_disconnections. Load pgAudit through shared_preload_libraries, then configure pgaudit.log to capture the statement classes your assessor expects, such as DDL, role changes and reads of cardholder tables. Forward logs to a store that database operators cannot edit or delete, such as a separate account with write-once retention. Done means a test read of a cardholder table by a test role appears in that remote store.

  6. Apply minor releases and plan major upgrades

    Apply minor releases within your chosen major line, since PostgreSQL ships minor releases at least once every three months. Minor releases never change the storage format, so the work is replacing executables and restarting. Plan major upgrades with a documented method: pg_dumpall with restore, pg_upgrade or logical replication. Test each upgrade on a non-production copy of the cluster and keep the test results and rollback plan in the change record. Done means the copy starts, passes application tests and matches row counts on cardholder tables.

  7. Retain dated evidence for each control

    Build a dated evidence folder for each control: the inventory, the version and end-of-life record, TLS and access rule files with their change history, the role register, logging configuration, sample exported log entries and upgrade test records. Date every item and store it where operators cannot silently overwrite it. Done means an assessor can trace one control from its requirement to a configuration file, a live check and a log entry without asking the team to reconstruct it.

  8. Confirm Redis authentication, TLS and audit settings

    Complete this step only if a Redis deployment stores, processes or transmits cardholder data, or shares an environment that could affect it. Confirm authentication, TLS and audit settings for your deployment type, since Redis Cloud, Redis Software and self-hosted Redis Open Source expose different controls. The Redis Trust Center shows a PCI DSS badge without a linked report or stated scope, so request the vendor's scope statement in writing before relying on it. Done means you hold that written statement and a configuration check for each setting.

PostgreSQL vs Redis for PCI DSS: what buyers ask before hiring help

Does PostgreSQL have a PCI DSS attestation?

No. The PostgreSQL project is not a service provider and holds no PCI DSS Attestation of Compliance, so there is nothing to inherit from the project itself. Your assessor evaluates your deployment: the hosts, network paths, accounts, backups and logs that your organization runs. PostgreSQL supplies the mechanisms you use to meet your own controls, including TLS for client connections, role-based access, server logging and the pgAudit extension for detailed audit records. Those settings are yours to configure, document and evidence. Confirm with your assessor which PostgreSQL versions, settings and audit outputs they will accept for your scope, and keep configuration files, role definitions and log samples ready for review.

Can I rely on Redis's PCI DSS badge for my audit?

Not on its own. The Redis Trust Center shows a PCI DSS badge, but no linked report or stated scope appears alongside it, so no Attestation of Compliance is confirmed from that page. Ask Redis in writing for the current Attestation of Compliance, the period it covers, the exact products and deployment models in scope, and whether self-managed Redis Open Source is included at all. A badge tied to a hosted service may not describe the self-hosted instance you run. Give your assessor the written response alongside your own configuration evidence, and check the scope statement against the Redis version you actually deploy.

What makes a PCI DSS database assessment take longer?

Scope size decides most of the effort, and five factors drive it:

  • Which components are in scope, including every database host, replica, backup target and administrative workstation that touches cardholder data.
  • What logging and access tooling already exists, and whether its records can be shown to cover each in-scope component.
  • Version currency. PostgreSQL 14 reached end of support on November 12, 2026 according to the PostgreSQL versioning policy, and an instance on an unsupported line usually needs a documented upgrade plan or compensating control before assessment.
  • Whether Redis is segmented out of the cardholder data environment or runs beside it, which decides how much of it the assessor reviews.
  • The assessor's sampling, which the assessor sets and which depends on how consistently your controls run across hosts.

Time and cost follow from these factors, so ask your assessor which of them they expect to test in depth.

Can our own team do PCI DSS database hardening without a partner?

Yes, if your team can configure TLS, role-based access and logging, run restore tests and write scope documents. Those are the database-side areas an assessor will check, and the team must be able to explain each setting and show its evidence. A partner adds the most value where the team lacks one of these skills or lacks the time to produce the documents. DeployOpen plans, implements, hardens and documents self-hosted platforms inside your own infrastructure and prepares controls and evidence for assessments, but it does not issue reports, attestations or certifications. Independent assessors make that determination. Ask your assessor early which evidence they expect, because their expectations shape what the team builds first.

What should a quote for PCI DSS database work include?

A quote should follow from a written scope, because DeployOpen does not publish a price list. Ask that the scope list each component (for example, PostgreSQL, Redis, the backup system and the log pipeline), each environment (production, staging and disaster recovery), each host or cluster by role, the evidence deliverables (configuration exports, access reviews, log samples, restore test records, and scope and data flow documents) and the retest after fixes. Ask also which costs are one-time, such as design, hardening, documentation and the first retest, and which recur, such as upgrades, monitoring and continuing testing under a retainer. Engagements are normally fixed-scope, with scope, deliverables and timelines agreed in writing before work starts. Put the same questions to every vendor so the quotes can be compared line by line.

Does the Redis 8 license choice change PCI DSS obligations?

License terms are a question for your counsel to review. Redis 8.0 and later can be used under RSALv2, SSPLv1 or AGPLv3, at your choice, and counsel should read those terms against your intended use, as set out on the Redis legal hub. The PCI DSS controls apply to the deployment either way: the hosts, access, encryption, logging and retention you run must meet the requirements whichever license you select. The version you run also matters, because Redis 7.4.x to 7.8.x remain under the dual RSALv2 or SSPLv1 license and Redis 7.2.x and earlier remain under BSD-3-Clause. Record the license chosen and the version deployed in your scope documents so the assessor sees both.

How DeployOpen helps prepare the database scope and evidence

DeployOpen is a Chainscore Labs company that plans, implements, hardens, documents and supports self-hosted open-source platforms inside your own infrastructure. For PostgreSQL vs Redis for PCI DSS, we help you decide which data stores sit in the cardholder data environment, then prepare the configuration, logging and documentation evidence your assessor will ask to see. We do not issue attestations or certifications; independent auditors and certification bodies do.

How we scope

  • Written scope that names each database, cache and host in the cardholder data environment and its connected systems.
  • Data-flow mapping that shows whether PostgreSQL, Redis or both store, process or transmit cardholder data or sensitive authentication data.
  • Fixed-scope engagement agreed in writing before work starts, with ongoing support available as a retainer.

How we build

  • TLS on PostgreSQL client connections, with certificate handling documented for the assessor.
  • Role-based access, pgAudit configuration and PostgreSQL logging set up to record the access events your controls depend on.
  • Redis access controls, transit encryption and admin settings reviewed for the edition in use, confirmed against vendor documentation.

How we hand over

  • Evidence pack mapping each database control to its configuration file, log source and owner, for your assessor's review.
  • Written record of the PostgreSQL version and support dates, and the Redis license and edition, as of handover.
  • Open items list naming what your team must still do, including asking Redis for its PCI DSS report and stated scope.

How we support

  • Upgrade planning for PostgreSQL major versions, since version 14 support ended on November 12, 2026.
  • Retesting after configuration changes to pgAudit, TLS or Redis settings, on a retainer if you want continuous testing.
  • Ongoing support for evidence refresh before each assessment cycle, so documentation matches the running systems.

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.