Commit Graph

68 Commits

Author SHA1 Message Date
Taras Kushnir
6d405eec80 Add 2FA code grace time 2026-01-30 08:29:13 +02:00
Taras Kushnir
a3dd64fb04 Do not close DB connections after migration in auto mode 2026-01-28 15:17:26 +02:00
Taras Kushnir
9048bcaa5a Add timeouts for channel selects 2026-01-23 16:59:37 +02:00
Taras Kushnir
76b9b81d37 Add ErrorLog for http server 2026-01-13 16:40:44 +02:00
Taras Kushnir
00c287f274 Bump readiness drain delay 2026-01-12 10:01:20 +02:00
Taras Kushnir
f534ee7ec5 Add a mode to run tests without ClickHouse 2026-01-06 15:46:24 +02:00
Taras Kushnir
748d0e97e7 Add migrate and serve mode
Add auto mode
2026-01-02 18:43:48 +02:00
Taras Kushnir
24b43ade8f Refactor email verification 2025-12-19 10:36:09 +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
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
9151c22370 Cache chart stats also on the server level 2025-12-07 20:13:18 +01:00
Taras Kushnir
fbe500748a Refactor subscription limits. related PrivateCaptcha/issues#142 2025-12-05 10:38:34 +01:00
Taras Kushnir
b0bbb3957b Make audit logs retention configurable 2025-11-26 15:36:10 +02:00
Taras Kushnir
66d2ef8686 Use different audit logs cleanup days for EE 2025-11-25 21:14:04 +02:00
Taras Kushnir
06ecf0f980 Skip deleting expired internal trials
They frequently belong to other organizations (and also can log back in)
2025-11-23 07:33:39 +02:00
Taras Kushnir
fa8422d1c7 Add basic auditlogs implementation. closes PrivateCaptcha/issues#204 2025-11-22 19:39:18 +02:00
Taras Kushnir
884a5d2117 Force recheck user limits upon joining the org 2025-11-19 14:11:04 +02:00
Taras Kushnir
16e4244077 Add functionality to backfill potential stale session in portal
Also get rid of unnecessary changes from previous commit
2025-11-16 21:09:16 +02:00
Taras Kushnir
43a01e877a Add more details to 2fa email. closes PrivateCaptcha/issues#207 2025-11-15 09:21:26 +02:00
Taras Kushnir
f54578d513 Hide internal identifiers in URLs. closes PrivateCaptcha/issues#209 2025-11-12 15:38:09 +02:00
Taras Kushnir
f2fa6f89da Replace rate limit update to smaller limits for catchall 2025-10-19 11:49:58 +03:00
Taras Kushnir
14b17c7076 Only update rate limit for non-portal catchall 2025-10-19 11:31:11 +03:00
Taras Kushnir
ff19bc45ac Improve rate limit update for catchall 2025-10-19 11:27:36 +03:00
Taras Kushnir
b55492d9f0 Reduce rate limit for catchall path 2025-10-19 11:11:51 +03:00
Taras Kushnir
1fd3596150 Fix portal login verifications missing from metrics 2025-10-08 09:56:36 +03:00
Taras Kushnir
ca2b1236df Cosmetic security improvements 2025-10-04 17:45:30 +03:00
Taras Kushnir
70ed850c24 Move XSRF key to config
found by ZeroPath
2025-10-04 12:41:01 +03:00
Taras Kushnir
7fc5fa559f Vary portal stylesheet with git commit hash 2025-09-24 13:05:55 +03:00
Taras Kushnir
81dc447640 Add ETag header for assets and scripts 2025-09-24 12:19:38 +03:00
Taras Kushnir
642b02bd61 Refactor session management 2025-09-14 14:41:29 +03:00
Taras Kushnir
697fb541cf Passthrough service context to persisting sessions 2025-09-13 09:58:06 +03:00
Taras Kushnir
e1711360a5 Fix healthcheck job being exclusive 2025-09-03 13:29:18 +03:00
Taras Kushnir
5bf531bab0 Refactor puzzle verification and issue out of api.Server 2025-08-26 14:49:49 +03:00
Taras Kushnir
803b07d7f7 Protect maintenance job endpoints. closes PrivateCaptcha/issues#178 2025-08-25 11:22:43 +03:00
Taras Kushnir
a0ce451d0f Switch to otter cache in leaky bucket manager 2025-08-23 19:48:24 +03:00
Taras Kushnir
94f088ebc2 Make email templates parsing lazy 2025-08-22 18:43:48 +03:00
Taras Kushnir
665431a621 Add ability to pass arguments to maintenance jobs. closes PrivateCaptcha/issues#171 2025-08-18 10:22:12 +03:00
Taras Kushnir
b74eacd23a Cosmetic improvements 2025-08-17 21:41:42 +03:00
Taras Kushnir
8c8cfaf485 Add maintenance job to expire internal trials 2025-08-17 14:57:43 +03:00
Taras Kushnir
945100be86 Add circuit breaker for notifications processing 2025-08-17 12:50:00 +03:00
Taras Kushnir
6231572bee Move portal mailer to portal package 2025-08-16 11:26:46 +03:00
Taras Kushnir
6c76c34df0 Add maintenance job to delete trial accounts 2025-08-16 10:42:46 +03:00
Taras Kushnir
335ea6dcb6 Store also plain-text version of notification template in DB 2025-08-16 09:01:03 +03:00
Taras Kushnir
25b81f38e3 Get rid of unnecessary config 2025-08-16 08:13:29 +03:00
Taras Kushnir
9a6dfdcd1f Simplify notifications code 2025-08-15 19:29:10 +03:00
Taras Kushnir
ff00d6fa1f Add notifications for expiring API keys. closes PrivateCaptcha/issues#1 2025-08-14 20:16:49 +03:00
Taras Kushnir
6d525bd804 Disambiguate URLs in email templates 2025-08-14 12:09:06 +03:00
Taras Kushnir
fc8c04f686 Add notifications support 2025-08-14 10:52:45 +03:00