Create application link in Bitbucket Server - This app-link needs to be configured at an admin level in Bitbucket which should scope all the repositories that need to be integrated.
To create an Incoming Application Link:
Go to Administration > Applications > Application links.
Select Create link.
Select External application, and then choose Incoming as the direction.
Provide RedirectUrl : https://cb.privado.ai/code.html
Permissions : Application Repositories - Read
After providing the Redirect URL and selecting the scopes, Bitbucket will generate the OAuth credentials. Refer to below sample screenshot.
Copy client Id and secret generated after application link is created as this will be required while connecting with Privado.
Connecting Bitbucket Enterprise with Privado:
After signing up, you will be redirected to the onboarding page. As part of onboarding, you will be prompted to connect Privado with your source code management tool for scanning the repositories.
NOTE : It is required that you have Bitbucket admin access while connecting Privado. If you do not have admin access you can add a team member with Bitbucket admin access by clicking on "Invite a Team member" and continue with below steps.
Select Bitbucket Enterprise by clicking on Setup
2. You will be redirected to Bitbucket and prompted to enter the following values.
Host : Typically its is the format "https://bitbucket.<company-domain.com>
Bitbucket Client ID : Refer to point 3 under pre requisites section for the Client ID
Bitbucket Client Secret : Refer to point 3 under pre requisites section for the Client Secret
3. Upon successful login, Bitbucket will prompt you to Authorise the Privado app. These permissions allow us to scan the code repositories. Please select Grant access
(Note : Privado requires read only permissions to connect with Bitbucket. Privado does not copy or store any code that it discovers)
Upon successful connection Privado will fetch the repositories. The next step in onboarding is to follow the steps mentioned in Selecting Repositories