The Simplest Way to Make Backstage and Gerrit Work Like They Should
Integrating backstage and gerrit lets platform teams view code repos and run templates from one portal. Gerrit hosts your Git repos and reviews while Backstage indexes catalog files and creates projects. This setup keeps engineers inside a single web app during daily work. Teams find owners, check active patches, and start new services fast. How backstage and gerrit share data and logins Backstage needs network paths and valid keys to talk to your Gerrit server. The portal reads catalog desc
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.
Integrating backstage and gerrit lets platform teams view code repos and run templates from one portal. Gerrit hosts your Git repos and reviews while Backstage indexes catalog files and creates projects.
This setup keeps engineers inside a single web app during daily work. Teams find owners, check active patches, and start new services fast.
How backstage and gerrit share data and logins
Backstage needs network paths and valid keys to talk to your Gerrit server. The portal reads catalog descriptor files straight from your Git branches. It also sends new code changes when an engineer runs a software template.
To do this, the portal uses a Gerrit user account with HTTP credentials or SSH keys. The discovery processor polls the Gerrit API on a set schedule. It looks for project names and pulls down the YAML files it finds.
When a developer scaffolds a new microservice, the flow goes the other way. The scaffolder creates a new project or pushes a commit for review. Gerrit checks the account role before it allows the branch update or project creation.
Many teams also show open code reviews inside the portal UI. The frontend plugin queries the Gerrit REST API to fetch open changes. Engineers see patch status and reviewer votes right on the component page.
Common failure modes and how to scope roles
Many teams make the mistake of using one admin account for this link. A shared admin key gives the portal full control over every repo. If someone leaks that key, an attacker can read or delete all source code.
Broad keys also ruin your audit logs inside the version control server. Every new repo or commit looks like it came from the same bot user. Security teams cannot tell which human engineer ran the template in the portal.
End-to-End Encryption + Backstage Security Plugins: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
Another common issue is unlogged API queries between the two systems. High polling rates from the catalog processor can slow down the Gerrit web interface. Without clear logs, ops teams struggle to find which plugin caused the load spike.
You can fix these risks by splitting read and write roles in Gerrit. Create one service user that only has permission to read public and internal catalog files. Use a separate role with tight branch rules for the software scaffolder.
Map each Gerrit project group to the matching team inside your identity provider. Do not let the portal write straight to main branches without a review step. Have the template push a change set to Gerrit instead. Then a human owner must approve and merge the new service code.
Keeping secrets and network paths safe
Store all Gerrit keys in an external secret store instead of plain config files. Rotate those HTTP passwords and SSH keys on a regular schedule. Check your Gerrit access logs each week to spot strange repo reads.
Lock down the network path between the portal backend and the Git server. Put both apps on a private network and block public traffic to the API. Allow traffic only from the specific IP address of your portal runner.
Watch out for sensitive data inside your repo history and commit messages. If a template writes user emails or phone numbers into logs, mask those fields. Rewriting matched fields in results keeps private data out of shared portal views.
Add runtime guardrails and masking beside your databases and APIs
Login rules, role grants, and CI checks govern who connects to your stack. Yet any allowed script, engineer, or AI agent still runs commands with the full scope of its role. For workloads on Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes, SSH, or internal HTTP services, hoop.dev sits beside the service as an open-source proxy, a sidecar for your database or API.
Before a query runs, hoop.dev guardrails check the statement against your rules. An AI Analyzer you configure can score intent or hold risky calls for human review. Next, hoop.dev data masking rewrites sensitive fields in responses, and each verdict is logged per listener. Explore the MIT-licensed project on GitHub.
Frequently asked questions
Can Backstage read catalog files from private Gerrit projects?
Yes, the catalog processor can read private projects when you set up a valid service user. Grant that user read rights on the specific project groups in Gerrit.
How should the Backstage scaffolder push new code to Gerrit?
Set up the scaffolder action to push commits to the Gerrit review queue. This respects your branch rules and requires a human to approve the new repo code.
Why do Gerrit audit logs show a single bot user for all portal actions?
Backstage often uses one static key to talk to the Gerrit API for all users. You must track user identity at the network layer to see which engineer triggered the action.
Related guides
In this post