You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A string value is provided to the function when it gets called in the handleRequest function
// Verify signature using the same token as the Secret referenced in// Providerkey:="<token>"iferr:=verifySignature(r.Header.Get("X-Signature"), body, key); err!=nil {
http.Error(w, fmt.Sprintf("failed to verify HMAC signature: %s", err.Error()), http.StatusBadRequest)
return
}
The text was updated successfully, but these errors were encountered:
There is a type issue in the example provided for Generic Webhook with HMAC.
https://github.com/fluxcd/notification-controller/blob/main/docs/spec/v1beta2/providers.md#generic-webhook-with-hmac
The function verifySignature takes a key of type byte array.
A string value is provided to the function when it gets called in the
handleRequest
functionThe text was updated successfully, but these errors were encountered: