The Simplest Way to Make Bitbucket and Compass Work Like They Should
Teams pair bitbucket and compass to link source code with software catalogs. This setup turns repo activity into clear health scores and deployment metrics. Code hosts hold your files, branches, and build scripts. Developer portals track who owns each service and how well it runs. Linking these two systems gives engineers one place to check service health. You do not need to jump between ten tabs during an outage. Instead, the portal reads repo events and updates service scorecards right away.
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 bitbucket and compass to link source code with software catalogs. This setup turns repo activity into clear health scores and deployment metrics.
Code hosts hold your files, branches, and build scripts. Developer portals track who owns each service and how well it runs. Linking these two systems gives engineers one place to check service health. You do not need to jump between ten tabs during an outage. Instead, the portal reads repo events and updates service scorecards right away.
How bitbucket and compass share data and permissions
The link between bitbucket and compass relies on app links and webhooks. First, an admin installs the catalog app inside the code workspace. This step sets up a trust link between the two cloud tools. Next, the code host sends event payloads whenever developers push commits or merge code. Build pipelines also send status updates back to the catalog.
Permissions flow through workspace roles and project access rules. The integration uses a system token to read repo files and branch details. Teams can also manage component details by keeping a config file in the repo. When someone edits that file, the code host alerts the catalog. The catalog then reads the new changes and updates the service page. This flow keeps ownership data close to the source code.
Good data flow depends on clean repo mapping. Each service in the catalog should point to its exact repo path. When a build runs, the pipeline sends the build state to the catalog. Engineers then see pass rates, deploy counts, and cycle times on one dashboard.
Common failure modes and how to scope roles
Many teams hit snags when they use broad admin tokens for this link. If one personal account sets up the integration, the link breaks when they leave. Shared service accounts with full write power also create big security risks. Anyone who gets that token can change code across every project. Unlogged queries between tools also make it hard to spot bad scripts.
To fix this, scope your permissions down to the lowest level needed. The catalog only needs to read repo details and listen to webhook events. It rarely needs permission to push code or delete branches. Create a dedicated bot role for the integration instead of using a personal login. Grant this role access only to the workspaces that hold production services. Keep test sandboxes and private repos out of the shared scope.
End-to-End Encryption + Bitbucket Pipelines Security: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
Teams also run into trouble when config files drift out of sync. If two repos claim the same catalog component, metrics get mixed up. Set a clear rule so one repo folder maps to one catalog entry. Check your webhook logs often to spot dropped events or expired tokens.
Keeping service metrics and audit logs clean
Once the integration runs, focus on keeping the data clean and safe. Pipeline scripts often send build logs and commit messages to the catalog. Make sure developers do not put secrets or private customer data in commit notes. If a log contains emails or phone numbers, masking rewrites matched fields in results. This keeps sensitive strings out of shared dashboards.
Review your workspace audit logs every month to check what the app reads. Look for failed login calls or odd spikes in API traffic. When you add new teams, give them narrow roles in both tools. Good role hygiene keeps your software catalog accurate and your source code safe.
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
What data moves between the code host and the catalog?
The code host sends commit history, pull request states, and build results. It also sends config file updates when teams manage catalog data as code.
Why did my service metrics stop updating on the dashboard?
Metrics usually stop when a workspace token expires or a webhook breaks. Check the app link settings and make sure the bot role still has read permissions.
Should the catalog app have write permissions to our repos?
Read permissions are enough for tracking metrics and reading config files. Only grant write permissions if you want the catalog to create pull requests for you.
Related guides
In this post