Commit Graph

257 Commits

Author SHA1 Message Date
Taras Kushnir d17f9c6379 Refactor test structs for export 2025-09-03 12:39:50 +03:00
Taras Kushnir 8151214cb5 Use events instead of JS callbacks v0.0.9 2025-09-03 11:44:18 +03:00
Renovate Bot 0cb03e314e Update dependency esbuild to v0.25.9 2025-08-27 02:01:28 +00:00
Taras Kushnir 5bf531bab0 Refactor puzzle verification and issue out of api.Server 2025-08-26 14:49:49 +03:00
Taras Kushnir 3139e0c386 Fix calculating puzzle issue time 2025-08-26 09:18:43 +03:00
Taras Kushnir a52e6f38bf Fix tests v0.0.8 2025-08-25 11:51:09 +03:00
Taras Kushnir 45c3863405 Add few more paranoid arguments checks for DB 2025-08-25 11:48:05 +03:00
Taras Kushnir a28a65797e Fix tests 2025-08-25 11:31:00 +03:00
Taras Kushnir 803b07d7f7 Protect maintenance job endpoints. closes PrivateCaptcha/issues#178 2025-08-25 11:22:43 +03:00
Taras Kushnir be6ad9932d Mark domain name required in portal. closes PrivateCaptcha/issues#179 2025-08-25 11:00:04 +03:00
Taras Kushnir 5657fa3158 Fix var leaky bucket initialization for bucket manager
in bucket manager we never call NewVarBucket() so fields are not correct
2025-08-25 10:51:55 +03:00
Taras Kushnir b9023439a5 Improve puzzle cache performance
Compute locks bucket every time, but ComputeIfAbsent only on creation

Cosmetic improvements
2025-08-25 10:51:55 +03:00
Taras Kushnir b975ccb2c0 Add more logs 2025-08-23 20:25:15 +03:00
Taras Kushnir 0e806aad56 Fix ignoring property errors 2025-08-23 20:23:30 +03:00
Taras Kushnir affbb60a43 Drop allow_replay column for properties 2025-08-23 20:04:31 +03:00
Taras Kushnir a0ce451d0f Switch to otter cache in leaky bucket manager 2025-08-23 19:48:24 +03:00
Taras Kushnir 779ed6f593 Fix profiling setup 2025-08-23 19:48:24 +03:00
Taras Kushnir 3ce94b0e0d Add more choices to puzzle validity interval 2025-08-23 19:48:24 +03:00
Taras 170fde6789 Update dependency eslint to v9.33.0 (#191)
Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
2025-08-23 15:05:28 +03:00
Taras Kushnir cff1dc4dd9 Pass our logger to otter cache 2025-08-23 15:02:47 +03:00
Taras Kushnir 1d62e7f150 Start migration from allow_replay to max_replay_count logic 2025-08-23 14:53:32 +03:00
Taras Kushnir 387f59599c Use xid-based puzzle ID 2025-08-23 12:35:22 +03:00
Taras Kushnir aa854247f9 Add unit test to pre-parse email templates 2025-08-22 20:08:56 +03:00
Taras Kushnir 8a3fcf9719 Fix error rendering for signed-in versions 2025-08-22 19:42:46 +03:00
Taras Kushnir 7ccb707598 Fix linter error 2025-08-22 18:47:36 +03:00
Taras Kushnir 94f088ebc2 Make email templates parsing lazy 2025-08-22 18:43:48 +03:00
Taras Kushnir 584accee48 Make scheduled notifications type-safe too 2025-08-22 18:11:53 +03:00
Taras Kushnir af188f10d5 Make email templates more type-safe 2025-08-22 17:30:44 +03:00
Taras eee6b3ae53 Update module golang.org/x/net to v0.43.0 (#190)
Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
2025-08-22 09:52:19 +03:00
Taras Kushnir 390a4d3ef8 Remove unused code leftover 2025-08-22 09:46:03 +03:00
Taras Kushnir 2e64113005 Remove unused code 2025-08-22 09:44:47 +03:00
Taras Kushnir 02d78ebf3d Cosmetic improvement v0.0.7 2025-08-20 11:59:04 +03:00
Taras Kushnir d575c3f98e Trim PHP SVG file 2025-08-20 11:49:44 +03:00
Taras Kushnir f9ea1597da Cache stub puzzles too
The rationale is that if somebody took care to call /verfiy we can cache it
2025-08-20 11:29:13 +03:00
Taras Kushnir f49ad8c803 Add PHP and Ruby to integrations page 2025-08-20 09:17:16 +03:00
Taras Kushnir 6807d6ffeb Silence system notification error
because it can be db.ErrRecordNotFound, otherwise it will be error-logged inside
2025-08-19 09:03:43 +03:00
Taras f5994260ac Gate widget lib publish with GitHub environment v0.0.6 2025-08-18 12:16:31 +03:00
Taras Kushnir bc556d627f Decrease stub license job interval 2025-08-18 12:08:38 +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 4da1357ed2 Add test for notification condition 2025-08-17 16:13:03 +03:00
Taras Kushnir 7b76518b85 Add check for locked jobs intervals 2025-08-17 15:05:57 +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 2aabb90d66 Add requires_subscription flag for notifications 2025-08-16 17:01:12 +03:00
Taras Kushnir bdf68b8790 Downgrade user notifications logging level 2025-08-16 13:50:48 +03:00
Taras Kushnir 1484d3c3d4 Add from parameter to expired trials query 2025-08-16 13:35:30 +03:00
Taras Kushnir 25bf16eada Attempt to guess first name for welcome email 2025-08-16 12:48:24 +03:00
Taras Kushnir 6231572bee Move portal mailer to portal package 2025-08-16 11:26:46 +03:00
Taras Kushnir 1e9a00f8c9 Add widget strings translations to few European languages
Bump widget lib version
2025-08-16 11:17:41 +03:00