Proxy Bitbucket Cloud with Go

JFrog Artifactory Documentation

Products
JFrog Artifactory
Content Type
User Guide
ft:sourceType
Paligo

Go Proxy Best Practice: Add Mirror Repository

We highly recommend that you create a remote repository pointing to the default go mirror (gocenter.io) and enter Artifactory as the Git provider. This way, Artifactory will be able to resolve cached public modules without querying the external registry, reducing the chance of rate limiting. For more information, see Set Up Go Proxy Mirror Repositories.

To create a remote repository that serves as a caching proxy for Bitbucket Cloud, follow these steps:

  1. Create a new remote repository and set Go as the Package Type.

  2. Set the Repository Key value, and enter https://bitbucket.org/ in the URL field.

  3. In the Go Settings tab, set the Git Provider as Bitbucket Cloud.

  4. In the Advanced tab, enter your Bitbucket username and password. To generate a Bitbucket password:

    1. Go to your Bitbucket account, click the gear icon in the top right corner, and select Personal Bitbucket settings.

      Bitbucket_cloud_1.png
    2. Go to App passwords, and click Create app password.

      bitbucket_cloud_2.png
    3. Select permissions for your password: select Read permission for Repositories, and if you need to, add other permissions according to your environment. When you are done, click Create.

      bitbucket_cloud_3.png
    4. Copy the password you created, and paste it into the Password field in the JFrog platform.

  5. Click Save & Finish.

  6. Create a new virtual repository and under Repositories, select the remote repository you have created. You can use the virtual repository to resolve artifacts from your Bitbucket Cloud private registry.