Encryption in transit and at rest for Hyperswitch under PCI DSS

A self-hosted Hyperswitch needs TLS 1.2 or higher, encrypted databases, backups and certificate rotation to support PCI DSS. This page maps each control to platform capabilities, configuration and evidence, and to the gaps you still own.

On this page

Encryption in transit and at rest for Hyperswitch under PCI DSS: what the platform covers

When you run Hyperswitch in your own infrastructure, the encryption controls that protect cardholder data are yours to build, configure and evidence. A QSA or your acquirer will ask how data is protected in transit and at rest, and the answer has to point to your own systems. The Hyperswitch self-hosting security guidance gives you a concrete baseline: TLS 1.2 or higher for all data in transit, encryption at rest for the databases, encryption of backups, snapshots and object storage, and automatic certificate issuance and rotation. Treat that list as the set of controls to design and verify, not as a finished compliance state.

Be clear about who carries the obligation. In the self-hosted model, PCI DSS compliance, scoping and the assessment remain the merchant's responsibility. Juspay publishes the software and its guidance, but it does not run your clusters, hold your keys, or validate your environment. Before you write any encryption control into a scope document, confirm each item against your own topology: which hops carry cardholder data (client to load balancer, router to vault, router to processors, Scheduler to PostgreSQL and Redis), where each TLS certificate terminates, and which storage locations hold data that the guide's at-rest recommendation covers.

Start with an inventory and a gap check that a QSA can follow. List every database, replica, cache, backup target and object store in the stack, record how each is encrypted and who holds the keys, and record how certificates are issued and renewed. Where a control is not in place, decide whether to fix it, redesign the data path, or document a justified alternative. Your assessor will expect the configuration and the evidence of it, such as configuration exports, certificate inventories and rotation logs, so plan to collect those while the environment is being built. Check the current PCI DSS version and requirement wording against the PCI Data Security Standard page with your QSA before you finalize the design.

Which PCI DSS requirements the encryption controls map to

This table maps the PCI DSS v4.0.1 requirement areas that cover transmission and storage of cardholder data to the Hyperswitch control, the configuration to set and the party who owns it. Read each row as a starting point for your QSA or acquirer, since they decide how each requirement applies to your environment. The main takeaway is that the encryption settings are only part of the evidence, and the key, certificate and backup processes behind them are usually the parts an assessor examines most closely.

Requirement areaHyperswitch control and configurationOwner
Protecting stored account data (encryption of stored PAN)Vault card data in the Hyperswitch card vault and render stored PAN unreadable with strong cryptography; keep the encryption service keys outside the databaseMerchant (in-house PCI model)
Cryptographic key managementDocument key generation, storage, custodians and rotation for the vault and encryption service keysMerchant, with key custodians
Protecting cardholder data in transit over open, public networksEnforce TLS 1.2 or higher on every external endpoint, including the router, Control Center and webhook receiversMerchant (infrastructure and ingress)
Protecting data in transit inside the environmentEncrypt service-to-service traffic between router, scheduler, vault and encryption service, for example through a service mesh with mutual TLSMerchant platform team
Certificates used for encryptionAutomate certificate issuance and rotation, keep private keys in controlled stores, and track expiry for every endpointMerchant platform and security teams
Encryption of backups, snapshots and object storageEnable encryption on PostgreSQL backups, volume snapshots and object storage holding vault or log data, and restrict access to the decryption keysMerchant infrastructure team
Database encryption and access to stored dataEnable database encryption at rest for PostgreSQL primary and replica nodes, and limit who can read ciphertext or decrypt itMerchant database owner
Evidence for the assessorKeep configuration baselines, certificate inventories, key records and backup restore tests, with dates and ownersMerchant, reviewed by QSA or acquirer

How encryption in transit and at rest protects stored card data

Card data moves through a self-hosted Hyperswitch stack in two states, and both need encryption. In transit, cardholder data and sensitive authentication data travel between the client SDK or checkout, the Router, the card vault, the encryption service, PostgreSQL, Redis and each external processor. At rest, the same data can persist in PostgreSQL, in backups, in snapshots and in object storage. The Hyperswitch self-hosting security guide recommends TLS 1.2 or higher for all data in transit, encryption of database storage, and encryption of backups, snapshots and object storage. Start by drawing a data flow diagram that labels every hop and every store, then check each one against that list. Confirm the TLS version your load balancers, ingress controllers and processor connections actually negotiate, because a single legacy hop can fail an assessment.

