Bitbucket Cloud has launched a new feature enabling webhook secrets, allowing users to sign webhook payloads with a secret token for authentication and tamper protection. This enhancement helps secure integrations by verifying that webhook requests originate legitimately from Bitbucket Cloud.

  • Adds HMAC signature verification to webhook payloads with secret tokens
  • Improves security and reliability of automated workflows and integrations
  • Supports safer integration with on-premises tools like Jenkins

What happened

Atlassian announced the release of webhook secrets for Bitbucket Cloud, a feature that allows webhook payloads to be signed with a secret token. This is designed to ensure payloads are sent solely by Bitbucket Cloud and have not been tampered with during transmission.

Users can generate or set a custom high-entropy secret token when creating or editing webhooks. Bitbucket uses this token to generate an HMAC signature included in the webhook delivery header, which recipients can verify using the same secret and hashing algorithm.

Why it matters

Webhooks facilitate automated responses to repository events, but without secure validation, they can be intercepted or spoofed, potentially leading to security breaches or disrupted workflows. The webhook secret feature provides a cryptographic way to prove message integrity and source authenticity.

This is particularly important for teams integrating Bitbucket Cloud with on-premises CI/CD platforms like Jenkins, where IP whitelisting alone is insufficient. The new security capability enables webhook triggering without relying on inefficient polling and avoids issues like API rate limiting.

What to watch next

Developers and teams using Bitbucket Cloud are encouraged to activate webhook secrets for all their webhooks to maximize security and workflow reliability. Atlassian has provided example code in Java and Python to assist with HMAC signature verification implementation.

Future updates may expand on webhook security with further integration options or enhanced tooling support. Organizations should follow best practices in secret management, keeping tokens secure and out of source code, to fully benefit from this new security layer.

Source assisted: This briefing began from a discovered source item from Atlassian Blog. Open the original source.
How SignalDesk reports: feeds and outside sources are used for discovery. Public briefings are edited to add context, buyer relevance and attribution before they are published. Read the standards

Related briefings