The Simplest Way to Make Bitbucket and Cortex Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

Integrating bitbucket and cortex links your code repos to a central service catalog. Teams use this link to track ownership, check build standards, and run scorecards. When these two systems share data, you see who owns each repo right away. You can also check if a service meets your production rules before deployment. How bitbucket and cortex share data and permissions The link between bitbucket and cortex starts with an app credential or token. You set up an app or workspace credential ins

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 bitbucket and cortex links your code repos to a central service catalog. Teams use this link to track ownership, check build standards, and run scorecards.

When these two systems share data, you see who owns each repo right away. You can also check if a service meets your production rules before deployment.

How bitbucket and cortex share data and permissions

The link between bitbucket and cortex starts with an app credential or token. You set up an app or workspace credential inside your source control system. Then you give that credential to the catalog platform so it can read repos.

Once linked, the catalog reads repo metadata, branch rules, and file contents. It looks for manifest files at the root of each code repo. These files tell the catalog who owns the service and what it depends on.

Webhooks also send live events from the source control tool to the catalog. When a developer merges code or changes a file, the webhook fires right away. This keeps your service scorecards fresh without waiting for a slow background scan.

Data can flow back the other way when teams scaffold new services. A developer picks a template in the catalog to start a new project. The catalog then uses write permissions to create a new repo and push code.

Common failure modes and how to scope roles

Many teams make the mistake of using a personal account for this link. If that person leaves the company, the integration breaks and scorecards stop updating. Shared service accounts with full admin rights also create big security risks.

Broad tokens let the catalog read or change every repo in your workspace. If someone steals that token, they can read private code or push bad changes. Unlogged API calls also make it hard to see what changed a repo.

End-to-End Encryption + Bitbucket Pipelines Security: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

You should fix this by creating a dedicated bot account or workspace app. Give this account read-only permissions for normal catalog scans and scorecard checks. Only grant write permissions to the specific projects where you create new repos.

Keep your webhook secrets safe and rotate your API keys on a regular schedule. If you host your own code server, lock down the network path. Only allow traffic from known catalog IP addresses to reach your source control server.

Check your audit logs often to see which repos the catalog reads. Make sure your manifest files do not hold secret keys or private data. If sensitive fields like emails or phone numbers appear, masking rewrites matched fields in results.

Keeping service scorecards fast and accurate

A good setup keeps your service data clean without extra manual work. Start by mapping a few core repos before you link the whole workspace. Check that webhook events arrive and update the catalog within a few seconds.

When teams trust the catalog data, they fix broken build rules much faster. Clear role scopes and clean logs keep both your code and catalog safe.

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

What permissions does the catalog need to read repos?

The catalog needs read access to repo metadata, branch settings, and source files. It only needs write access if you use templates to create new repos.

Why are my service scorecards not updating after a merge?

Check if your webhook is active and sending push events to the catalog. Also verify that your workspace token has not expired or lost read rights.

No, you should never use a personal user account for production tool links. Always use a dedicated workspace app or bot account with narrow role permissions.

The query runs. The emails stay hidden.