✨ Software.com is now Antenna. Read more →
Skip to Content

Bitbucket

Our Bitbucket integration collects metadata about your organization’s activity across repositories, pull requests, and deployments. We never read, transmit, or store source code. Sensitive data, such as branch names and pull request titles, are always encrypted.

To classify the work in each pull request from Bitbucket Cloud or Bitbucket Data Center, we also collect its description, changed file paths, and commit headlines (the first line of each commit message) when it is merged or closed. We encrypt this saved copy at rest and use it only for classification. See Pull Request Classification for the full list.

Antenna supports both Bitbucket Cloud (your repositories are hosted on bitbucket.org) and Bitbucket Data Center (your organization hosts and administers its own instance, previously sold as Bitbucket Server).

Connected Bitbucket Cloud before the Forge app was available? A workspace admin needs to migrate to the Forge app to keep data syncing.

Permissions

We request only the necessary permissions to analyze Git metadata. Below is a description of the scopes requested when connecting to Bitbucket Cloud:

  • Account: Ability to see all the user’s account information
  • Project: Access to projects
  • Pull Request: Read access to pull requests and collaborate on them
  • Repository: Read access to all the repositories the authorizing user has access to
  • Access runners: Access to runners (Pipelines on your own infrastructure)
  • Team: Ability to find out what teams the current user is part of

You can learn more about scopes for Atlassian Connect apps in Atlassian’s documentation .

For Bitbucket Data Center, we authenticate with an HTTP access token instead of an app installation. The token needs Project read and Repository read permissions.

Connecting Bitbucket Data Center

How the connection works

Antenna is a cloud-hosted service. There is no agent, collector, or appliance to install inside your network. All data collection happens as outbound HTTPS requests from Antenna to your instance:

Antenna (AWS, us-west-2) Your network ┌──────────────────────────┐ ┌────────────────────────────┐ │ Data importers │ HTTPS :443 │ Public DNS record │ │ │ ─────────────▶ │ + ingress (load balancer, │ │ Fixed set of five │ GET /rest/... │ reverse proxy, or WAF) │ │ egress IP addresses │ ◀───────────── │ │ └──────────────────────────┘ JSON metadata └─────────────┬──────────────┘ │ internal routing ▼ ┌────────────────────────────┐ │ Bitbucket Data Center │ └────────────────────────────┘
  • Antenna initiates every connection. Your instance never calls us, so you do not need webhooks, outbound firewall changes, or any inbound allowance on your side. Ingress to your Bitbucket instance is the only thing that has to change.
  • One protocol and one port: HTTPS over TCP 443. The instance URL you register must use https:// on the default port. URLs with a custom port (for example https://bitbucket.example.com:7990 or :8443) are rejected. If Bitbucket listens on another port internally, terminate 443 at your load balancer or reverse proxy and forward to it.
  • REST API only. We call read endpoints under /rest/api/latest/ for projects, repositories, pull requests, pull request activity, commits, and users. We never use the Git protocol: SSH (port 22 or 7999) and git clone are not part of the integration, and no source code is read, transmitted, or stored.
  • Token authentication. Requests carry an HTTP access token as a bearer token over TLS. The token is encrypted at rest.
  • Scheduled polling. We backfill history when you connect, then sync incrementally every two hours.

What to set up

RequirementDetails
Public DNS recordA hostname for the instance that resolves from the public internet, for example bitbucket.example.com. Internal-only names do not resolve from our cloud.
Inbound TCP 443HTTPS ingress to the instance, reachable from outside your network. This is the only port we need.
Valid TLS certificateA certificate from a publicly trusted CA that matches the public hostname. Self-signed certificates and private CAs fail the TLS handshake.
IP restriction (recommended)Restrict that ingress to Antenna’s five IP addresses so the instance is not exposed more broadly. See IP Allowlisting below.
Unmodified API pathsThe ingress must pass /rest/api/ paths through to Bitbucket and preserve the Authorization header.
HTTP access tokenCreated in Bitbucket with Project read and Repository read.

You do not need to open SSH (port 22 or 7999), allow any outbound traffic to Antenna, configure webhooks, or grant database access. A VPN is not required, but one is available if you can’t expose a public hostname. See Connecting via Private Network (VPN).

A common setup is a reverse proxy or load balancer in your DMZ that terminates TLS on 443, allows only Antenna’s source IP addresses, and forwards to the internal Bitbucket instance. Antenna only needs the public hostname to behave like the instance for REST API requests.

Connecting in Antenna

Create an HTTP access token

We recommend a dedicated service account user with access to every project you want to analyze, and a token set to never expire. A personal access token or a project access token (limited to a single project) also works. Grant Project read and Repository read.

Add the integration

In Antenna, go to Settings, select the Connected Apps tab, choose Bitbucket, then select Data Center.

Enter your instance details

Provide the Instance Base URL (the public https:// URL, with no port or query string) and the HTTP Access Token. Antenna validates the token against your instance before saving, so a failure here usually means the hostname is unreachable, the certificate is not trusted, or the token lacks read access.

Verifying connectivity

From a machine outside your network, confirm that the instance answers an authenticated REST request:

curl -i -H "Authorization: Bearer <token>" \ https://bitbucket.example.com/rest/api/latest/projects

A 200 response with JSON means Antenna can connect. A DNS failure, TLS error, or timeout points to the hostname, certificate, or firewall rules rather than the token.

Connecting via Private Network (VPN)

Some organizations run Bitbucket Data Center on an intranet-only network and cannot expose even a locked-down public hostname. For these organizations, we support an AWS Site-to-Site VPN (IPsec) tunnel between your network and Antenna. You don’t need an AWS account, only a VPN-capable firewall or router.

The Bitbucket integration only calls your instance. Your instance never calls Antenna, so the tunnel carries a single path: HTTPS requests from Antenna to your Bitbucket REST API.

This setup is intended for organizations with a compliance requirement for a private network connection. If you don’t have this requirement, use the standard connection described above instead.

What we need from you

Send the following to your Antenna account contact to get started:

  • Public static IP of the firewall or router that will terminate the VPN tunnel on your end. This IP must be static.
  • BGP ASN, only if you want dynamic (BGP) routing. If you don’t provide one, we use static routing.
  • Internal CIDR range where your Bitbucket instance lives, for example 10.10.2.0/24. It must not overlap Antenna’s network, in whole or in part. We share our range during scoping so you can check for overlap. Tell us if an overlap can’t be avoided.
  • Internal hostname and IP address of your Bitbucket instance, for example bitbucket.internal.example.com at 10.10.2.15. Bitbucket must answer HTTPS on port 443 at that hostname. If it listens on another port, put an internal load balancer or reverse proxy in front of it that terminates 443.
  • Who issued the TLS certificate on that hostname. The certificate must come from a publicly trusted CA. If it comes from an internal CA, tell us up front so we can plan for it.
  • VPN device make and model, if available. This lets us send you a ready-made configuration template instead of generic parameters.
  • Confirmation that your firewall allows outbound UDP 500 (IKE), UDP 4500 (NAT-T), and ESP (IP protocol 50) to our tunnel endpoints.
  • Confirmation that your internal firewalls and ACLs allow TCP 443, and its return traffic, from the Antenna source range we provide to your Bitbucket hostname and IP address.

What happens next

We create the connection

We create the connection on our end using your public IP and routing preference.

We send you the configuration

We send you a configuration file with pre-shared keys and tunnel endpoint addresses, matched to your device if you provided the make and model.

You apply the configuration

You apply the configuration to your VPN device and set up both tunnel endpoints for redundancy.

We confirm the tunnel is up

We confirm together that the tunnel is up and that Antenna can resolve your internal hostname.

You connect in Antenna

You connect in Antenna with your internal https:// URL and HTTP access token.

We verify the first sync

We verify that the first sync completes.

Access is scoped to your Bitbucket instance on port 443, not your full network. Because all traffic goes through the tunnel, you don’t need a public DNS record, inbound internet access, or the IP allowlist below.

IP Allowlisting

If your organization restricts access by IP address, you must allow traffic from Antenna before connecting a source such as your Git provider or LiteLLM proxy. All of our API requests come from a fixed set of load balancer IP addresses, so an active allowlist that does not include them will block data imports, and for Git providers, sign-in too.

Add all five addresses below. In tools that require CIDR notation, append /32 to each address (for example, 100.21.131.68/32).

IP addressDirection
100.21.131.68Inbound and outbound
54.200.57.76Inbound and outbound
52.37.32.106Inbound and outbound
44.241.124.75Inbound and outbound
54.69.112.12Egress (outbound requests from Antenna)

When an address is missing from your allowlist, the connection often looks successful while requests fail in the background with 403 errors and no data appears in your reports. If you are unsure whether an IP restriction is active, ask your provider administrator to confirm before connecting, or contact us at support@antenna.dev.

Last updated on