The card vault is the storage location to scope first. The Hyperswitch card vault (locker) is a separate Rust service in its own repository, and it holds the stored primary account number. Every system that can reach the vault's encrypted data, or the keys that protect it, falls into the cardholder data environment, so the vault's network path, its database, its backups and the encryption service that manages its keys all need to be inventoried together. Decide early whether the vault's storage stays in your own infrastructure or moves to an external vault provider, because that choice determines how much of this encryption work you own. The Hyperswitch docs state that in the self-hosted, in-house PCI model the merchant is fully responsible for PCI DSS certification and data handling.

PCI DSS v4.0.1 is the only active version of the standard, following the retirement of v4.0 on 31 December 2024, so assessments should be planned against it. The standard does not name products, protocols or cipher suites for these controls. It sets outcomes that you must meet and lets you show how, so the Hyperswitch recommendations are a starting point rather than proof of compliance. Ask your Qualified Security Assessor or acquirer which evidence they expect for each hop, such as configuration exports, certificate inventories and encryption settings for each database and backup target. Also confirm with your assessor whether a customized approach is appropriate for any control you meet in a different way, since that route needs its own documented evidence.

Where encryption applies in a self-hosted Hyperswitch stack

The diagram starts with the customer's browser or SDK, which sends payment data to the TLS ingress over TLS 1.2 or higher. Inside the cardholder data environment, the Router passes card data to the card vault, which calls the encryption service for key handling. The Router writes payment records to PostgreSQL primary, which replicates to a replica, and uses Redis for caching and the scheduler queue. Backup storage holds snapshots and backups that need encryption at rest. Check every arrow that crosses the boundary, including the outbound call to external processors, and confirm each store's encryption setting in your own environment.

Hops that carry TLS, stores that need encryption at rest, and the cardholder data environment boundary.

Five encryption controls to close before an assessment

A production Hyperswitch stack carries cardholder data across several paths and stores it in several places. Assessors look at each path and each store separately, so the controls below need to be designed, configured and evidenced one by one.

TLS 1.2 or higher on every path

Every external connection to the router, Control Center and client SDK endpoints, and every internal connection between components, should negotiate TLS 1.2 or higher. The Hyperswitch self-hosting security guide recommends this for all data in transit. Check the ingress, load balancer and each service listener, not only the public hostname, and confirm that older protocol versions and weak cipher suites are disabled on each one. Include outbound calls to processors and webhook receivers in the review.

Security guide

Service-to-service encryption

Traffic between the router, scheduler, card vault, encryption service, Redis and PostgreSQL crosses the cluster network, where it can be read by anyone with access to that network. A service mesh with mutual TLS, or an equivalent certificate-based setup, encrypts and authenticates these internal calls. Confirm which connections the mesh covers, whether the vault and encryption service are inside it, and how workloads outside the mesh are handled.

Encrypted PostgreSQL and Redis storage

PostgreSQL holds payment records and the Redis instances hold cache entries and the scheduler queue. Both need encryption at rest, which is usually provided by volume or disk encryption in the cloud or on the hypervisor, or by database-level options where your platform offers them. Ask whether replicas and any point-in-time recovery archives are encrypted too, since a replica on unencrypted storage is a common gap.

Encrypted backups and snapshots

Database dumps, volume snapshots and object storage buckets that receive backups are copies of the same data and fall under the same assessment. Confirm that each backup target encrypts data at rest, that keys used for backups are separated from the production keys, and that restore tests have been run on encrypted copies. Record who can read or restore a backup, because access to a backup can expose card data even when production access is locked down.

Automatic certificate issuance and rotation

Certificates that expire or are renewed by hand are a common cause of outages and of weak fallback configurations. The self-hosting security guide recommends automatic issuance and rotation. Check which certificate authority issues each certificate, how renewal is triggered, what happens when renewal fails, and whether an alert fires before expiry. Keep an inventory of every certificate, including internal ones used by the mesh.

