Commit Graph

22 Commits

Author SHA1 Message Date
Taras Kushnir bb82daa529 Make global variables in tests consistent 2026-01-08 08:44:33 +02:00
Taras Kushnir cbdc994e0d Add Org scope to API keys. closes PrivateCaptcha/issues#237 2025-12-22 18:54:47 +01:00
Taras Kushnir 727fbfa93e Preallocate map size 2025-12-22 12:47:18 +01:00
Taras Kushnir b959c00af8 Add create properties bulk API. related PrivateCaptcha/issues#45 2025-12-15 15:43:05 +01:00
Taras Kushnir 4661c50f28 Export query key string helper 2025-11-24 13:39:04 +02:00
Taras Kushnir 07b5c24e96 Add ability to set TTL when loading through cache 2025-11-24 08:15:25 +02:00
Taras Kushnir d8e97404d9 Tune down sitekey cached errors 2025-11-24 07:55:55 +02:00
Taras Kushnir f4643f830a Export cache helper 2025-11-23 08:13:22 +02:00
Taras Kushnir fa8422d1c7 Add basic auditlogs implementation. closes PrivateCaptcha/issues#204 2025-11-22 19:39:18 +02:00
Taras Kushnir f173096691 Return updated user when creating account 2025-09-30 18:23:05 +03:00
Taras Kushnir 5496e4e0ce Fix reading from cache during transaction 2025-09-30 15:07:12 +03:00
Taras Kushnir beaadacceb Add session management tests 2025-09-14 20:07:15 +03:00
Taras Kushnir 642b02bd61 Refactor session management 2025-09-14 14:41:29 +03:00
Taras Kushnir cfbc134a2d Add service tag to logs 2025-09-12 14:43:54 +03:00
Taras Kushnir 975d2dd17c Add more logs 2025-09-03 21:08:14 +03:00
Taras Kushnir 9a6dfdcd1f Simplify notifications code 2025-08-15 19:29:10 +03:00
Taras Kushnir fc8c04f686 Add notifications support 2025-08-14 10:52:45 +03:00
Taras Kushnir 36c10eb60c Refactor batch-reading from cache and DB 2025-07-06 09:48:04 +03:00
Taras Kushnir 89aeb40216 Export more cache functions and types 2025-07-05 17:34:37 +03:00
Taras Kushnir 1dc330150c Reread cached properties from time to time
There was a problem where, after upgrading otter to v2, there was a chance
of properties being just cached and not reread. The reason we couldn't use
otter's magic reloading is that there's more business logic that needs to
be executed than just to reread value from DB.

One drawback is in order to keep otter's package "hidden", a clone of Loader
had to be created in common.

Additionally Verify API of server was refactored so we return a clear error
externally in case of auth failure (related to "delayed" API key check)
2025-06-21 14:16:28 +03:00
Taras Kushnir 9ec1ef8d65 Refactor caching layer
Main reason being otter/v2 release with APIs for sliding expiration.

- added new cache API to use Loader logic from otter/v2 (fetch from DB)
- main direction of work is improving "negative caching" performance
  (currently it is still intertwined with the main cache)
- expose new Prometheus metric for cache hit ratio
2025-06-21 14:16:28 +03:00
Taras Kushnir 4951055189 Initial commit 2025-05-31 10:56:00 +03:00