Skip to main content

webhook-payload-verification-digest-encoding-requires-hmac-algorithm

Overview

This rule belongs to the openapi-v3-apimatic-linting ruleset and states that:

The digestEncoding property in payload verification is only applicable when using HMAC-based algorithms. Using digest encoding with non-HMAC algorithms is not supported.

PropertyValue
EnabledYes
Maximum SeverityError
MessageDigest encoding can only be used with HMAC-based payload verification algorithms.
CodeOPENAPI3APIMATIC_L1048
TypeLinting
Rule SystemSemantic
Broad CategoryOpenAPI Webhooks
Products ImpactedCode Generation, Developer Experience Portal
Tagsopenapi3 openapi apimatic semantic linting webhook payload verification digest encoding hmac algorithm

Suggested Fixes

  • Remove the digestEncoding property if the algorithm is not HMAC-based.
  • Switch to an HMAC-based algorithm if digest encoding is required.

For More Information