| This commit adds the "generic-hmac" Provider type for authenticating webhook requests coming from notification-controller. I extended the `Forwarder` notifier to accept an optional key used for generating the HMAC. If the key is nil or empty no HMAC header is generated and the forwarder behaves as before. If it is provided an `X-Signature` HTTP header is added to the request carrying the HMAC. I transformed the `TestForwarder_Post` test into a table-driven test so that we can use the same setup and testing code for testing HMAC and non-HMAC forwarder instances. Any existing `X-Signature` header value set through a `Provider.spec.secretRef` Secret's `header` field will be overwritten. closes #99 Signed-off-by: Max Jonas Werner <max@e13.dev> | ||
|---|---|---|
| .. | ||
| alert_types.go | ||
| condition_types.go | ||
| doc.go | ||
| groupversion_info.go | ||
| provider_types.go | ||
| receiver_types.go | ||
| reference_types.go | ||
| zz_generated.deepcopy.go | ||