robusta-dev / kubewatch

Watch k8s events and trigger Handlers
Apache License 2.0
547 stars 79 forks source link

Custom Headers for Webhook and CloudEvents Handlers #27

Open firecube-oss opened 1 year ago

firecube-oss commented 1 year ago

How possible would it be to add custom headers to webook and CloudEvent handlers?

A couple of the services we use require Authentication headers to process webhooks

firecube-oss commented 1 year ago

Something like this: https://github.com/argoproj/notifications-engine/blob/master/pkg/services/webhook.go#L69-L84

arikalon1 commented 1 year ago

Thanks for reporting it @firecube-code This might be useful for many users

Would you be interested in contributing a PR for this change?