Skip to main content

payload-verification-invalid-algorithm

Overview

This rule belongs to the apimatic-codegen-validation ruleset and states that:

The algorithm specified in the payload verification configuration isn't supported. Payload verification requires either HMAC-SHA256 or HMAC-SHA512 algorithms to ensure secure message signing and verification. Other algorithms aren't supported by the current implementation.

PropertyValue
EnabledYes
Maximum SeverityError
MessageInvalid algorithm specified for payload verification. Only HMAC-SHA256 and HMAC-SHA512 are supported.
CodeAPIMATICCODEGEN_V551
TypeValidation
Rule SystemSemantic
Broad CategoryWebhooks
Products ImpactedCode Generation, Developer Experience Portal
Tagsapimatic code generation codegen sdks portal docs validation apimatic payload verification algorithm security HMAC signature

Suggested Fixes

  • Use 'HMAC-SHA256' for SHA-256 based HMAC signing.
  • Use 'HMAC-SHA512' for SHA-512 based HMAC signing.
  • Check the algorithm string for typos or case sensitivity issues.
  • Ensure the algorithm value matches exactly: 'HMAC-SHA256' or 'HMAC-SHA512'.
  • Refer to the API specification documentation for supported algorithm values.

For More Information