When configuring Webhooks in SaaS console, you can set “Authentication” to “Secret HMAC”, which results in x-cv-signature-256 header being added to the payload with the digest of the message in it.
I would like to be able to validate the message by calculating the same digest at the receiving end and comparing to the value in the header. Trouble is, I cannot work out how Commvault generates the digest. For example, working with another API, the digest is calculated based on the HTTP method + current epoch + body + API endpoint.
I need to do this in Powershell but any guidance or code examples in other languages would be appreciated.