Skip to content
Playground(another site)

bynk.actor.signature_missing_header

Error A Signature actor does not name its signature header.

A Signature actor reads the sender's signature from a request header, and the header's name is the sender's choice, so the actor must say which one. Add header = "…" with the name of the header that carries the HMAC. Without it the compiler has no way to find the signature to check the body against.

Example

actor Hook { auth = Signature(secret = "WEBHOOK_KEY") } // ✗ which header holds the signature?
actor Hook { auth = Signature(secret = "WEBHOOK_KEY", header = "X-Sig") } // ✓

In the Book

See also

  • Every code in its category, Actors, on the diagnostic index.
  • bynk explain bynk.actor.signature_missing_header shows the same from the installed toolchain, without a network.