bitbucket build ip whitelisting

David Co November 20, 2024

We have a private repository on bitbucket cloud with automated builds setting via build pipelines. Recently the builds have been failing as the build process can not access our repository. 

remote: To access this repository, an admin must whitelist your IP. fatal: unable to access 'https://bitbucket.org/xxxxxx/static-libs.git/': The requested URL returned error: 403


We've tried whitelisting the ip addresses of the build servers , but they're constantly changing. We trust the atlassian build servers to pull down our repo, is there any way we can enable this ?

2 answers

1 vote
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 22, 2024

Hi everyone,

 

The error message indicates that your workspace is using the IP allowlisting feature available on the Premium plan.

We have recently updated our 1x/2x size option builds to operate from new, broader IP ranges.

The documentation of Bitbucket Pipelines Cloud IP addresses is divided into two sections:

  • Section 1: Valid IP addresses for Bitbucket Pipelines build environments

    This section applies to 1x/2x step sizes (or 4x/8x steps that have not been explicitly flagged to use atlassian-ip-ranges). An exhaustive list of IP addresses from which the traffic may originate on AWS can be obtained by using the following endpoint. You should filter records where the service equals EC2 or S3, and focus on the us-east-1 and us-west-2 regions. However, we do not recommend using these IP ranges as a security control due to their broad nature.

  • Section 2: Atlassian IP Ranges

    This section pertains to steps specifically configured to use Atlassian IP ranges. These are applicable only to 4x and 8x size steps that have the atlassian-ip-ranges: true flag enabled. The step sizes 4x and 8x are only available for builds running under a paid Bitbucket Cloud plan (Standard or Premium).

    For teams who need their builds to run from a more restricted set of IP addresses, we recommend using this option. This option provides enhanced security by limiting the IP addresses to a smaller, more manageable list. 

    Please Note: Opting for larger step sizes (4x/8x) may impact billing. We encourage you to review the relevant documentation on step sizes here to understand these implications fully.

I hope this helps. Please let me know if you have any additional questions.

Kind regards,
Theodora

0 votes
Divya Naidu November 21, 2024

+1

Same issue. It started failing from yesterday.


image.png

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin Site Admin
TAGS
AUG Leaders

Atlassian Community Events