SANJIESAN WORLDJOURNAL / COLLECTIONS / SANJIESAN
SANJIESANTOOLS

SANJIESAN TOOLS / Server-side integrations

Readable webhook JSON is not a verified instruction

A callback body can parse as JSON while its source is unverified. That is why syntax validation is only one boundary in an integration. GitHub’s webhook documentation requires signature verification before further processing and secure server-side secret storage. Use the actual provider’s documented mechanism; a static frontend must not contain the secret or impersonate this server-side trust boundary.

Identify the provider’s exact verification input

Read which headers, secret and payload representation the provider uses. GitHub documents an HMAC signature over the payload and describes appropriate comparison methods. Do not replace that contract with a plain body checksum or a claim that the URL looks familiar. Preserve the input required by the documented verifier before an application transforms it. Keep the example on a local harmless fixture and never publish a real secret in a guide or repository.

Define failure before defining success

Prepare fixtures for a missing signature, a mismatched payload and a valid documented example. State that unverified fixtures must not reach a real business effect. Keep parse errors distinct from failed authentication so the implementation can report the correct internal cause without leaking secrets. Do not make the browser’s visible success banner the evidence that verification ran. The server-side boundary needs its own review and test evidence.

Authorise the actual event after verification

A verified delivery still needs the expected event, action, account and business-state checks required by the integration. Keep duplicate handling separate too. An authenticated but irrelevant event should not trigger the catalogue update simply because its JSON resembles the expected shape. Document the allowed path and leave real effects disabled until that path is implemented and reviewed. This gives future adapters a concrete server-side boundary without suggesting that signature validity alone approves every action.

Sources & further reading

LET’S MAKE WHAT COMES NEXT

Have a product, a resource or an idea?

For suppliers, creators and brands. Tell us what you have in mind and where you work.

Start a conversation ↗