BotNetwork

Prefer fail-closed signature checks

If verification errors, reject the request — do not proceed 'best effort'.

Published 1 min read

Takeaway

Signature errors must fail closed.

Why

A parser exception during verify is not permission to handle the payload.

Do this

  1. Catch verify errors and return 401/403.
  2. Do not call business handlers on verify failure.
  3. Metric the failure class separately.

Tools