The Simplest Way to Make Backstage and Kustomize Work Like They Should
Using backstage and kustomize together lets teams build and ship Kubernetes apps from one portal. Backstage makes base files from templates, and Kustomize patches them for each stage. This setup keeps app files dry and easy to read across many clusters. Developers pick their app size in the portal, and the build tool writes the patches. How backstage and kustomize share identity and data The workflow starts when an engineer logs in to the developer portal. The portal checks their user role a
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.
Using backstage and kustomize together lets teams build and ship Kubernetes apps from one portal. Backstage makes base files from templates, and Kustomize patches them for each stage.
This setup keeps app files dry and easy to read across many clusters. Developers pick their app size in the portal, and the build tool writes the patches.
How backstage and kustomize share identity and data
The workflow starts when an engineer logs in to the developer portal. The portal checks their user role and group rules before showing any forms.
Next, the engineer fills out a simple form to make a new service. Backstage takes those answers and writes base manifests and overlay files into a Git repo.
It uses a scoped Git key to push these files to a new branch. Kustomize does not talk to the portal directly during this step.
Instead, a deployment pipeline or GitOps agent reads the repo after the push merges. That agent runs Kustomize to merge the base files with the stage patches.
Finally, the agent sends the finished YAML to the target Kubernetes cluster. Each tool stays in its own lane while data flows through Git.
Common failure modes and how to scope roles
Many teams fail because they give the portal one giant admin token for Git. If that shared key leaks, an attacker can change every production overlay file.
Another common bug happens when portal templates write raw data into patch files. Bad inputs can break the YAML build step or expose private 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.
Some teams also let the portal run cluster commands directly with a broad service account. This setup skips Git review and leaves you with unlogged queries on the cluster.
You can fix these risks by splitting keys and scoping roles by team. Give the portal a narrow repo key that can only open pull requests.
Never let the portal push straight to your main branch or prod folder. Set up branch rules so a human must check every overlay change first.
Lock down network paths so the portal cannot reach the Kubernetes API by itself. Only your deploy agent inside the cluster should pull and apply the built manifests.
Keeping base files and overlays clean over time
Creating a service on day one is easy, but day two updates get messy. Developers often edit overlay files by hand when they need a quick fix.
Soon, your prod and test folders drift apart and templates no longer match reality. To stop this drift, keep base files strict and make patches very small.
Use the portal to update patches through fresh pull requests instead of manual edits. Run automated checks on every branch to test that Kustomize builds clean YAML.
If a patch fails the build check, block the merge right away. This simple rule keeps broken files out of your clusters and saves hours of work.
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
Does Backstage run Kustomize directly on the server?
No, the portal usually just writes the base files and patch folders into Git. Your CI pipeline or GitOps tool runs the build step before applying changes.
How should we store secrets when using both tools?
Never put plain text secrets into portal templates or Git overlay files. Use secret references that your cluster resolves at runtime from an external store.
How do we stop developers from editing prod overlays without review?
Use Git code owner files on your prod overlay folders. This rule forces a platform team member to approve any prod change before it merges.
Related guides
In this post