Atlantis uses Webhook secrets to validate that the webhooks it receives from your Git host are legitimate.
One way to confirm this would be to allowlist requests to only come from the IPs of your Git host but an easier way is to use a Webhook Secret.
Webhook secrets are actually optional. However they're highly recommended for security.
Azure DevOps uses Basic authentication for webhooks rather than webhook secrets.
An app-wide token is generated during GitHub App setup. You can recover it by navigating to the GitHub app settings page and selecting "Edit" next to your Atlantis app's name. Token appears after clicking "Edit" under the Webhook header.
Bitbucket.org does not support webhook secrets. To mitigate, use repo allowlists and IP allowlists. See Security for more information.
Generating A Webhook Secret
You can use any random string generator to create your Webhook secret. It should be > 24 characters.
- Generate via Ruby with
ruby -rsecurerandom -e 'puts SecureRandom.hex(32)'
- Generate online with https://www.browserling.com/tools/random-string
You must use the same webhook secret for each repo.
- Record your secret
- You'll be using it later to configure your webhooks, however if you're following the Installation Guide then your next step is to Deploy Atlantis