Cecylia Bocovich
39449cabe8
Respond with error when open invitation buckets are empty
...
Expand the error type returns by invite() to include a new error for
when there are no available bridges for open invitation users. This
fixes a bug that previously caused a panic when we have no bridges to
distribute.
See https://gitlab.torproject.org/tpo/anti-censorship/lox/-/issues/43
2023-12-20 13:52:42 -05:00
onyinyang
c8b6bb9fdd
Formatting and clippy changes
2023-12-19 20:02:12 +00:00
onyinyang
472445a9a5
Add README for rdsys-backend-api, lox-utils and switch to lox-zkp crate
2023-11-23 11:44:05 -05:00
onyinyang
1ed629e233
Add more sensible process for db write_context testing
2023-11-14 17:30:45 +00:00
onyinyang
cb159405a3
Add watched_blockages to config file and improve naming
2023-11-14 17:30:45 +00:00
onyinyang
ec7ba4e343
Add test and bug fix
2023-11-14 17:30:45 +00:00
onyinyang
5d7122b555
Add preliminary blockage handling functionality
2023-11-14 17:30:45 +00:00
onyinyang
73b04b9a19
Fixed up inline comments and README for Lox Distributor
2023-11-07 00:15:26 -05:00
onyinyang
f7fc44cbb1
Fix up metrics for invites distributed
2023-10-31 11:15:47 -04:00
onyinyang
9ac2df642a
Add new bridges when first populated
2023-10-30 15:21:43 -04:00
onyinyang
b1d8ce7d8f
Update metrics to count bridges
2023-10-30 15:21:40 -04:00
onyinyang
2597cb53f7
Add prometheus http server
2023-10-30 15:20:23 -04:00
onyinyang
0edc2a3ac3
Add metrics setup
2023-10-30 15:20:20 -04:00
onyinyang
ba70b1b4d4
Add a MAX_DAILY_BRIDGES to limit invites per day
2023-10-30 15:17:08 -04:00
onyinyang
4f7b96a603
Fix up some minor issues + fix bug in context sync
2023-10-18 12:09:46 -04:00
onyinyang
89fb0fbf4b
Add handling for unaccounted for bridges
2023-10-18 12:08:15 -04:00
onyinyang
b6ff0c60e2
Update rdsys-api-backend and lox-distributor to match rdsys
2023-10-18 12:08:15 -04:00
onyinyang
25add69c4d
Add syncing functionality
2023-10-18 12:08:15 -04:00
onyinyang
6cc8033051
Reconfiguring lox distributor handling of rdsys resources
2023-10-18 12:08:15 -04:00
onyinyang
be0d026fe8
Cleanup and add syncing of resources
2023-10-18 12:08:15 -04:00
onyinyang
f787253ad5
Added support for lox-context storage through sled
2023-09-07 15:30:50 -04:00
onyinyang
2bb043b6b8
Reformat lox context to include request handling fns
2023-08-30 18:45:49 -04:00
onyinyang
faf40caf3a
Change open invite logic to distribute to k users
2023-08-02 10:34:39 -04:00
onyinyang
ef1ceafffe
Add better command line args and support for serialized Lox context
2023-08-02 10:15:10 -04:00
onyinyang
93ce3e41b7
Add ExhausedIndexError for no available bucket ids
2023-08-02 10:11:46 -04:00
onyinyang
9c2b7703a8
Added open inv cleanup test
2023-08-02 10:11:46 -04:00
onyinyang
7f92ea6833
Formatting fixes for entire project
2023-07-19 10:37:09 -04:00
onyinyang
607466b949
Clean up clippy fixes
2023-06-23 13:04:15 -04:00
onyinyang
69e4579450
Change encbuckets to HashMap with EncryptedBucket
2023-06-23 08:30:14 -04:00
onyinyang
73c3ef8728
Change lox package to lox-library for consistency
2023-06-23 08:22:15 -04:00
onyinyang
221f490d26
Update lox-distributor to handle gone resources more correctly
2023-06-16 17:18:19 -04:00
Cecylia Bocovich
67639e2f11
Remove needless range loops
2023-06-16 15:59:11 -04:00
onyinyang
9c959486be
Add better error handling for bad requests
2023-06-16 12:02:05 -04:00
onyinyang
e1f7cda652
Add checkblockage test with changes to lox_context
2023-06-16 12:02:04 -04:00
onyinyang
e7db9e7151
Add more tests for lox-distributor handle
2023-06-16 12:01:56 -04:00
onyinyang
6372e894ae
Adjust replace_with_new to fit with updates to Lox library
2023-05-17 12:46:09 -04:00
onyinyang
3e3f50c215
Refactors lox-distributor to make division of tasks clearer
2023-05-17 12:19:28 -04:00
onyinyang
da4d7c962f
Add fix for failure to replace bridges
...
- Change text for disabled functionality for blocked bridges
2023-05-11 16:00:09 -04:00
onyinyang
13d1bc8b1d
Add leftover bridges to bridgedb
2023-05-08 20:30:30 -04:00
onyinyang
292827fa63
Add handling of gone, not blocked, resources
2023-05-08 12:52:34 -04:00
onyinyang
1adf145671
Make bucket size match constant in Lox library for all functions
2023-04-10 12:16:19 -04:00
onyinyang
4695a11702
Ensure that left over bridges (not grouped into a bucket) are properly handled
2023-04-05 16:26:23 -04:00
onyinyang
d2bd91e0fe
Update bridgeline sizes to match lox library
2023-04-04 19:34:35 -04:00