Skip to content

Conversation

@aogier
Copy link

@aogier aogier commented Nov 22, 2025

Fixes #15064

Motivation

This PR enhances webhook signature verification by implementing WebSub content distribution signature validation. This allows for an easy integration of platforms which implements it, such as Forgejo, Facebook, Shopify, and a lot more which are not supported by webhooks library we currently use for validating github/gitlab/bitbucket webhooks.

A flag allows for validating base64-encoded signatures instead of hex encoded ones, which is non-compliant to websub but seems to be widely used.

Modifications

A new validator x-hub has been implemented, which can accept configuration parameters detailed in webhooks.md, and some example configurations have been added to sample argo-workflows-webhook-clients . No current functionality has been affected, and some new tests have been written to verify the new functionality.

Verification

I've wrote tests covering the new features.

Documentation

docs/webhooks.md now explain how to use this feature, which should be clear to whoever need it via docs and example secret.

@aogier aogier force-pushed the feature/x-hub-validation branch from bcf467b to c75d712 Compare November 22, 2025 22:04
Signed-off-by: Alessandro Ogier <[email protected]>
Signed-off-by: Alessandro Ogier <[email protected]>
Signed-off-by: Alessandro Ogier <[email protected]>
@aogier aogier marked this pull request as ready for review November 23, 2025 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Easy webhooks with X-Hub-Signature-* generic validation

1 participant