Skip to content

feat(backend): add rate limiting to guest_login route#1300

Open
sleepyjen4 wants to merge 10 commits into
stagingfrom
feat/api/add-rate-limiting-to-guest-login
Open

feat(backend): add rate limiting to guest_login route#1300
sleepyjen4 wants to merge 10 commits into
stagingfrom
feat/api/add-rate-limiting-to-guest-login

Conversation

@sleepyjen4

Copy link
Copy Markdown

Summary

Added rate limiting to the backend using fastapi-limiter to guest_login route.

Changes

  • Installed fastapi-limiter and set up an async Redis client pointing to a separate logical db (db=1) so limiter keys don't collide with session keys (db=0)
  • Initialised the limiter in the app's lifespan hook so it starts up and tears down with the server
  • Applied rate limiting to the guest_login route -> Currently a rate of 3 times/60s

Peedee2002 and others added 9 commits April 21, 2026 22:09
#1278)

* fix(conditions): improve OR condition handling in CompositeCondition class

test: add regression test for nested AND/OR condition enforcement

* fix(conditions): improve OR condition handling in CompositeCondition class

test: add regression test for nested AND/OR condition enforcement
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
…#1281)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
@sleepyjen4 sleepyjen4 requested a review from a team as a code owner June 27, 2026 06:31
@sleepyjen4 sleepyjen4 changed the base branch from dev to staging June 27, 2026 06:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants