Bitbucket Server/Data Center - environment variables for Snyk Broker Basic Auth

The following environment variables are required to configure the Broker client:

  • BROKER_TOKEN - the Snyk Broker token, obtained from your Bitbucket Server integration settings view (

  • BITBUCKET_USERNAME - the Bitbucket Server username.

  • BITBUCKET_PASSWORD - the Bitbucket Server password. You can use an API token in place of a password.

  • BITBUCKET - the hostname of your Bitbucket Server deployment, such as

  • BITBUCKET_API - the API endpoint of your Bitbucket Server deployment. Should be $BITBUCKET/rest/api/1.0.

  • BROKER_CLIENT_URL - the full URL of the Broker client as it will be accessible to your Bitbucket Server for webhooks, such as http://broker.url.example:8000.This URL is required to access features such as PR Fixes or PR Checks.

  • PORT - the local port at which the Broker client accepts connections. Default is 8000.

  • ACCEPT_IAC - by default, some file types used by Infrastructure-as-Code (IaC) are not enabled. To grant the Broker access to IaC files in your repository, such as Terraform for example, you can simply add an environment variable ACCEPT_IAC with any combination of tf,yaml,yml,json,tpl

  • ACCEPT_CODE - by default, Snyk Code will not load code snippets. To enable code snippets you can add an environment variable ACCEPT_CODE=true

  • ACCEPT_APPRISK - enable Snyk AppRisk to identify your application assets, monitor them, and prioritize the risks. To enable Snyk AppRisk, add the environment variable ACCEPT_APPRISK=true

Last updated

More information

Snyk privacy policy

© 2023 Snyk Limited | All product and company names and logos are trademarks of their respective owners.