The Simplest Way to Make Backstage and Github Work Like They Should
Teams pair backstage and github to put code repos and service catalogs in one place. This setup lets developers spin up new apps, check build states, and read docs fast. In production, the portal reads files from your source repos to build a central map. It also triggers workflows and opens pull requests when teams create new services. Getting the link right between both tools keeps your source code safe and clean. How backstage and github share keys and data The portal needs a clear path to
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 github to put code repos and service catalogs in one place. This setup lets developers spin up new apps, check build states, and read docs fast.
In production, the portal reads files from your source repos to build a central map. It also triggers workflows and opens pull requests when teams create new services. Getting the link right between both tools keeps your source code safe and clean.
How backstage and github share keys and data
The portal needs a clear path to read and write data in your code host. Most teams set up a dedicated app in their code host rather than personal keys. This app uses short-lived keys to read catalog files and team rosters on a schedule.
User login sits on top of this background sync to check who holds each role. A developer logs into the portal using their existing source control account. The portal then matches that user to their team and group roles right away.
Data flows in two main ways between the two systems during daily work. First, the portal pulls metadata files from repos to update the service list. When a developer edits a repo file, the portal spots the change and updates the view.
Second, the portal pushes new code when someone uses a template to build a service. The portal creates a fresh repo, writes starter files, and opens a pull request. Both paths need strict rules so the portal only touches what it should.
Common failure modes and how to scope roles
Many teams start fast by dropping a single admin token into the portal setup. This shared service account soon turns into a big risk for the whole company. If that broad token leaks, an attacker can read or delete every single repo.
Shared tokens also ruin your audit logs when things go wrong in production. Every action in the code host looks like it came from the same bot user. You cannot tell which developer ran a template or triggered a build job.
GitHub Actions Security + End-to-End Encryption: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
Rate limits cause another big headache when teams rely on a single static key. A large team reading hundreds of repos will burn through the hourly limit fast. When the limit hits zero, catalog updates stop and template runs fail right away.
To fix this, split your read roles from your write roles at the start. Give the background reader role access only to catalog files and team lists. Never give the background sync job the power to push code or delete branches.
For write actions, tie the action back to the human who clicked the button. Have the user approve the action with their own login before the portal writes code. This keeps your audit trail clean and stops users from bypassing branch rules.
Keeping templates and repo actions safe at scale
Software templates often run extra tasks after they create a new code repo. They might set up build pipelines, add team permissions, or register webhooks. Each of these steps needs careful scoping so a template cannot alter core rules.
Keep your template runners inside a locked network zone with strict outbound rules. Only allow the runner to talk to your code host and approved internal endpoints. Review template changes through pull requests just like you review production app code.
When templates handle sensitive data, make sure logs do not store raw secrets. Masking rewrites matched fields like emails, phone numbers, card numbers, or national IDs in results. This keeps private details out of build logs while teams check template runs.
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
Should we use a personal token or an app for the link?
Always use a dedicated app instead of a personal user token in production. An app gives you higher rate limits, finer role scopes, and stays active when staff leave.
How do we stop the portal from reading private repos?
Scope the app installation to specific repos instead of the whole account. Only grant read access to the exact repos that hold service catalog files.
Why do our catalog updates lag behind repo changes?
Polling hundreds of repos on a timer takes time and eats up rate limits. Set up webhooks so your code host sends events to the portal right after a commit.
Related guides
In this post