Why Hyperswitch ingress and egress need deliberate control
A payments team running Hyperswitch in infrastructure it controls needs to decide two things early: who can reach the Router, and which external hosts the cluster is allowed to call. Hyperswitch splits its work between the Router, which handles API requests, routing, retries and vault calls, and the Scheduler, which runs background tasks through a Producer and Consumer backed by PostgreSQL and Redis. Merchant servers and the Control Center reach the Router inbound. Checkout SDKs and processor webhooks also arrive from outside, and the Router sends requests out to every processor, fraud engine or external vault it is configured to use. Each of these paths carries cardholder data, tokens, credentials or payment status, so both directions fall inside the PCI DSS scope and the audit trail your assessor will ask you to explain.
In this design, Envoy Gateway handles the inbound side. It runs Envoy Proxy on Kubernetes and is configured through Gateway API resources, so your team can apply IP allow lists, mutual TLS, authentication and rate limits in one place in front of the Router and the Control Center. Squid is the proposed outbound control point. Connector calls leave the cluster through it, so the security team can log destinations and block everything else. Neither component is a substitute for the other: Envoy protects what comes in, while Squid limits what the Router can reach. Confirm with your vendors, in your own environment, the exact hostnames and ports each processor, webhook sender and external vault uses, and test them before you write rules. Processors change endpoints, and an allow list built from a guess will break payments or leave gaps.
How inbound and outbound payment traffic flows through the cluster
Traffic starts at merchant and PSP callers on the public edge, enters the cluster through Envoy Gateway, and reaches the Hyperswitch Router, which serves the Control Center path. The Router reads and writes PostgreSQL and Redis inside the cluster, then sends connector calls out through a Squid egress proxy that only reaches allow-listed processor hosts. Processor webhooks come back inbound through the same edge. Check that every boundary crossing is logged and that nothing bypasses the egress proxy.
Inbound and outbound payment traffic crossing the public edge, cluster and processor boundaries.
What Envoy Gateway handles on the inbound path
Envoy Gateway sits in front of the Hyperswitch Router for merchant and PSP traffic and applies access and abuse controls before requests reach the payment path. The cards below cover the controls to plan, the Gateway API model behind them, and why teams replacing Ingress NGINX are evaluating it.
Gateway API provisioning model
Envoy Gateway uses Gateway API resources such as GatewayClass, Gateway and routes to provision and configure the managed Envoy proxies, so routing to the Hyperswitch Router is declared as Kubernetes objects. Decide which team owns the Gateway resources and which owns the Router routes, and keep those objects in the same GitOps repository as the rest of the stack. Confirm the Envoy Proxy and Kubernetes versions you run against the project's compatibility matrix before installing.
Envoy Gateway docsIP allow and deny lists
Restrict who can reach the merchant and PSP endpoints by allow-listing the source ranges your known merchants and processors call from, and deny everything else on those paths. Keep the admin and Control Center routes on a separate, tighter list than the payment API. Review the lists whenever a processor changes its callback addresses, because a stale list can silently drop webhooks.
Mutual TLS for known callers
Mutual TLS requires each caller to present a client certificate that the gateway verifies, which suits server-to-server integrations with a fixed set of merchants or PSPs. Confirm with each counterparty whether they can present client certificates and who rotates them. Plan certificate expiry alerts as part of the same runbook, since an expired client certificate fails payments without an obvious application error.
JWT, OIDC and API key authentication
Envoy Gateway supports API key, basic, JWT and OIDC authentication, so the gateway can reject unauthenticated requests to Control Center or internal management routes before they reach Hyperswitch. Choose one identity source per route group and document it. Avoid relying on the gateway alone for authorization on payment operations, since Hyperswitch still applies its own merchant and API key checks.
Rate limiting on the payment path
Rate limiting caps how many requests a client can send in a given window, which protects the Router from runaway merchant retries and card-testing bursts. Set limits per merchant or per route rather than one global ceiling, and measure them against your load test results so a legitimate peak is not throttled. Confirm whether your limiter needs a shared backend across gateway replicas to count accurately.
External authorization and Ingress NGINX exit
External authorization lets the gateway send each request to a separate service for a decision, which can host fraud or policy checks you already run. Separately, Kubernetes announced on November 11, 2025 that Ingress NGINX would receive no releases, bug fixes or security updates after March 2026, so a Gateway API option deserves evaluation for new or migrating clusters. Confirm the migration path from existing Ingress resources in the Envoy Gateway guides before committing.
Ingress NGINX retirementChoosing an egress design for processor calls
This table compares direct egress with a fixed NAT address, a Squid forward proxy with allow-listed destinations, and a proxy combined with an egress firewall. Read each row as a decision the network team and the payments team must agree on before go-live. The main takeaway is that every added control makes processor allow-listing more predictable but makes outbound failures harder to trace.
| Decision point | Direct egress with fixed NAT | Squid proxy with allow-listed destinations | Proxy plus egress firewall |
|---|---|---|---|
| When it fits | Small or single-region clusters where processors only need to allow one fixed source address | Teams that need one audited exit point and a list of permitted processor hostnames | Regulated environments that require network-level enforcement independent of application configuration |
| What the network team provides | A NAT gateway or static egress IP and routes from the node subnet | Proxy hosts, a stable internal address, DNS for the proxy and rules on the proxy's egress path | Everything in the proxy column plus firewall policy, logging and change control on the egress firewall |
| Processor allow-listing | Processors allow the fixed IP. Any change to the NAT address requires a processor update | Processors allow the fixed proxy IP. Hostname lists are maintained in Squid and must match each connector's endpoints | Processor allow-listing follows the proxy IP. Firewall rules add a second list that must stay in step with Squid |
| Hostname changes at processors | No effect on the network path, though the IP range may need checking with the processor | Squid rules need updating when a processor adds or changes a hostname | Both Squid and firewall rules need updating, so changes need a matching review |
| Troubleshooting failed calls | Packet and NAT logs show the path. Application logs rarely name the blocked destination | Squid access logs record each requested host and the response code, which speeds up diagnosis | Firewall logs show dropped flows, and Squid logs show denied hosts. Correlating both takes shared tooling |
| Enforcement if the app is misconfigured | None at the network layer. Any pod can reach any internet destination | Only applies to traffic sent through the proxy. Workloads that bypass the proxy are not restricted | Blocks traffic that bypasses the proxy, so misconfigured workloads fail closed |
| What to confirm before choosing | Whether each processor accepts a fixed IP and how it handles address changes | Which processor endpoints the chosen connectors call, and whether TLS inspection is needed | Which firewall product and team own the rules, and how often the rule set is reviewed |
How to set up Envoy and Squid around a Hyperswitch cluster
This sequence places Envoy Gateway in front of the Hyperswitch Router and Control Center for inbound traffic, and routes outbound processor calls through a Squid proxy that only reaches allow-listed hostnames, with a test at each stage.
Confirm the Hyperswitch Helm release and service names
The platform or deployment engineer lists the Hyperswitch release in the target namespace and records the exact Kubernetes Service names and ports for the Router and the Control Center, along with the Scheduler and any Redis or PostgreSQL endpoints the Router depends on. These names become the backend references in the route resources. Check that the Hyperswitch Helm chart version matches the release in use and that the Router pods are ready before any traffic is rerouted. The step is done when each backend answers a request from inside the cluster on its expected port. Confirm the names against the chart you deployed, since they depend on your values file, and use the self-hosting guide in the Hyperswitch docs as the reference.
Install Envoy Gateway with Helm or GitOps
The platform team installs Envoy Gateway into its own namespace using Helm, or through Argo CD or Flux CD if your delivery model is GitOps. Pin the Envoy Gateway version and confirm it against the compatibility matrix in the project README for your Envoy Proxy and Kubernetes versions. The project's releases page lists v1.9.2 and v1.8.5 published on September 28, 2026, so choose the line that fits your cluster. The step is done when the Envoy Gateway controller pod is running, its GatewayClass reports as accepted, and the controller logs show no reconciliation errors.
Define Gateway and route resources for Router and Control Center
The platform team creates a Gateway resource that listens on the TLS hostnames used by merchants, PSPs and the dashboard, then attaches HTTPRoute resources that send API paths to the Router Service and dashboard paths to the Control Center Service. Keep the Router and Control Center on separate hostnames so their policies can differ. Terminate TLS with certificates you manage, and document which hostnames are reachable from the internet and which are internal only. The step is done when a request to each hostname reaches the intended backend and a request to an unmatched path returns a not-found response rather than being forwarded.
Add IP and authentication policies to inbound routes
The security engineer applies Envoy Gateway security policies to the routes. Use IP allow lists for administrative and back-office paths, and review whether the public Router path should be restricted to known PSP webhook sources. Configure the authentication method that fits each path, such as JWT or OIDC for dashboard access, and mutual TLS where a PSP or partner supports it. Confirm rate limits on the payment API with the payments team before enabling them, since aggressive limits can block legitimate retries. The step is done when a request from a non-allowed address is denied, an unauthenticated request to a protected path is rejected, and a correctly authenticated request succeeds.
Deploy Squid with an allow list of processor hostnames
The network engineer deploys a Squid proxy inside the cluster or in a network segment that only the Router can reach, and writes an allow list that contains the processor API hostnames for each connector in use. Build the list from each processor's documentation and from the connector configuration in your Hyperswitch account, and confirm with each processor which hostnames and regions it uses, since these vary by provider. Deny all other destinations by default. Keep the list in version control so changes go through review. The step is done when Squid starts with the configuration loaded and its access log shows the allow list in effect.
Point the Router egress configuration at the proxy
The Hyperswitch platform engineer sets the proxy address in the Router's outbound configuration so that connector calls leave through Squid. Confirm the exact configuration key and value in the Hyperswitch self-hosting documentation for the release you run, and apply it through the Helm values file so the change is recorded. Restart the Router pods through the normal rollout, and check that outbound traffic from the Router pods does not bypass the proxy by using a network policy that blocks direct egress. The step is done when the Router pods show the proxy setting in their running configuration and direct outbound connections from those pods fail.
Verify denied and allowed calls against the sandbox
The test engineer runs two kinds of test from a Router pod or a test pod with the same egress path. First, a call to a hostname that is not on the allow list, which should fail at Squid with a denial recorded in its access log. Second, a call to an allowed processor sandbox endpoint, which should succeed and return the processor's expected response. Run a test payment against the Hyperswitch sandbox connector configuration to confirm the end-to-end path, and check the Router logs for the connector response. The step is done when the denied host fails, the allowed sandbox call succeeds, and both results are saved with the configuration version for the change record.
Record the configuration and schedule retests
The platform team writes down the final Envoy Gateway version, route and policy manifests, Squid allow list and Router egress setting, and stores them with the test results. The team also records who approves changes to the allow list and what evidence is needed for each change. Schedule a retest after each Envoy Gateway or Hyperswitch upgrade, and after any new processor is added, because both can change hostnames or routing behavior. Confirm the review cadence with your change management process. The step is done when the configuration, approvals and test evidence are stored where your security and compliance teams can review them.
How to allow-list processor endpoints without breaking payments
Processor endpoints differ by connector, region and environment, so every allow-list entry must come from that processor's current documentation and be confirmed in writing before go-live. Do not copy a list from a forum, an older Hyperswitch guide or another team's proxy configuration. Ask each processor for the hostnames and any published address ranges for the exact region and environment you will use, and record who confirmed them and when. The Squid egress proxy in front of Hyperswitch connector calls is only as accurate as the lists you load into it, so an outdated entry will surface as declined or timed-out payments rather than as a clear configuration error.
Prefer hostname-based rules wherever Squid and your network policy can express them. Many processors front their APIs with CDNs or load balancers whose IP addresses change over time, so an IP-only rule can start failing without any change on your side. If you must use IP rules, ask the processor whether it publishes ranges, how often they change and how it notifies customers. Webhook traffic needs its own check: processors send callbacks from source addresses that may differ from their API addresses, so the inbound path that receives them must be allowed separately and tested with a real or sandbox event. Keep sandbox and production lists in separate files or policy objects, so a test connector cannot reach a live endpoint and a production change cannot be made by accident. Record every list change, including the requester, the processor confirmation, the proxy reload and the test evidence, in your change management system.
Security and operational risks at the traffic edge
Every request into and out of a Hyperswitch cluster passes through a small set of components that can each expose admin surfaces, leak secrets, or stop payments. The cards below cover the risks worth designing against before go-live, and they connect because the same edge controls authentication, certificates, logging and outbound allow-listing.
Public exposure of Control Center and admin paths
The Control Center and admin APIs should not share a public route with merchant-facing payment endpoints. Route them through a separate hostname or path, restrict them by source address or an authenticating layer at Envoy, and confirm that internal endpoints are not reachable through the public listener. Test this from outside your network, not only from inside the cluster, and retest after every gateway change.
Control Center SSO docsEdge authentication around OIDC-only SSO
The Control Center supports single sign-on through OpenID Connect only, with no SAML, no JIT or SCIM provisioning, and roles managed in Hyperswitch. Envoy Gateway supports OIDC and mutual TLS at the edge, so you can plan one OIDC flow at the gateway for admin routes and mutual TLS for service-to-service calls. Confirm with your identity team whether your provider offers OIDC for every admin user before you commit to this design.
Envoy Gateway docsTLS termination and certificate handling
Decide where TLS ends: at Envoy, at the Hyperswitch services, or both with mutual TLS between them. Each choice changes who holds private keys, how certificates rotate, and what the router sees as the client address. Document the certificate owner, the renewal process and the alert that fires before expiry. An expired certificate on the payment path is an outage that looks like processor failure to merchants.
The proxy as a single point of failure
If the ingress gateway or the Squid egress proxy fails, every payment stops, even when the router and processors are healthy. Plan at least two replicas for each proxy, spread across failure domains, and define how a failover appears in health checks. Ask your platform team which failure modes the gateway's standard deployment covers and which need extra configuration. Include proxy failures in chaos testing before go-live.
Access logs that capture card data or secrets
Gateway and proxy access logs often record full request URLs, headers and bodies, and some of those fields can carry authorization tokens or payment data. Define a log format that records method, path, status and timing, strip authorization and cookie headers, and confirm that request bodies are not logged on payment routes. Review the log pipeline's retention and access rights, because the logs themselves become a data store that needs controls.
Allow-list drift after processor endpoint changes
Squid egress rules that allow only known processor hostnames fail silently when a processor moves to new endpoints, adds regional hosts, or changes a CDN address. Assign an owner for each processor entry, subscribe to the processor's change notices, and alert on denied-request counts from Squid. Review the allow list on a fixed schedule and after each connector change, so that a blocked endpoint is found in a test rather than during a live payment.
Questions teams ask before adding Envoy and Squid to Hyperswitch
Can our team build Envoy and Squid in front of Hyperswitch without a partner?
Yes, if your platform team already runs Kubernetes ingress, egress controls and certificate management, and has an owner for proxy configuration after go-live. The work has three parts: inbound routing and TLS for merchant and processor callbacks, outbound egress through a forward proxy for connector calls, and allow-list management. Hyperswitch documents Helm deployment on Kubernetes, so the cluster side is familiar ground for many platform teams. The harder parts are reading each processor's endpoint documentation, testing failure paths such as a blocked callback, and producing evidence for security reviewers. Teams without that depth often bring in a partner for design and verification, and keep day-to-day ownership in-house.
What drives the cost and effort of an ingress and egress build?
The main drivers are how many processor endpoints you must allow, how many environments need matching controls, how strict your network policy is, and how much evidence your assessors expect. Each of these multiplies the work:
- Processors and connectors, each with its own hostnames, ports and callback paths
- Environments such as development, staging, production and disaster recovery
- Network controls, including private connectivity, egress firewall rules, DNS policy and mutual TLS
- Compliance evidence, such as configuration exports, change records and test results
DeployOpen does not publish a price list. Fixed-scope engagements have scope, deliverables and timelines agreed in writing before work starts, and the quote follows from that scope. Ask for the quote to list each of these drivers separately so you can see what changes if one of them grows.
How long does a scoped build take in each environment?
The duration depends mostly on where the cluster runs and how much of the network is already under your control. A cloud account with existing ingress, managed DNS and an egress firewall usually moves faster than a data center or air-gapped network, where artifacts must be mirrored and approved before installation. Envoy Gateway documentation includes guides for air-gapped environments and a standalone mode outside Kubernetes, which changes the installation steps. Change windows, security approvals and the time needed to test every processor path also set the pace. Ask for a timeline in the written scope that names each environment and each approval gate, rather than a single overall figure.
What must our team provide before the engagement starts?
Gather the following before the kickoff so the design phase does not stall:
- Network diagrams showing the cluster, load balancers, firewalls, DNS zones and any private links to processors
- A processor endpoint list for each connector you plan to enable, with hostnames, ports and callback URLs
- TLS certificates or the internal certificate authority chain, plus ownership of renewal
- Current ingress and firewall rules, including any Ingress resources that will be replaced
- Change windows and the approval path for production changes
- The Hyperswitch version and Helm values you intend to run
If a processor does not publish its endpoints clearly, record that as an open item. Confirm the list with the processor and your own security team before it enters a firewall rule.
Is Squid required, or can Envoy handle outbound connector calls?
Squid is a design choice, not a Hyperswitch requirement. The Envoy Gateway material supplied for this topic describes managing inbound traffic through Gateway API resources, so confirm in the Envoy documentation whether and how it fits your outbound forward-proxy pattern before you rely on it. Squid gives you a central forward proxy with an allow list and access logs, which many security teams want for connector traffic. Other options include cloud NAT with egress firewall rules or an egress gateway in your network. Pick the option your security team can review and test, then document the reasons. Whichever you choose, the connector calls must still reach every processor endpoint you have approved.
How do we keep processor allow lists current after go-live?
Assign a named owner, then tie allow-list review to the events that change endpoints. Hyperswitch ships roughly monthly minor releases with compatibility notes, so review connector changes in each release before upgrading. Processors also change hostnames and callback addresses, so ask each one for change notices and record who receives them. Alert on denied egress, since a blocked connector call often shows up first as failed payments. Run a scheduled review of every rule against the endpoint list, and remove entries for connectors you no longer use. Keep every change in your change control system so auditors can trace who approved each rule and why.
Why should we move off Ingress NGINX in this design?
The Kubernetes project announced on November 11, 2025 that Ingress NGINX would receive best-effort maintenance until March 2026, after which it would get no further releases, bug fixes or security updates. A cluster still on Ingress NGINX therefore carries an unpatched inbound path into the payment stack. Envoy Gateway uses Gateway API resources to provision and configure Envoy proxies, and its documentation includes a guide for migrating from Ingress resources. Plan the migration as part of the proxy design, with a parallel test route for merchant and processor callbacks, so cutover does not depend on a single change window. Confirm the current support status with your Kubernetes distribution vendor as well.
Does changing ingress and egress affect our PCI DSS scope?
It can. Network segmentation, egress rules and the path card data takes through your environment all shape what sits in scope. In the self-hosted, in-house PCI vault model, Hyperswitch documents that the merchant is fully responsible for PCI DSS certification and data handling. Some vault models with an external PCI vault provider reduce that footprint, so confirm the model before you finalize the network design. DeployOpen prepares systems, controls and evidence for assessments, but it does not issue audit reports, attestations or certifications. Your qualified assessor decides the scope, so bring them the network diagrams and allow-list records early.
How DeployOpen scopes and delivers this traffic design
DeployOpen starts with a written scope that names the traffic paths to be built: inbound merchant and PSP calls through Envoy Gateway, outbound connector calls through the Squid egress proxy, and the processor endpoints that go on the allow list. The scope also states which Hyperswitch connectors are in use, which environments are covered, who owns the DNS, certificate and firewall changes, and what counts as done. Because most engagements are fixed-scope, the deliverables and timeline are agreed before work begins, and a quote follows from that document rather than from a price list.
Before any build, the network and security review maps every flow that reaches the Hyperswitch Router, Scheduler, Redis, PostgreSQL and the card vault. Each flow is tied to a source, a destination, a protocol and an owner. The review confirms the cluster and cloud or data center constraints, the ingress and egress rules your network team can approve, and where authentication for the Control Center and admin APIs will sit. Implementation then happens in your own cloud accounts, data centers or air-gapped network, so the gateway configuration, Squid rules and secrets stay under your change control.
Testing covers two areas. Functional tests run against the Hyperswitch sandbox to confirm that payment, refund and webhook paths reach the right connectors through the intended routes and fail closed when an allow-list entry is missing. Security testing then examines the edge itself, including authentication policies, IP allow lists, rate limits and the Squid rules, with a findings report, fixes and a retest. Ongoing support, upgrades and continuous testing can be added as a retainer, which matters because processor endpoints and gateway releases change over time. Confirm the retainer terms, response expectations and included retests in the written quote.

