You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
POST /hooks/{id} checks the hook's secret and a body size limit, but has no rate limit, so a leaked URL could flood Sentient with task runs.
What to do: add a small per-hook token bucket (for example 30 calls a minute, configurable in IntegrationsConfig with a description) and answer 429 with a Retry-After header when it is exceeded.
Where: sentient/gateway/routes/hooks.py, sentient/integrations/hooks.py, tests in tests/integrations/test_hooks.py.
Hi, I'd like to take this one. My plan is a small per-hook token bucket (default 30 calls/min, configurable in IntegrationsConfig with a description) that answers 429 with a Retry-After header when exceeded, with tests in tests/integrations/test_hooks.py. I'll open a PR soon.
Activity
anushkaanair commentedon Oct 8, 2026
Hi, I'd like to take this one. My plan is a small per-hook token bucket (default 30 calls/min, configurable in
IntegrationsConfigwith a description) that answers429with aRetry-Afterheader when exceeded, with tests intests/integrations/test_hooks.py. I'll open a PR soon.feat(integrations): rate-limit incoming webhook calls (existence-mast…