Push sources are in preview. The API is not final.
Create a push source
Call thepushSources.create operation with the connector id. Squasher returns the push URL
and the signing secret. The secret is shown only in this response.
secret.
Sign a delivery
For thegeneric.signed_webhook connector:
- Send a JSON object or a JSON array of OCSF events. Each event needs
metadata.uid. - Put the current Unix time in seconds in the
x-webhook-timestampheader. - Compute HMAC SHA-256 over
<timestamp>.<raw body>with the secret. Sendsha256=<hex digest>in thex-webhook-signatureheader.
What Squasher rejects
Rotate the secret
CallpushSources.rotateSecret. The previous secret still verifies for 24 hours, so the
sender can switch without lost events.