Commit Graph

108 Commits

Author SHA1 Message Date
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 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 727fbfa93e Preallocate map size 2025-12-22 12:47:18 +01:00
Taras Kushnir 207d8a0f68 Fix api key scope migration 2025-12-19 14:44:24 +01:00
Taras Kushnir 77cb6e987d Cleanup user caches on logout 2025-12-19 10:09:31 +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 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 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 03910a870c Shuffle limits related code to DB 2025-12-08 18:49:34 +01:00
Taras Kushnir 96da407d92 Fix typo 2025-12-08 17:32:31 +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 9151c22370 Cache chart stats also on the server level 2025-12-07 20:13:18 +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 fbe500748a Refactor subscription limits. related PrivateCaptcha/issues#142 2025-12-05 10:38:34 +01:00
Taras Kushnir 54ddecb5b4 Record cancellation in subscription audit event 2025-12-01 20:14:20 +01:00
Taras Kushnir f1766fdc7a Bump session TTL to 3h 2025-11-29 12:14:18 +02:00
Taras Kushnir e0f92e9949 Allow specifying root path for Postgres migrations 2025-11-26 09:27:36 +02:00
Taras Kushnir 907b73304d Cosmetic improvement 2025-11-25 12:35:58 +02:00
Taras Kushnir 7b77fc2713 Cosmetic improvements 2025-11-25 08:03:41 +02:00
Taras Kushnir 4661c50f28 Export query key string helper 2025-11-24 13:39:04 +02:00
Taras Kushnir 90ee511cb9 Log audit events without user ID 2025-11-24 13:19:44 +02:00
Taras Kushnir 4ac50392f8 Keep subscription audit events separate from user 2025-11-24 12:30:46 +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 fbc9623772 Show properties and orgs usage in Usage tab 2025-11-23 08:46:46 +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 6726ec7723 Remove unused code 2025-11-20 09:33:33 +02:00
Taras Kushnir 27d5b0392d Add more configuration options for memory cache 2025-11-19 11:48:20 +02:00
Taras Kushnir 15a9082b16 Allow organization members to access verify API for property
meaning even when these members don't have an active subscription
2025-11-19 08:28:10 +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 e6b68a214e Fix linter warning 2025-11-16 14:46:07 +02:00
Taras Kushnir 89128a60d2 Remove /twofactor endpoint and unite all login forms
This is done to eliminate the redirect to /twofactor endpoint which
potentially can land on another server in case load balancing is not sticky
2025-11-16 14:43:38 +02:00
Taras Kushnir 73346ec4f6 Add external_email column to subscriptions 2025-11-11 18:38:35 +02:00
Taras Kushnir a43f816691 Expose couple of DB methods to deal with subscriptions 2025-11-11 18:33:29 +02:00
Taras Kushnir 9b3aa0ea94 Add functionality to move property. closes PrivateCaptcha/issues#151 2025-11-11 18:16:40 +02:00
Taras Kushnir 98cd19d104 Add functionality to rotate API keys. closes PrivateCaptcha/issues#188 2025-10-08 14:32:48 +03:00
Taras Kushnir ca2b1236df Cosmetic security improvements 2025-10-04 17:45:30 +03:00
Taras Kushnir f173096691 Return updated user when creating account 2025-09-30 18:23:05 +03:00