The Simplest Way to Make Cohesity and Haproxy Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

Running cohesity and haproxy together balances backup traffic across storage nodes in production. HAProxy checks node health and routes backup jobs to healthy Cohesity cluster members. Storage clusters fail when one single node takes all the incoming data load. A load balancer sits in front of the cluster to spread out requests. This setup stops single node bottlenecks during large nightly backup runs. It also keeps user portals and API endpoints online during cluster maintenance. How cohesit

Your coding agents run with your access.

Claude Code reaches prod with a developer's credentials, and approval prompts get clicked through. hoop.dev checks every query, masks sensitive data, and holds risky changes for a human.

Running cohesity and haproxy together balances backup traffic across storage nodes in production. HAProxy checks node health and routes backup jobs to healthy Cohesity cluster members.

Storage clusters fail when one single node takes all the incoming data load. A load balancer sits in front of the cluster to spread out requests. This setup stops single node bottlenecks during large nightly backup runs. It also keeps user portals and API endpoints online during cluster maintenance.

How cohesity and haproxy handle traffic and logins

Clients send backup data and API calls to one virtual IP address on HAProxy. HAProxy checks which Cohesity nodes are awake and ready to take traffic. It then forwards the request to a healthy node in the storage cluster.

The login flow stays inside the Cohesity cluster or your main identity tool. HAProxy passes the encrypted traffic through or checks certificates at the edge. The Cohesity node still checks the user role and key before allowing any action. Admins must match timeout rules on both tools so big uploads do not drop. Health checks should ping the cluster status check path every few seconds.

Common failure modes and how to scope roles

Many teams use one shared admin account for all backup scripts and tools. If a script breaks or leaks a key, the whole backup system is at risk. Broad API keys let an attacker delete snapshots or read private company files. Unlogged actions on the load balancer or storage cluster hide who made a bad change.

Teams must lock down network paths between the load balancer and the storage nodes. Put the storage cluster on a private subnet that only HAProxy can reach. Give each script and engineer a separate role with the smallest needed permissions. Set up read-only roles for people who only check backup job status. Turn on detailed audit logs on both tools and send them to a safe store. Rotate TLS certs and API keys on a strict schedule to keep traffic safe.

End-to-End Encryption + HAProxy Security: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Keeping data safe during backup restores

Restoring a backup to a test server can expose private customer records to developers. Backup snapshots hold real emails, phone numbers, card numbers, and national IDs. Teams should limit who can trigger a restore job through the API.

When teams query restored databases, data masking rewrites matched fields in results. This step protects emails and card numbers during daily test work. Strong network rules and strict role checks keep both tools safe and fast.

Govern statements and responses across databases and APIs

Good config and scoped roles are needed setup. They do not check single queries in flight or mask sensitive fields in returned rows. Across Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes APIs, SSH, and internal HTTP endpoints, hoop.dev runs beside each supported service as an open-source proxy, a sidecar for your database or API.

First, hoop.dev guardrails block banned queries before they run. Then hoop.dev data masking rewrites matched sensitive values in responses in memory. The audit trail records every statement and verdict per resource. Furthermore, hoop.dev holds SOC 2 Type II and is open source on GitHub.

Frequently asked questions

Should HAProxy pass TLS traffic straight to Cohesity nodes?

Yes, passing TLS straight through keeps traffic encrypted all the way to the storage node. You can also end TLS at HAProxy if you re-encrypt traffic to the backend.

How does HAProxy handle a failed Cohesity storage node?

HAProxy runs active health checks against every node in the storage pool. When a node fails a check, HAProxy stops sending traffic to it right away.

What is the best way to secure Cohesity API traffic through HAProxy?

Use separate roles for each app and block direct network paths to the storage nodes. Log every request and rotate API keys on a regular schedule.

Teams that document these role rules and review logs each month catch config drift early. Clear ownership for each role keeps live systems simple to run and easy to audit across the whole team.

The query runs. The emails stay hidden.