Configure Bitbucket Artifact Credentials
If the files are hidden behind basic auth, you can configure an artifact account with the needed credentials to read your artifact.
Download credentials
-
Collect your basic auth
$USERNAMEand$PASSWORD -
Pick a
$USERNAME_PASSWORD_FILElocation on your disk -
Run:
echo ${USERNAME}:${PASSWORD} > $USERNAME_PASSWORD_FILE
Add the credentials either to a secrets manager for use by reference or to a volume mounted into the clouddriver pods by modifying the deployment.yaml for clouddriver.
Add the account and enable it
Enable the Bitbucket artifact provider in clouddriver-local.yml and add an artifact account:
artifacts:
enabled: true
bitbucket:
enabled: true
accounts:
- name: my-bitbucket-account
username-password-file: /mnt/password/file
Add the password file either to a secrets manager or to a volume mounted into the clouddriver pod by modifying the deployment.yaml for clouddriver.
more configuration for an account is available looking at the account code.