How the encryption setup differs by cloud and on-premises environment

The Hyperswitch self-hosting documentation includes Helm guides for AWS, GCP and Azure, and each cloud brings its own encryption services. The cloud provider typically supplies disk and volume encryption, managed database encryption at rest, encrypted object storage for backups and snapshots, and a managed key service that can hold the keys used by those services. TLS termination may sit on a managed load balancer or an ingress controller that you operate. The provider's shared responsibility model decides what the provider operates and what you configure, so the split is not the same across the three clouds.

  • Managed database encryption: Confirm whether the managed PostgreSQL service encrypts storage by default, which key it uses, and whether you can supply a customer-managed key.
  • Backup and snapshot encryption: Check that snapshots, backup vaults and object storage buckets holding Hyperswitch data are encrypted with keys you control and that cross-region copies inherit that protection.
  • TLS at the load balancer: Confirm the minimum TLS version the managed load balancer will negotiate and whether it can be set to TLS 1.2 or higher.
  • Certificate issuance: Determine whether the cloud certificate manager or an in-cluster issuer handles renewal, and who holds the private keys.
  • Key ownership: Record which keys the provider holds, which keys the merchant holds, and who can administer them.

Confirm each of these settings in your own account, because defaults change between provider services and between Helm chart versions.

Configuration sequence for encryption under PCI DSS

This sequence takes a self-hosted Hyperswitch stack from an unmapped set of data flows to a documented encryption baseline covering transport, databases, backups and certificates. Each step produces an artifact your assessor or auditor can review.

  1. Inventory data flows and stores

    The platform or security lead, with the Hyperswitch service owners, lists every path that carries or holds cardholder data or sensitive data: client-to-router traffic, router-to-vault calls, router-to-processor connections, the PostgreSQL primary and replica, Redis, the scheduler queue, object storage, logs, backups and snapshots. Mark each as in scope or out of scope for your PCI DSS assessment, and note which component owns each store. The step is done when the inventory is signed off and every flow has a named owner, because later encryption settings are only as complete as this list.

  2. Set TLS policy and minimum version

    The network or platform team defines one TLS policy for every ingress, internal service call and outbound connection to a processor, and sets TLS 1.2 as the floor, as the Hyperswitch security guidance recommends for all data in transit. Confirm with each processor and each external vault or fraud provider that it accepts TLS 1.2 or higher, and disable older protocol versions and weak cipher suites at the load balancer, ingress controller and service endpoints. The step closes when a scan of each endpoint shows only the approved protocol versions and cipher suites, and the policy is stored in version control.

  3. Enable encryption at rest for databases

    The database administrator turns on encryption at rest for the PostgreSQL primary, the replica, and any storage backing Redis or the scheduler queue, using the mechanism your platform supports, such as encrypted volumes or managed database encryption. Confirm which keys protect those volumes and who can administer them, and make sure the key management service or external key store is in the same inventory as the rest of the stack. The step is done when the storage configuration shows encryption enabled on every data volume and the key ownership is documented.

  4. Encrypt backups, snapshots and object storage

    The operations team applies the same encryption standard to backup jobs, volume snapshots and any object storage bucket that receives Hyperswitch data, including logs or exports that may contain personal data. Confirm that backup encryption keys are separate from the keys used for live data where your architecture allows, and that restore tests use the encrypted copies. The step is done when a sample backup and a sample snapshot both show encryption enabled, and a restore to a test environment succeeds with access limited to named roles.

  5. Set up certificate issuance and rotation

    The platform team configures automatic certificate issuance and renewal for every public and internal TLS endpoint, using an internal certificate authority or a public issuer that your environment supports. Define how certificates are reloaded by the router, the Control Center and the scheduler without downtime, and record who receives expiry alerts. Confirm the renewal path works before the first certificate expires by testing a forced rotation in a non-production environment. The step is done when rotation has been exercised once and alerts are routed to an owned queue.

  6. Verify and record the encryption results

    The security or compliance lead runs an endpoint TLS scan, checks database and backup encryption settings against the inventory, and confirms that no cardholder data appears unencrypted in logs or exports. Record each result against the inventory line it covers, with the date, the tool used, the person who reviewed it and any exception with its compensating or planned fix. Confirm with your QSA or acquirer which evidence they expect, since assessors determine the form of acceptable evidence. The step is done when every inventory item has a recorded result and each open exception has an owner.

