Skip to content

Use rate limiter policy classes and drop the /api/reading path bypass #1604

Open

Description

@BenjaminMichaelis

The reading API rate limits are inline lambdas with magic numbers, and the global limiter special-cases /api/reading with a no-limiter bypass, so unrouted requests under that path are unlimited. The repo convention is policy classes (ContentRateLimiterPolicy, McpRateLimiterPolicy). Extract policies, name them accurately (GET profile currently uses a 'Write' policy), and use RequireRateLimiting/named policies instead of a path bypass.

Found during review of #1267; intentionally kept out of that PR.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions