Test tenant ownership for incoming AI workflow webhook events
Resolve each event to the authorized workspace before processing its payload. The credential authenticating the sender and the tenant referenced by a record need separate checks.
Example
Two fictional tenants have an order numbered 42. A webhook from tenant A must never update the order numbered 42 in tenant B.
What to do
- Record how the event source maps to a workspace. Verify the sender according to the agreed integration protocol.
- Scope lookups to the resolved tenant. Rehearse a mismatched tenant reference and a valid event with the same local order number.
- Inspect which workspace received the action and ensure rejected events do not include sensitive fields in logs.
How to verify
A valid event updates the authorized fictional tenant only and the mismatch is rejected.
Limits
A verified event signature does not establish that every referenced record belongs to the sender.