Skip to content

Integrate Bitbucket with BoostSecurity


BoostSecurity lets you connect your Bitbucket organization to scan repositories, pull requests, and code commits for security issues.


Prerequisites


As a pre-requisite to installing the application:

  • The option Enable development mode must be selected in your Bitbucket's workspace's Installed Applications settings. To do this, go to your BitBucket organization workspace settings > Installed Apps and then select the Enable Development Mode.

    Enable Dev Mode

  • You must enable Two Factor Authentication, i.e., 2FA enabled. To enable 2FA, go to Bitbucket's two0step verification page, follow the steps provided, and click on Enable two-step verification to complete the process.

    Enable two-step verification

  • Allowed development apps to be installed. You can do this by navigating to this url https://bitbucket.org/<your-bitbucket-org>/workspace/settings/addon-management. Replace <your-bitbucket-org> with the name of your Bitbucket organization.

As a prerequisite to enabling Zero Touch Provisioning, ensure to also have:

  • Created a non-empty .boost repo in the Bitbucket workspace. To do this, go to your Bitbucket workspace where you installed BoostSecurity and create a new .boost repo that contains a Readme file.

    Bitbucket Boost Repo

  • Turned on the Enable Pipelines settings for your workspaces' .boost repository, i.e, https://bitbucket.org/<your-bitbucket-org>/.boost/admin/pipelines/settings. You can do this by clicking the Enable Pipelines button as shown above and turning it on.

    Enable Pipelines


1. Connect Bitbucket to BoostSecurity


To install the BoostSecurity App on your Bitbucket workspace, follow these steps:

  1. Navigate to the Integration view. I.e., in Settings > Integrations. Select the Bitbucket integration from the Available section.
  2. Select Install, and you will be directed to authorize access to BoostSecurity for your workspace.

    Install Bitbucket

  3. Select the appropriate Bitbucket workspace for which you want to authorize the BoostSecurity App.

  4. Select Grant access.

    Grant Access

Once the installation is completed, the BoostSecurity Bitbucket card is added to the Settings > Integrations > Installed section. At this point, the BoostSecurity App is installed in your Bitbucket workspace.

Installed BitBucket Instance


2. Zero Touch Provisioning for Bitbucket


Follow these steps to set up ZTP for Bitbucket:

  1. Go to the Integrations page, select your Bitbucket integration, and click on the configuration tab.

  2. On the ZTP column, you will notice that the status is set to Not Set. Click on the menu next to the status and select Enable.

    Enable ZTP

  3. The first step on the ZTP Wizard is to give BoostSecurity permissions for the Zero Touch Flow on your Bitbucket organization.

  4. Click the Install ZTP Application button to redirect you to your Bitbucket organization.

    Install ZTP Application

  5. Install and authorize the BoostSecurity.io Zero Touch provisioning on all organizations. Click on the Grant Access button at the bottom of the page.

    Grant Access

  6. BoostSecurity configures the .boost repo on successful BoostSecurity.io Zero Touch Provisioning installation.

  7. You are required to grant access to BoostSecurity.io CI provisioning on your account.

    Grant Access

    Please note the warning below:

    Please verify that the "Enable Pipeline" setting is turned on for your organization's .boost repository.

  8. The pipeline configuration is ready after a successful CI pipeline configuration!

    Successful ZTP

    Note

    By clicking the Enable Boost Recommended Scanners button, Boost will provision multiple scanners for every repository it has access to. These scanners will then request new scans to be conducted for each of those repositories. Please note that this process would have a financial impact on your services, so ensure that this is the correct course of action before proceeding.

    If you are connecting to a large collection of repos, you may want to enable scanning in a more targeted manner.

Zero Touch Provisioning is now enabled!!!


3. Enable Default Scanner Protection


After successfully integrating your Bitbucket organization, enabling the BoostSecurity scanner is recommended.

To do this,

  1. Navigate to the Scanner Coverage page and select the Default Scanner Protection column for your Bitbucket integration.

  2. Toggle SBOM, SCA, or Secrets to enable the BoostSecurity Scanner default protection on your Bitbucket resource.

    Enable CI/CD Scanner