X-Docistra-Signature header:
tis when it was signed (Unix seconds).v1is the hex HMAC-SHA256 of"<t>.<raw request body>", keyed with your endpoint’s signing secret.
- Read the raw body, before any JSON parsing.
- Compute
HMAC-SHA256(secret, t + "." + rawBody)as hex. - Compare it with
v1in constant time. - Reject it if
tis more than 5 minutes away from now (replays).