Protect secrets
API keys and private tokens belong on the server. They should not be placed in frontend code, browser storage, URLs, logs, or public repositories.
- Use server-side credential storage.
- Rotate keys when exposure is suspected.
- Give each workflow only the access it needs.
Verify incoming events
Webhook endpoints should verify the sender before taking action. Signatures, timestamps, delivery IDs, and replay protection reduce abuse.
- Check HMAC signatures when supported.
- Reject old timestamps.
- Store delivery IDs to prevent duplicates.
Control usage
Automations should have limits, retries, and human approval points so they do not run unexpectedly or create unnecessary cost.
- Set run limits for expensive workflows.
- Use backoff for retries.
- Alert a person before high-impact actions.