What the platform does not cover for encryption

Hyperswitch and its documentation give you the encryption building blocks, but the merchant still decides how keys are governed, how every hop is verified and how the PCI DSS scope is drawn. The cards below list the gaps that remain with your team, and the checks that show whether each one is closed.

Key custody and rotation policy

Hyperswitch does not decide who holds encryption keys, how often they rotate or who approves a rotation. Your team must name key custodians, document where key material lives and define rotation triggers such as staff changes or suspected exposure. Check that rotation has been exercised end to end, including re-encryption of stored data, and that the evidence of each rotation is retained for the assessor.

PCI DSS scope decisions

Deciding which systems store, process or transmit cardholder data, or could affect that environment, is a merchant decision that no platform can make for you. Map the Router, Scheduler, Redis, PostgreSQL, backups and logs against that test. Confirm the scope with your QSA or acquirer before you finalize the network diagram, because a component left out of scope that touches card data will surface later.

TLS validation on every hop

The security guide sets TLS 1.2 or higher as the target for data in transit, but your team must verify it on each connection: client to load balancer, service to service, application to database and outbound calls to processors. Test the negotiated protocol and cipher suites with a scanner from inside your network, not only from outside, and retest after every ingress or chart change.

Security guide

Cloud and host encryption settings

Disk, volume, database, object storage and snapshot encryption depend on the cloud account or data center you run in. Confirm that each storage resource is encrypted, that the key used is one you control, and that default settings have not been overridden by a template or a manually created resource. Record these settings as configuration evidence, since they change outside the Hyperswitch chart.

Backup restore testing

Encrypted backups and snapshots only protect data if they can be restored with the keys and procedures you hold. Schedule restore tests into a separate environment, confirm that the restored PostgreSQL instance decrypts correctly, and check that the backup keys survive a custodian leaving. Document the restore time you observe and the access needed to perform it.

Defined or customized approach

PCI DSS v4.x lets you meet each requirement with the defined approach or, if your security and risk management are robust enough, with the customized approach. Choosing between them for encryption controls is your decision and must be documented with the objective, the risk analysis and the evidence. Ask your QSA or acquirer which approach they will accept before you build a customized control.

Approach comparison

What evidence an assessor will ask for on encryption

What encryption evidence does a PCI DSS assessor ask for first?

An assessor asks for proof that the controls exist, work as configured, and still apply to the current build. In practice that means five evidence categories: configuration exports, TLS scan results, certificate inventories with rotation logs, encryption settings for databases and backups, and restore test records. Each one should show a setting, a date and an owner. A screenshot taken once before an audit does not meet that bar, because the assessor will want to see the same control operating across the assessment period.

What configuration exports should we keep for Hyperswitch encryption?

Keep exports of the settings that govern encryption in transit and at rest, taken from the running environment rather than from memory. These usually include the Helm values or manifests that set ingress TLS, the minimum TLS version on load balancers and ingress controllers, service mesh mTLS policy, PostgreSQL and Redis encryption and TLS settings, object storage encryption, and backup job definitions. Store them in version control with change history, so you can show what was set, when it changed and who approved it.

How do we prove TLS 1.2 or higher is enforced everywhere?

Run external and internal TLS scans against every endpoint in the cardholder data environment and keep the reports. The reports should show the protocol versions accepted, the cipher suites, certificate chain validity and any weak configuration found. Pair them with the configuration exports so the assessor can match the scan result to the setting that produced it. Internal endpoints such as database connections and service-to-service calls also need evidence, since a scan of the public edge alone does not cover them. Confirm the scanner and its settings with your assessor before you start.

What should a certificate inventory and rotation log contain?

The inventory lists every certificate in scope with its subject, issuer, expiry date, the service that uses it, and the private key location. The rotation log records each issuance and renewal, the trigger (scheduled, automatic or manual), the approver and the verification step that followed. Automatic issuance and rotation, as the Hyperswitch self-hosting security guide recommends, produces this log as a byproduct if you retain the controller events. Expired or unmanaged certificates are a common finding, so show that expiry alerts fired before renewal.

