The Simplest Way to Make Backstage and Bitbucket Work Like They Should
Integrating backstage and bitbucket lets teams track software services and automate new code repos. Backstage reads service files from Bitbucket to build one central catalog for developers. This setup removes manual tracking for engineering teams. Developers can find service owners, read docs, and start new projects in one portal. Platform teams set up rules once and share them across the whole company. How backstage and bitbucket share data and permissions Backstage needs read and write per
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 bitbucket lets teams track software services and automate new code repos. Backstage reads service files from Bitbucket to build one central catalog for developers.
This setup removes manual tracking for engineering teams. Developers can find service owners, read docs, and start new projects in one portal. Platform teams set up rules once and share them across the whole company.
How backstage and bitbucket share data and permissions
Backstage needs read and write permissions to work with your Bitbucket workspaces. First, an admin creates an app credential or access token inside Bitbucket. Next, the admin adds that key to the Backstage backend config file.
Once linked, the portal scans your Bitbucket workspaces on a set schedule. It looks for catalog descriptor files stored at the root of each repo. When it finds a file, it pulls the metadata into the portal database.
Data also flows the other way when developers create new software services. A developer fills out a short form in the portal software template. Backstage then calls the Bitbucket API to create a fresh code repo. It pushes starter code and opens a pull request for the team.
Teams can also link login systems so users sign in with their workspace accounts. This step maps each portal user to their real team role. It helps track who owns each service and who started each build.
Common failure modes and how to scope roles
Many teams make the mistake of using one personal admin key for everything. If that admin leaves the company, the whole portal stops syncing code updates. Worse, a personal admin key often has full write power over every repo.
Broad tokens create a big risk if an attacker steals the portal config. Anyone with that key can read private source code or delete production branches. Shared service accounts also hide who ran an action inside the audit logs.
End-to-End Encryption + Backstage Security Plugins: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
Unlogged API calls cause trouble during security audits too. When fifty developers create repos through one bot account, Bitbucket logs look identical. Security teams cannot tell which user created a repo or changed a branch.
To fix this, split your keys by task and limit their permissions. Use a read-only workspace token for the catalog scanner so it cannot alter code. Use a separate key with narrow write rules for your software template tasks.
You should also lock down network paths between the portal and your code host. If you run a self-hosted Bitbucket server, put it on a private network. Allow traffic only from the specific IP address of your Backstage server. Rotate your keys on a set schedule and watch API rate limits closely.
Keeping catalog sync and repo templates fast
Polling thousands of repos every few minutes will slow down your portal fast. It can also use up your Bitbucket API rate limit for the hour. When the limit runs out, developers cannot create new projects or load docs.
Switch from scheduled polling to webhook events whenever your setup allows it. With webhooks, Bitbucket sends a small message only when a catalog file changes. Backstage updates that single service right away and leaves other repos alone.
Keep your starter templates small and clean to speed up new repo builds. Avoid storing large binary files inside your template folders. Fast templates help developers get to work without waiting on slow file transfers.
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
How does Backstage find new repositories in Bitbucket?
Backstage runs a discovery processor that checks your Bitbucket workspace through the API. It scans repos for catalog files and registers new components on its own.
Should we use a personal password to link the two tools?
No, never use a personal user password for system links. Use a dedicated workspace token or app credential scoped only to the needed permissions.
Why are changes in Bitbucket not showing up in the portal?
This delay usually happens when webhook events fail or API rate limits run out. Check your backend logs for auth errors and verify that webhook URLs match.
Related guides
In this post