Setting up Hyperswitch sandbox, integration test and production environments

Separate Hyperswitch sandbox, integration test and production environments so live credentials, keys and card-related data never leave production, and releases are promoted in a controlled order.

On this page

Why Hyperswitch sandbox, test and production environments need separate boundaries

Separate environments keep test traffic, test credentials and live payment data apart, and the need becomes urgent as soon as a team connects to a payment processor before going live. Hyperswitch is open source under the Apache 2.0 license, so your team can run it in its own clusters, but that also means no one else sets the boundary for you. A self-hosted production stack holds live processor credentials, card vault data and encryption keys, while the hosted sandbox and the Docker-based local setup are convenient for evaluation and do not reproduce that stack. Once you run your own Hyperswitch, the separation between those tiers is your responsibility to design and prove.

The Helm path supports namespaces per environment, which is the first boundary to decide on. Each namespace gets its own release values, its own secrets and its own connection to PostgreSQL and Redis, so a misconfigured integration test cannot reach the production database. Whether a single cluster with separate namespaces is enough, or whether production should sit on a separate cluster, depends on your risk appetite, your network policies and how your processors allow test accounts to be provisioned. Confirm with your processors which sandbox credentials they issue and how long those credentials remain valid, because that answer shapes what you can share between environments.

Treat the boundary as something to check, not assume. Before any integration test runs against a live processor, confirm that the test environment uses test connector credentials, that no production keys or vault data were copied into it, and that the Helm values for each environment point to the right endpoints. Ask your team which parts of the Control Center configuration and webhook endpoints differ per environment, and write those differences down. If your compliance scope depends on keeping cards out of non-production systems, have your assessor review this design early, since DeployOpen prepares evidence for that review but does not issue the assessment itself.

How the sandbox, integration test and production boundaries fit together

The diagram starts at the Git repository, where Helm values and release versions are kept, and shows one promotion path into a self-hosted integration test environment and then into production. Each environment runs its own Router and Control Center, but only the production subgraph holds live processor credentials and the card vault, which is marked as production-only in the self-hosted vault models. The hosted sandbox sits outside the boundary and holds no live data. Check that no test credential or copied production record crosses the dashed line.

Environment boundaries, promotion path and the production-only card vault and live credentials.

Which environment model fits which stage

This table compares separate clusters, separate namespaces on a shared cluster, and a hosted sandbox used alongside self-hosted test and production. Read each row against your team's Kubernetes isolation maturity and your PCI DSS scope, since the shared-cluster option depends heavily on the controls you can enforce.

ModelIsolation and blast radiusOperational overhead and when it fits
Separate clusters per environmentStrongest isolation. A fault, credential leak or bad upgrade in test cannot reach production nodes, networks or the production database.Highest overhead: each cluster needs its own upgrades, ingress, monitoring and secrets. Fits production with a regulated or cardholder data boundary.
Separate namespaces on a shared clusterWeaker isolation. Namespaces separate Helm releases and RBAC scopes, but share nodes, the control plane and any cluster-wide permissions unless network policies and Pod Security Standards are enforced.Lower overhead: one cluster to upgrade and monitor. Fits sandbox and integration test, and production only if your team can prove namespace boundaries.
Hosted Hyperswitch sandbox alongside self-hosted environmentsNo shared infrastructure with your stack, but it is Juspay's environment, not yours, so it cannot validate your own deployment, ingress or database settings.Minimal setup for connector and API exploration. Use it for early integration work, not as a substitute for a self-hosted test environment.
Namespace per environment, separate cluster for productionBalanced: non-production blast radius stays within its own namespace while production is isolated at the cluster level.Moderate overhead. Common pattern where a cost-conscious team still keeps live credentials and cardholder-adjacent data off shared nodes.
Test credentials and sandbox connectorsTest processor keys must never be stored in production namespaces or clusters, and production keys must never appear in test values files.Low infrastructure cost, but requires disciplined secret separation. Confirm each processor's test and live credential model with the processor.
Data and refresh policyProduction data must not be copied into test environments. Use synthetic or masked data for integration tests.Ongoing effort to maintain test fixtures and seed data. Confirm your data handling obligations under PCI DSS and GDPR before any copy.
Release promotion pathSeparate environments let each Hyperswitch release and Control Center version be tested before production, subject to the compatibility matrix in each release.Adds a promotion step and a second rollout cycle. Confirm which Superposition and dependency versions each environment runs before upgrading.

