The Simplest Way to Make Backstage and Fluxcd Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

Teams pair backstage and fluxcd to show live GitOps sync status inside a developer portal. Backstage reads cluster custom resources that FluxCD updates during each code deployment. This workflow gives builders one place to check app health and sync state. Developers do not need direct cluster keys to see if a release worked. Platform teams keep tight control over Kubernetes while builders get fast feedback. How backstage and fluxcd share cluster data Backstage serves as the central catalog f

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.

Teams pair backstage and fluxcd to show live GitOps sync status inside a developer portal. Backstage reads cluster custom resources that FluxCD updates during each code deployment.

This workflow gives builders one place to check app health and sync state. Developers do not need direct cluster keys to see if a release worked. Platform teams keep tight control over Kubernetes while builders get fast feedback.

How backstage and fluxcd share cluster data

Backstage serves as the central catalog for all your internal software services. FluxCD runs inside your Kubernetes clusters and pulls changes from your Git repos. To link them, Backstage needs permission to read FluxCD custom objects from Kubernetes.

The portal backend queries the Kubernetes API to find Kustomization and HelmRelease objects. Labels on your catalog entities match labels on your cluster resources. When a user opens a service page, the portal fetches the latest sync state.

This setup relies on Kubernetes service accounts and role bindings. The portal backend uses a token to log in to each target cluster. Once logged in, it reads the status fields that the GitOps controller writes. If a build fails to sync, the error shows up on the service page. Some teams also let users trigger a fresh sync from the portal UI. That action requires write permissions on the FluxCD resources in the cluster.

Common failure modes and how to scope roles

Many teams start by giving the portal a broad cluster admin role. This is a big risk because a single leaked token exposes every cluster. If the portal holds write keys, any portal user might trigger production changes.

Shared service accounts also create blind spots in your cluster audit logs. When a user clicks sync in the portal, Kubernetes only sees the portal account. You cannot tell which person on the team actually ran the action. Unlogged queries also make it hard to track who viewed sensitive app settings.

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 these risks by scoping roles down to the bare minimum. Create a dedicated read role that only views FluxCD objects and basic pods. Never let the portal read cluster secrets or edit workloads across all namespaces. Map each team in the portal to their own namespace role in Kubernetes.

You should also lock down the network path between the portal and your clusters. Keep your cluster API servers on private networks with strict firewall rules. Rotate the service account keys on a set schedule to limit blast radius. If you allow sync actions, tie each request to the logged-in user identity. Also ensure that data masking rewrites matched fields like emails or phone numbers in logs.

Keeping multi-cluster GitOps setups fast and safe

As you add more clusters, managing static tokens in your portal gets hard. Each new cluster needs its own role, token, and network route. If a token expires, the portal stops showing deploy status for that cluster.

Platform teams should automate role setup using the same GitOps flow. Store the portal reader roles in Git and let FluxCD apply them. This ensures every new cluster gets the exact same safe permissions from day one. Keep read paths separate from write paths so builders can check status safely.

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

Does Backstage need write permissions to show FluxCD status?

No, viewing sync state and release health only requires read permissions on FluxCD objects. You only need write roles if users trigger manual syncs from the portal.

How does Backstage match catalog items to FluxCD resources?

The portal uses Kubernetes labels and annotations defined on your catalog entities. It queries the cluster API for FluxCD objects that share those exact labels.

How can we audit who triggered a FluxCD sync from the portal?

Do not use one shared write token for all portal users. Pass the user identity with the request so the cluster logs the real person.

The query runs. The emails stay hidden.