Commit Graph

328 Commits

Author SHA1 Message Date
Taras Kushnir
787f1d4c0b Add missing 2FA timestamp to context 2026-01-04 17:00:44 +02:00
Taras Kushnir
05ecc9cc6d Cosmetic improvements 2026-01-02 20:53:15 +02:00
Taras Kushnir
0e7ef0c8b0 Register time.Time for 2FA code expiration serialization 2026-01-02 20:48:17 +02:00
Taras Kushnir
d1a23760b1 Enforce 2FA code expiration timeout before session timeout 2026-01-02 20:37:42 +02:00
Taras Kushnir
8112359ef9 Add more tests 2026-01-02 18:44:17 +02:00
github-actions[bot]
094dfdd67d Fix code style issues (#234) 2025-12-27 12:18:30 +00:00
Taras Kushnir
acc2e09427 Add timeout config for periodic jobs 2025-12-25 13:33:19 +01:00
Taras Kushnir
6e1eef1992 Fix test 2025-12-23 10:11:48 +01:00
Taras Kushnir
998a7b1395 Rename puzzle scope to captcha in UI 2025-12-23 10:00:40 +01:00
Taras Kushnir
a113c35188 Add new fields to audit event for API keys 2025-12-23 10:00:40 +01:00
Taras Kushnir
cbdc994e0d Add Org scope to API keys. closes PrivateCaptcha/issues#237 2025-12-22 18:54:47 +01:00
Taras Kushnir
1478f7a376 Add read-only attribute to the scope of API key 2025-12-22 14:33:26 +01:00
Taras Kushnir
782dbb5f34 Validate API requests while reading JSON 2025-12-22 12:50:08 +01:00
Taras Kushnir
727fbfa93e Preallocate map size 2025-12-22 12:47:18 +01:00
Taras Kushnir
f308e55d91 Make properties API to use PUT 2025-12-19 20:02:27 +01:00
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