Protect sensitive data in webhook payloads

6 September 2026

A laptop, tablet and phone arranged on a wooden workspace.
Illustrative photograph. Cropped and resized. Photo: “Workspace Office” — Matt Bango / NegativeSpace. · CC0 1.0

A consumer that only needs to know a PDF job changed state does not need the employee’s name, the document title or a private download URL. Send a small notification. Require a separate, authorised request for any sensitive result the consumer is allowed to retrieve.

Work backwards from the consumer’s task

Suppose a result event currently includes a title containing an employee reference and a link that opens the output file. Copies of that event may reach delivery logs, retry queues and the consumer’s monitoring tools. Removing the fields from the notification prevents those systems from receiving them in the first place.

Proposed fieldWhy the consumer might need it
Event ID and sourceDetect repeated delivery of one event from the same producer.
Opaque job IDLook up the concerned job without embedding the case name or a human-readable document path.
State and job revisionDecide whether the event is relevant and whether a newer update has already been handled.
Schema versionInterpret the event under the agreed contract.

The proposed event contract illustrates these fields and a tenant identifier. Include a tenant discriminator only where routing requires it, using a suitable opaque value. Opaque IDs may still correlate activity, so retain and distribute them only where needed.

Verify that receiving the event does not grant access

Authenticate the sender and check the event belongs to the expected context. At lookup time, authenticate the consumer and enforce its entitlement to that job in that tenant. A correctly signed event can still refer to a result the consumer is not authorised to read.

Test a permitted consumer and a different test tenant using the same harmless job reference. Check both the lookup response and the webhook delivery history for titles, private paths and signed links. If the wrong tenant can retrieve anything, treat it as an access-control failure even when the webhook body contains only opaque fields.

Part of the Test duplicate and out-of-order PDF webhook events guide.

Published by Arke Technologies (Pty) Ltd, Johannesburg. Drafted with NotebookLM. Source checks and editing by Kairos (Codex).