What must never cross from production into test environments

Processor and acquirer credentials are the most direct route from a test environment to real money movement. Test and live credentials are issued separately by each processor, and a sandbox that holds live keys can create real charges, refunds or payouts. The rule is that every environment uses only the credentials issued for that environment, stored in that environment's secret store.

  • Separate issuance: Request test and live API keys as distinct sets, and record which set is bound to which Hyperswitch connector configuration.
  • No copying between stores: Do not export live credentials from the production secret store to create a test copy, even temporarily.
  • Scoped test accounts: Ask each processor whether its sandbox uses separate merchant accounts, and whether live merchant IDs can be reached from test endpoints.
  • Webhook secrets per environment: Signing secrets used to verify processor callbacks should differ between environments so a test event cannot be replayed into production.

Before go-live, confirm with each processor in writing which credential types exist, how they are labelled, and what happens if a test key is sent to a live endpoint.

How to set up the three environments in order

The sequence builds each environment from the bottom up, so that sandbox, integration test and production stay isolated from one another and production only receives live credentials after the test environments have been verified.

  1. Define environment names and namespace layout

    The platform team agrees on environment names (for example, sandbox, integration and production), decides whether each environment gets its own namespace in a shared cluster or its own cluster, and records the mapping in the infrastructure repository. Naming should carry into hostnames, Helm release names, secret names and database names so that no resource is ambiguous. Done when the layout is written down, reviewed by security and every environment has a named owner. Ask your cluster provider and your security team whether a shared cluster meets your isolation requirements before you commit to it.

  2. Provision separate databases and Redis per environment

    The infrastructure team creates a dedicated PostgreSQL instance and a dedicated Redis instance for each environment, with separate credentials, network rules and backup settings. Hyperswitch's architecture relies on PostgreSQL with a master and replica setup and on Redis for caching and the scheduler queue, so sharing either service between environments would let test traffic touch production state. Done when each environment's connection strings resolve only to its own endpoints and a test login on one database fails on the others. Confirm the PostgreSQL and Redis versions your chosen Hyperswitch release supports before provisioning.

  3. Install the chart with environment-specific values

    The platform engineer installs the Hyperswitch Helm chart once per environment, using a separate values file for each one that sets hostnames, replica counts, resource requests, database and Redis endpoints and the environment label. Values files live in Git and are reviewed like code, and secrets are referenced from the cluster's secret store rather than written into the file. Done when each release reports a healthy status and the rendered manifests in each namespace point only to that environment's dependencies. Confirm whether your release requires optional services, such as Superposition for specific versions, before the install.

  4. Configure test connectors with sandbox credentials

    The payments operations lead, with the engineer, adds connector entries to the sandbox and integration environments using only the test or sandbox credentials that each processor issues. Each connector's webhook endpoint is registered against the matching environment's hostname, so processor test events never reach production. Done when a test payment completes through each configured connector and the transaction appears only in that environment's Control Center. Ask each processor to confirm in writing which credentials are test-only before entering them.

  5. Verify Control Center and router health in each environment

    The platform engineer checks the router health endpoints and confirms that the Control Center loads and accepts a login in each environment, using accounts created for that environment alone. The engineer also confirms that the Control Center and the router run compatible versions, as listed in the release's compatibility matrix. Done when every environment passes these checks and a record of the results is stored with the release notes. Run the same checks again after each upgrade.

  6. Confirm test environments cannot reach production

    The security engineer tests network isolation from inside the sandbox and integration namespaces by attempting to resolve and connect to production hostnames, database endpoints and Redis endpoints. Network policies, separate DNS zones and separate egress rules should block every attempt, and the results are recorded. Done when every attempted connection to production fails and the failures appear in logs. Repeat this check whenever network policies or DNS change.

  7. Add live credentials in production only

    After the test environments pass all checks, the payments lead and the security engineer add live processor credentials to production through the secret store, with access limited to named custodians. Live webhook endpoints are registered only after the production hostname is confirmed. Done when a controlled live transaction is approved by the business owner and the credentials' access log shows only authorized principals. Confirm live onboarding requirements with each processor, since these depend on your contracts.

  8. Promote releases in the same order

    The team promotes each Hyperswitch release from sandbox to integration to production, in that order, using the same versioned values and image tags at each step. The promotion is recorded in Git and is not complete until the release passes the health and isolation checks in the target environment. Done when the production release tag matches the one already verified in integration. Read the release notes for each version before promoting, including any new required dependencies.

