notification-controller
notification-controller copied to clipboard
Github signature is failing for organization-wide webhooks
It seems that when I receive a webhook from github it throws the following error.
{"level":"error","ts":"2022-01-05T07:01:11.885Z","logger":"receiver-server","msg":"unable to validate payload","reconciler kind":"Receiver","name":"github-receiver","namespace":"flux-system","error":"the GitHub signature header is invalid, err: payload signature check failed"}
Have you followed the steps described here https://fluxcd.io/docs/guides/webhook-receivers/#define-a-git-repository-receiver?
Related:
- https://github.com/fluxcd/flux-recv/issues/34
This is failing because @RicardormDev is using an Organization-wide webhook. Is there any chance we will support those soon?
Related:
* [Github webhook is throwing an error. flux-recv#34](https://github.com/fluxcd/flux-recv/issues/34)
This is failing because @RicardormDev is using an Organization-wide webhook. Is there any chance we will support those soon?
Thanks.
Hey @RicardormDev ,
I tried using an Organization-wide Webhook and it worked okay for me(with the current version of flux - 0.24.1
). How did you set up your webhook?
Please, can you cross-check that the secret you used with the receiver is the same as the one you used for creating the webhook on Github?