What encryption settings do auditors check for databases and backups?

Auditors check that PostgreSQL data at rest is encrypted, that replicas are covered, and that backups, snapshots and object storage used for them are encrypted as well. Evidence includes the storage-level or volume-level encryption configuration, the key management reference used, who can access the keys, and the encryption flag on each snapshot or bucket. For Redis, document whether it holds any cardholder data at all, since that determines how much evidence is needed. Confirm the exact settings with your database and cloud provider documentation, because options differ by platform.

Why do restore test records matter for encryption evidence?

Encrypted backups are only useful if they restore, and an assessor will ask whether the restore process has been tested with the same keys and settings used in production. Keep dated restore test records that name the backup used, the target environment, the keys required, the result and the time taken. Record failures and the fix as well. A passing restore that used an unencrypted test copy does not prove the encrypted production path works.

How do we keep encryption evidence current across Hyperswitch upgrades?

Treat evidence as part of each release, not as a separate audit project. Before upgrading, re-export configuration, rerun TLS scans and confirm the certificate inventory still matches what runs. Check the release notes for changes to dependencies, ingress or database settings, since a minor version can change defaults. Store each set of evidence against the release it describes, and add a checklist item to the change process so the upgrade cannot close without refreshed records. Ask your assessor whether they want evidence per release or per assessment period.

Which official sources to check each encryption claim against

Check every encryption claim in this page against two official sources before you rely on it. The first is the Hyperswitch security and compliance guide for self-hosting, which sets out the baseline the Hyperswitch maintainers recommend: database encryption at rest, encryption of backups, snapshots and object storage, TLS 1.2 or higher for all data in transit, and automatic certificate issuance and rotation. Read it against your own Helm values, ingress configuration and cloud storage settings, and record which recommendation each setting satisfies. Where the guide is silent, such as the exact cipher suites your load balancers negotiate or how your backup tool handles key material, treat that gap as your own design decision and document it.

The second source is the PCI Security Standards Council's PCI Data Security Standard page, which points to the current version of PCI DSS and its supporting documents. Map each control to the requirement that governs it, and confirm the active version and any effective dates on that page before you cite them to an assessor or acquirer. The standard changes through revisions and requests for comment, so do not assume a version number you read in an older blog post or internal wiki is still current. Ask your QSA or acquirer which version they will assess against for your next validation cycle. Keep a dated record of what you checked and where, because that record is the first thing an assessor will ask for.

How DeployOpen scopes and documents encryption controls for self-hosted Hyperswitch

DeployOpen plans, builds, tests and documents the encryption controls for a self-hosted Hyperswitch stack inside infrastructure you control. The work covers TLS on every data path, encryption of databases, backups and snapshots, and certificate rotation, with evidence arranged so your compliance team and any assessor can review it.

How we scope

  • Inventory every data path that carries cardholder data or sensitive authentication data, including router, scheduler, vault, Redis and PostgreSQL connections.
  • Record which PCI DSS requirements and GDPR obligations each encryption control supports, so the written scope states what is in and out.
  • Agree the scope, deliverables and timelines in writing before work starts, since most engagements are fixed-scope.

How we build

  • Configure TLS 1.2 or higher for all data in transit, with settings checked against the cipher and protocol choices your environment allows.
  • Set up encryption at rest for PostgreSQL, backups, snapshots and object storage, with key handling aligned to your key custody model.
  • Test the configuration, including protocol downgrade attempts and certificate expiry behavior, and fix findings before handover.

How we hand over

  • Deliver a written encryption control map linking each data path and storage location to its configuration and owner.
  • Provide runbooks for certificate issuance, automatic rotation, renewal failures and restoring encrypted backups.
  • Supply evidence packs with configuration exports, test results and change records for your QSA or internal reviewers. DeployOpen does not issue audit reports or attestations.

How we support

  • Re-check encryption settings after each Hyperswitch release or infrastructure change, since upgrades can alter dependencies.
  • Available as a retainer for ongoing support, periodic retesting and updates to the control map as your topology changes.
  • Confirm with your team which assessment, scan and vendor requirements apply to your environment before relying on any control.

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.