How to promote Hyperswitch releases from test to production

Promote one set of chart and image versions through every environment, and check the compatibility matrix before each step. Hyperswitch ships roughly monthly minor releases, such as v1.126.0, v1.127.0 and v1.128.0, and each GitHub release lists a compatibility matrix for the Control Center and web client versions. Record the router, Scheduler, Control Center and SDK versions that pass in your sandbox, then deploy those exact hyperswitch-stack chart and image tags to the integration test namespace or cluster, and only then to production. Rebuilding images or editing values between environments means production is running something nobody tested. Confirm the matrix for each target version before you change anything, because a Control Center that falls outside the supported range for the router is a common cause of broken sign-in and dashboard errors after an upgrade.

Check the v1.124.0 Superposition requirement before any upgrade that crosses that release. The v1.124.0 release notes state that Superposition became a required configuration dependency, and deployments must have a Superposition service running before upgrading to that version. Treat this as a gate in the promotion checklist: confirm that the test environment already runs Superposition with the same configuration you plan to use in production, and that production has it running before the router is updated. Add the same check to any later release notes you review, because dependency changes like this are the ones that stop a rollout halfway through.

Plan the cluster upgrade around the Kubernetes version skew rules. Hyperswitch releases do not change the cluster version, but the cluster sets the limits on how far you can move. The Kubernetes version skew policy requires kube-apiserver to be upgraded one minor version at a time, before the controller manager, scheduler and kubelets, and kubelets may be up to three minor versions older than the API server. Confirm which Kubernetes minor version your test and production clusters run, and check that each planned Hyperswitch release still runs on that version. Keep test and production on the same Kubernetes minor version so that a problem found in test reflects production.

Security controls that keep environments isolated

Sandbox, integration test and production only stay separate if the cluster, the secrets and the people who reach them are separated too. The cards below cover the Kubernetes controls and the Hyperswitch Control Center access model that hold those boundaries in place.

Encrypt Secrets at rest

Kubernetes stores Secrets unencrypted in etcd by default, so a copy of etcd or its backups exposes every connector key and database password in every environment that shares it. Configure encryption at rest for the API server, or pull secrets from an external store through the Secrets Store CSI Driver. Before go-live, confirm that etcd backups in each environment are encrypted and that test credentials cannot be read from the production store.

Secrets good practices

Restrict list and watch access

Reading a Secret is not the only risk. Permission to list or watch Secrets returns their contents in bulk, so a service account with those verbs can collect every environment's credentials from one namespace. Grant least-privilege RBAC per namespace, keep operators out of production Secret access by default, and review role bindings each release cycle. Ask your platform team to show the bindings for each environment namespace.

Authenticate people through OIDC

Kubernetes does not create user objects, so human access depends on the authentication method you configure, such as X.509 client certificates, bearer tokens, or OpenID Connect. Using OIDC from your identity provider lets you revoke access centrally when someone leaves the team. Confirm that production cluster access requires your identity provider, and that break-glass certificates are stored offline and logged when used.

Kubernetes authentication

Apply Pod Security Standards

Hyperswitch workloads should run under the restricted Pod Security Standard in production, which blocks privileged containers, host networking and unsafe volume types. Set the enforcement level per namespace so a test workload with looser settings cannot be deployed into the production namespace. Check the admission labels on each environment namespace and record any exception with an owner and an expiry date.

Pod Security Standards

Separate Control Center accounts per environment

The Control Center supports OpenID Connect single sign-on only, with no SAML, no JIT or SCIM provisioning, and roles managed in Hyperswitch rather than mapped from your identity provider. Invite users separately into each environment's Control Center, so a sandbox administrator does not hold production merchant permissions. Removing someone from your identity provider does not remove their Hyperswitch account, so include that step in your offboarding checklist.

Control Center SSO docs

Questions teams ask before setting up Hyperswitch environments

Is one Kubernetes cluster with namespaces enough for sandbox, test and production Hyperswitch?

A single cluster with separate namespaces can host sandbox and integration test environments, but production usually needs its own cluster or at least its own database, cache, secrets and network boundary. The deciding factors are how strictly your compliance team wants production data and cards isolated, whether your cluster admins can reach every namespace, and whether a misconfigured test deployment could affect live traffic. Hyperswitch documents namespaces per environment as a deployment pattern, so confirm your RBAC, network policies and secret scopes before sharing a cluster. Ask your auditors early whether a shared cluster is acceptable for the scope you plan to claim.

