Skip to content

Rate-limit incoming webhook calls #91

Closed

Description

@itsskofficial

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.

Activity

  1. added
    enhancement
    good first issue
    area: integrations
    on Oct 8, 2026
  2. anushkaanair commented on Oct 8, 2026

    @anushkaanair
    Contributor

    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.

  3. added a commit that references this issue on Oct 8, 2026
    7e4fcfd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area: integrationsenhancementgood first issue

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions