Commit Graph

34 Commits

Author SHA1 Message Date
Lucas Smith 653ab3678a feat: better ratelimiting (#2520)
Replace hono-rate-limiter with a Prisma/PostgreSQL bucketed counter
approach that works correctly across multiple instances without sticky
sessions.

- Add RateLimit model with composite PK (key, action, bucket) and atomic
upsert
- Create rate limit factory with window parsing, bucket computation, and
fail-open
- Define auth-tier and API-tier rate limit instances
- Add Hono middleware, rateLimitResponse helper, and tRPC
assertRateLimit helper
- Wire rate limit headers through AppError constructor (was declared but
never assigned)
- Apply rate limits to auth routes (email-password, passkey), tRPC
routes
  (2FA email, link org account), API routes, and file upload endpoints
- Add cleanup cron job for expired rate limit rows (batched delete every
15 min)
- Remove hono-rate-limiter dependency
2026-02-20 12:23:02 +11:00
David Nguyen f80aa4bf72 chore: optimize tests (#2280) 2025-12-06 12:59:53 +11:00
Mythie 6df8b3aac8 chore: update ci 2025-04-21 14:29:40 +10:00
Mythie ac3deb113e chore: update ci 2025-03-27 22:49:59 +11:00
David Nguyen c1c7cfaf8b chore: cleanup 2025-02-25 16:37:36 +11:00
David Nguyen 9e03747e43 feat: add create document beta endpoint (#1584) 2025-01-16 13:36:00 +11:00
David Nguyen 2948a33bf9 fix: tests (#1556) 2024-12-26 17:00:55 +11:00
Imran Khan a6f93698b4 fix: changed the default file path for local certs (#1277)
Changed the default value of NEXT_PRIVATE_SIGNING_LOCAL_FILE_PATH env
variable
2024-09-06 14:09:25 +10:00
Adithya Krishna 5d5d0210fa chore: update github actions (#1085)
**Description:**

This PR updates and adds a new action to assign `status: assigned` label

---------

Signed-off-by: Adithya Krishna <aadithya794@gmail.com>
2024-05-08 11:52:26 +07:00
nafees nazik 346078dbbe fix: e2e 2024-01-05 02:15:27 +05:30
nafees nazik 0c12e34c38 fix: remove call 2024-01-05 01:08:32 +05:30
nafees nazik 26b604dbd0 fix: add workflow call 2024-01-05 00:21:05 +05:30
nafees nazik 9e57de512a feat: use actions 2024-01-04 23:46:09 +05:30
Lucas Smith 5e9bc56329 feat: github repo management improvement (#728) 2023-12-08 15:47:55 +11:00
Mythie 7feba02e08 chore: update ci and formatting 2023-12-08 13:01:36 +11:00
Mythie 1831084970 chore: update ci 2023-12-08 09:29:47 +11:00
Sushant 2068d980ff feat: allow for the deletion of any document (#711)
Allow for the deletion of any document with notifications of document cancellation for pending documents.
2023-12-06 11:11:51 +11:00
Paul bfedabdc10 fix: increase e2e test timeout (#682) 2023-12-05 13:54:41 +11:00
Adithya Krishna 02d91d9cd4 chore: updated workflows
Signed-off-by: Adithya Krishna <adi@documenso.com>
2023-12-04 18:04:05 +05:30
Mythie d1fc7ea217 chore: update ci 2023-11-06 15:10:46 +11:00
Lucas Smith 5a79535080 fix: style updates 2023-11-06 13:02:19 +11:00
pit 9fa7505061 chore: revert back env file name 2023-11-06 13:02:19 +11:00
pit 39c2bf77c2 chore: implement feedback 2023-11-06 13:02:19 +11:00
pit afd7dcd992 chore: remove this branch 2023-11-06 13:02:19 +11:00
pit c7f69bafd0 chore: update e2e tests 2023-11-06 13:02:19 +11:00
pit af73aee113 chore: changes 2023-11-06 13:02:19 +11:00
pit 9151055936 chore: add schema location 2023-11-06 13:02:19 +11:00
pit ca51a926fb chore: change from npm to npx 2023-11-06 13:02:19 +11:00
pit 1bb47f98a1 chore: install prisma before prisma client 2023-11-06 13:02:19 +11:00
pit c00f06a0c5 chore: add remote caching 2023-11-06 13:02:19 +11:00
pit c30695f2b8 ci: trigger ci 2023-11-06 13:02:19 +11:00
pit 434c4a6957 ci: trigger ci 2023-11-06 13:02:19 +11:00
pit 7942057c50 chore: add env step in gh action 2023-11-06 13:02:19 +11:00
pit 00546c1290 feat: add playwright 2023-11-06 13:02:19 +11:00