notification-controller icon indicating copy to clipboard operation
notification-controller copied to clipboard

Github signature is failing for organization-wide webhooks

Open DevSlashRichie opened this issue 3 years ago • 4 comments

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"}

DevSlashRichie avatar Jan 05 '22 18:01 DevSlashRichie

Have you followed the steps described here https://fluxcd.io/docs/guides/webhook-receivers/#define-a-git-repository-receiver?

stefanprodan avatar Jan 05 '22 19:01 stefanprodan

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?

kingdonb avatar Jan 05 '22 20:01 kingdonb

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.

DevSlashRichie avatar Jan 05 '22 21:01 DevSlashRichie

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?

somtochiama avatar Jan 10 '22 11:01 somtochiama