bynk.actor.signature_missing_secret
Error A Signature actor does not name its signing secret.
A Signature actor checks an HMAC of the request body, so the compiler needs the key to check it against. Name the environment variable that holds it: secret = "WEBHOOK_KEY". The string is the variable's name, never the key itself, so no secret is written in the source. A Bearer actor has its own bynk.actor.bearer_missing_secret.
Example
actor Hook { auth = Signature(header = "X-Sig") } // ✗ no signing secret named
actor Hook { auth = Signature(secret = "WEBHOOK_KEY", header = "X-Sig") } // ✓ the env var that holds the keyIn the Book
See also
- Every code in its category, Actors, on the diagnostic index.
bynk explain bynk.actor.signature_missing_secretshows the same from the installed toolchain, without a network.