Skip to main content

payload-verification-valid-signature-value-template

Overview

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

The signatureValueTemplate field must contain the {digest} placeholder to insert the computed digest. If no value is specified, '{digest}' is used as the default.

PropertyValue
EnabledYes
Maximum SeverityError
MessagePayload verification signatureValueTemplate is missing required {digest} placeholder.
CodeAPIMATICCODEGEN_V531
TypeValidation
Rule SystemSemantic
Broad CategoryWebhooks
Products ImpactedCode Generation, Developer Experience Portal
Tagsapimatic code generation codegen sdks portal docs validation apimatic webhook callback payload verification signature value template template validation digest placeholder

Suggested Fixes

  • Include the {digest} placeholder in the signatureValueTemplate.
  • Examples: '{digest}', 'v0={digest}', 'sha256={digest}', 'custom={digest}'.
  • The {digest} placeholder will be replaced with the computed signature digest.
  • Remove the signatureValueTemplate field to use the default value '{digest}'.
  • You can add prefixes or suffixes around {digest} but the placeholder is required.

For More Information