Commit Graph

313 Commits

Author SHA1 Message Date
Taras Kushnir 207d8a0f68 Fix api key scope migration 2025-12-19 14:44:24 +01:00
Taras Kushnir a25fd054c8 Cosmetic improvements 2025-12-19 13:19:04 +01:00
Taras Kushnir 207a28e674 Fix build 2025-12-19 12:38:34 +01:00
Taras Kushnir 9c69d83edb Generate 2FA code with better rng 2025-12-19 12:21:45 +01:00
Taras Kushnir 24b43ade8f Refactor email verification 2025-12-19 10:36:09 +01:00
Taras Kushnir 77cb6e987d Cleanup user caches on logout 2025-12-19 10:09:31 +01:00
Taras Kushnir f446e2884d Add API to get a single property. related PrivateCaptcha/issues#45 2025-12-18 18:17:51 +01:00
Taras Kushnir 6e6174bedf Fix cosmetic GitHub Code Quality findings 2025-12-18 14:36:59 +01:00
Taras Kushnir 3475c9c1e2 Add API to batch-update properties. related PrivateCaptcha/issues#45 2025-12-18 14:28:55 +01:00
Taras Kushnir 8386d16fe6 Cosmetic improvement 2025-12-18 11:02:33 +01:00
Taras Kushnir 50945a6480 Fix typo 2025-12-17 19:27:53 +01:00
Taras Kushnir a01792ffd8 Add API to get properties. related PrivateCaptcha/issues#45 2025-12-17 19:16:18 +01:00
Taras Kushnir 66d842413a Split portal and DB page size for properties 2025-12-17 19:01:35 +01:00
Taras Kushnir d1ac04d09d Cosmetic improvements
some found by CodeRabbit review
2025-12-17 19:00:37 +01:00
Taras Kushnir 05e653631e Add pagination support for org properties. related PrivateCaptcha/issues#45 2025-12-17 18:32:41 +01:00
Taras Kushnir b0c7b4c957 Cosmetic improvement 2025-12-17 18:16:02 +01:00
Taras Kushnir b0c520eb4f Fix new API errors metric namespace 2025-12-17 17:49:04 +01:00
Taras Kushnir bbdf596e6e Remove refactoring leftover 2025-12-17 14:05:50 +01:00
Taras Kushnir 653b91f86e Add API support to delete properties. related PrivateCaptcha/issues#45 2025-12-17 12:55:49 +01:00
Taras Kushnir b959c00af8 Add create properties bulk API. related PrivateCaptcha/issues#45 2025-12-15 15:43:05 +01:00
Taras Kushnir 85ca8c5a7a Add preliminary basic version of orgs API. related PrivateCaptcha/issues#45 2025-12-10 21:15:02 +01:00
Taras Kushnir 3b208240dc Fix typo 2025-12-10 21:15:02 +01:00
Taras Kushnir 261c27a1d4 Fix tests 2025-12-08 19:00:15 +01:00
Taras Kushnir 7c433a93f0 Fix build 2025-12-08 18:57:11 +01:00
Taras Kushnir 03910a870c Shuffle limits related code to DB 2025-12-08 18:49:34 +01:00
Taras Kushnir 9effd7a5df Refactor API server routes mounting 2025-12-08 17:45:52 +01:00
Taras Kushnir 96da407d92 Fix typo 2025-12-08 17:32:31 +01:00
Taras Kushnir e8bf52f858 Move RouteGenerator to common 2025-12-08 17:27:28 +01:00
Taras Kushnir e6847f2801 Fix build
broken in f0db3be14d
2025-12-08 17:27:28 +01:00
Taras Kushnir f0db3be14d Add audit log source 2025-12-08 13:34:20 +01:00
Taras Kushnir 57636bbf48 Add API key scope 2025-12-08 12:44:42 +01:00
Taras Kushnir 81e5652860 Fix linter error 2025-12-08 09:05:39 +01:00
Taras Kushnir cf56507465 Skip caching user stats on CDN level
The problem is that url does not have user id in it (we still cache inside)
2025-12-08 09:00:03 +01:00
Taras Kushnir 9151c22370 Cache chart stats also on the server level 2025-12-07 20:13:18 +01:00
Taras Kushnir 55377576e2 Cache chart stats responses on CDN level 2025-12-07 17:53:30 +01:00
Taras Kushnir 567c7ddb00 Bump sqlc to 1.30.0 2025-12-06 14:04:04 +01:00
Taras Kushnir e03bf4f5ae Check if lock exists before trying to obtain it
Fixes infra warning about percent of rolled back transactions in PG
2025-12-06 14:03:30 +01:00
Taras Kushnir f03ab19b67 Move logging out of limits checks 2025-12-05 13:48:30 +01:00
Taras Kushnir f0044c7422 Return difference from limit check 2025-12-05 13:36:36 +01:00
Taras Kushnir 1eb0cdbce3 Expose count checked in the limit 2025-12-05 13:30:28 +01:00
Taras Kushnir 773d08e1e2 Export field for inheritance 2025-12-05 12:43:00 +01:00
Taras Kushnir 79e422692a Move limit getters to limits interface. related PrivateCaptcha/issues#142 2025-12-05 12:23:38 +01:00
Taras Kushnir fbe500748a Refactor subscription limits. related PrivateCaptcha/issues#142 2025-12-05 10:38:34 +01:00
Taras Kushnir 916bb28dd6 Add separate test for verifying test property with another sitekey 2025-12-03 16:38:22 +01:00
Taras Kushnir 58b0573a6d Add comment to flaky test 2025-12-03 11:25:33 +01:00
Taras Kushnir 008c5bea0f Fix tests 2025-12-03 11:07:13 +01:00
Taras Kushnir cbab265d85 Send verify response instead of http code for sitekey verification 2025-12-02 21:42:01 +01:00
Taras Kushnir 1ac836c713 Fix tests 2025-12-02 20:44:47 +01:00
Taras Kushnir c2c3fa9156 Cosmetic improvements 2025-12-02 19:55:25 +01:00
Taras Kushnir 14fa5396e5 Add more user-friendly http error body response 2025-12-02 19:21:24 +01:00