The Simplest Way to Make Backstage and Haproxy Work Like They Should
Running Backstage and HAProxy together routes developer portal traffic to internal services. This pair lets teams view service status and trigger builds from one place. Backstage gives engineers a central catalog for all their tools and services. HAProxy sits in front of those services and directs incoming network requests. When you link them, developers can check health metrics and run tasks with ease. You get a clean portal view backed by fast, stable network routing. How Backstage and HAPr
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 Backstage and HAProxy together routes developer portal traffic to internal services. This pair lets teams view service status and trigger builds from one place.
Backstage gives engineers a central catalog for all their tools and services. HAProxy sits in front of those services and directs incoming network requests. When you link them, developers can check health metrics and run tasks with ease. You get a clean portal view backed by fast, stable network routing.
How Backstage and HAProxy pass user identity and traffic
A user first logs in to the portal using an identity provider. Backstage checks who the user is and reads their group roles. When the user clicks a plugin, the portal sends an API request out. HAProxy catches that request on the network edge and checks the target route.
To keep this flow safe, both tools must agree on who sent the call. Backstage can attach a user token to the outbound request header. HAProxy reads that header or checks the client certificate on the wire. It then forwards the traffic to the right backend app pool.
Teams also push HAProxy stats back into the developer portal. A plugin reads traffic counts, error rates, and backend node health. Service owners see live load balancer status right on their component page. They do not need to log in to separate servers just to check traffic.
Common routing mistakes and how to scope roles
Many teams use one shared service account for all portal traffic. Backstage sends every backend call with the same static key. HAProxy sees all traffic coming from a single source IP and key. When a bad call hits a backend service, the logs hide who clicked the button.
Broad network rules create another big risk for platform teams. If HAProxy opens all backend routes to the portal host, any plugin can hit any app. A test plugin could send write calls to a production service by mistake. Broad tokens and wide network paths turn a small bug into an outage.
End-to-End Encryption + Backstage Security Plugins: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
You can fix this by scoping roles and network paths between both systems. Split your HAProxy backends into read routes and write routes. Give the portal a read-only role for fetching stats and catalog data. Require user-level tokens for any route that changes state or triggers a deploy.
Also, turn on detailed request logs at the load balancer level. Log the user header alongside the target backend and response code. Scrub sensitive data so masking rewrites matched fields like emails or phone numbers in results. Good logs help teams trace portal actions back to a real user.
Keeping portal routes fast and easy to maintain
As your service catalog grows, static routing files get hard to update. Every new microservice needs a fresh catalog entry and a new backend rule. Platform engineers waste hours copying IP addresses and port numbers between git repos.
Use service discovery to link both tools to the same source of truth. When a team registers a new app, let automation update the routing pool. Keep health check rules strict so dead nodes drop out of the portal view fast. This keeps your developer portal accurate and your network traffic flowing.
Check database and API queries on the wire
Identity tools, roles, and network rules decide who opens a session. Setup alone cannot check what each query does or mask sensitive values in a response once a session starts. When workflows touch Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes APIs, SSH, or internal HTTP APIs, hoop.dev runs beside those services as an open-source proxy, a sidecar for your Postgres or API. It inspects requests coming in and results going back on the wire.
Your login details and client tools stay as they are while hoop.dev guardrails refuse bad deletes or drops before they run. On responses, hoop.dev data masking rewrites matched sensitive values in memory. Furthermore, hoop.dev holds SOC 2 Type II, is MIT licensed, and writes every query and decision to an audit trail that generates evidence for HIPAA, GDPR, and PCI DSS. See the source on GitHub.
Frequently asked questions
Why put HAProxy in front of Backstage backend services?
It gives you one place to manage TLS, rate limits, and health checks. Your portal plugins talk to stable endpoints while backend servers scale up or down.
How do we stop Backstage plugins from hitting the wrong backend?
Use strict network rules and separate frontends for different service tiers. Check the caller identity and token scope before forwarding any request to a backend pool.
Can engineers see HAProxy health status inside Backstage?
Yes, you can feed load balancer metrics into the portal catalog view. Developers can check active sessions and node status without leaving their main dashboard.
Related guides
In this post