Skip to content

[Feature] API Rate Limiting #9559

Open
Open
@bagasme

Description

@bagasme

Description

As #8353 will add TOS, we'd like to apply rate limiting on Gitea API.

Per GH:

  • 60 requests per hour for unauthenticated requests:
  • 5000 requests per hour for all authenticated requests, regardless made either via basic authentication or OAuth.
  • 403 error returned if exceeding the limit.
  • If OAuth application makes unauthenticated call to API by passing its client ID and secret as part of query string, the limit bumped to 5000 requests per hour (treated as authenticated requests).

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/confirmedIssue has been reviewed and confirmed to be present or accepted to be implementedmodifies/apiThis PR adds API routes or modifies themtype/featureCompletely new functionality. Can only be merged if feature freeze is not active.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions