Skip to content

Rate Limiting #93

Description

@BryanAM

We have a few protections but should expand our scope. Currently we have two small fixes

  1. limiting query length
    1. this happens both on the search input & the URL query.
      1. searchQuery.tsx errors when URL query is longer than the MAX_QUERY_LENGTH
      2. search page getData injects cleaned query from our utils.ts file safeQuery
      3. search input itself has char limit from MAX_QUERY_LENGTH in <SajeonSearch/>

However, we should also add rate limiting to prevent excessive calls to any search endpoint and consider another validator to check our regex excape like validator from NPM https://www.npmjs.com/package/validator (e.g. escape())

extra details in notion

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions