Skip to content
Playground(another site)

bynk.actor.signature_tolerance_without_timestamp

Error A Signature actor set tolerance without a timestamp header.

tolerance is how many seconds old a signed request may be before it is refused, which limits replay of a captured one. The age is read from a timestamp header, so tolerance needs timestamp = "…" naming it; alone it has nothing to compare against. Add the timestamp, or drop tolerance and accept that a captured request can be replayed.

Example

actor Hook { auth = Signature(secret = "WEBHOOK_KEY", header = "X-Sig", tolerance = 300) } // ✗ age of what?
actor Hook { auth = Signature(secret = "WEBHOOK_KEY", header = "X-Sig", timestamp = "X-Time", tolerance = 300) } // ✓

In the Book

See also

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