How much do separate Hyperswitch environments cost, and what drives it?

The main recurring cost is infrastructure: each environment needs compute nodes, a PostgreSQL primary and replica, Redis, load balancing, storage and monitoring. Production sizing dominates the bill, while sandbox and test environments can run smaller but still need the same component versions. Other cost drivers are processor sandbox accounts, separate secrets and KMS keys per environment, and the people time spent on promotion and access reviews. Ask for a quote that lists each environment separately, the infrastructure it provisions, which items recur monthly, and which are one-time setup work. DeployOpen does not publish prices; quotes follow from a written scope.

How long does it take to set up Hyperswitch environments, and what does it depend on?

The duration depends on how many environments you need, whether they share a cluster, and how quickly your team can provision cloud accounts, DNS, certificates and databases. Access approvals and processor sandbox onboarding often run on partner timelines rather than engineering timelines, so start those requests first. Your cloud path matters too: a Helm install on an existing cluster is shorter than building the network, cluster and identities from scratch with Terraform. No fixed duration is supplied for this work, so ask for a timeline in the written scope that names each dependency and who owns it.

Can an internal platform team set up Hyperswitch environments without outside help?

A team with working Kubernetes operations, Helm and GitOps experience, PostgreSQL and Redis administration, and secrets management can build the environments internally, and many do. The gaps usually appear in key handling, least-privilege access to production secrets, promotion controls and evidence collection for compliance reviews. Check whether your team has run upgrades that require a dependency such as Superposition to be running first, as documented in the v1.124.0 release notes, and whether someone owns each release cadence. An outside partner can take fixed-scope pieces, such as environment design or a go-live review, while your team keeps operations.

What does the work need from our team: Kubernetes skills, processor contracts and key custodians?

You need people who can operate Kubernetes and its authentication model, including X.509 certificates, OIDC tokens and RBAC, plus someone who can manage encryption at rest for Secrets, since Kubernetes stores them unencrypted in etcd by default. Test environments need processor sandbox credentials, while production needs live processor contracts and live credentials that never reach lower environments. Assign named key custodians for the encryption and vault keys, with separate approvers for production access. Confirm these owners, and the approval path for each, before the build starts.

How is promoting a Hyperswitch release different from rolling it back?

Promotion moves a tested release and its Helm values forward through sandbox, test and production, while a rollback returns a deployment to an earlier known state. Rollback is harder when a release has changed database schemas or required dependencies, so the upgrade path must be checked before production. Kubernetes version skew rules also limit what you can change first: the API server moves one minor version at a time and kubelets may lag by up to three minor versions. Keep values and images versioned in Git, record which compatible Control Center and web client versions ship with each router release, and confirm your rollback steps in test before relying on them.

How DeployOpen works on this

DeployOpen plans and builds separated Hyperswitch sandbox, integration test and production environments inside infrastructure you control. The work starts with a written scope that defines which environments exist, where they run, and how credentials, keys and data are kept apart between them.

How we scope

  • Agree in writing which environments exist, and whether each runs in its own namespace or cluster.
  • Map which Hyperswitch connectors need test credentials and which need live credentials, per environment.
  • Define which data, keys and secrets are barred from crossing from production into lower environments.
  • Confirm the release promotion path and who approves each step before work starts.

How we build

  • Build each environment from the same Helm values structure, varying only the settings that must differ.
  • Configure separate secret stores and access policies so each environment reads only its own credentials.
  • Test that the sandbox connectors reject live credentials and that production cannot reach test endpoints.
  • Document the promotion steps and run a dry-run release through the sandbox, integration and production path.

How we hand over

  • Deliver environment diagrams, configuration references and the promotion runbook in your repository.
  • Walk your platform and security teams through access rules, credential rotation and key handling per environment.
  • Provide a written record of test results, including the separation checks and the dry-run promotion.
  • Hand over the work with the ownership of each environment and each secret clearly assigned to your team.

How we support

  • Offer ongoing support, upgrades and continuous testing as a retainer, scoped separately from the build.
  • Review each new Hyperswitch release against the environment setup before it moves toward production.
  • Retest environment separation after changes to clusters, identity providers or connector credentials.
  • Ask any partner for the scope, deliverables and retainer terms in writing before committing to a quote.

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.