Renovate Bot
6a10e4e748
Update Rust crate serde_with to 3.5.1
2024-01-23 20:53:03 +00:00
onyinyang
ae1420a5ea
Fix bug in blockage migration date, variable naming
2024-01-23 09:59:43 -05:00
onyinyang
a8be1a8043
Ensure calculations return correct unlock times
2024-01-22 13:30:58 -05:00
onyinyang
3b1de79309
Return reasonable values for unlock function
2024-01-22 13:30:58 -05:00
onyinyang
849fcb3541
Added part of next unlock function
2024-01-22 13:30:58 -05:00
Renovate Bot
60a47c962f
Update Rust crate serde_with to 3.5.0
2024-01-22 16:23:32 +00:00
onyinyang
050e628ae7
Add endpoint to return server constants
2024-01-22 11:09:31 -05:00
onyinyang
2ad2f2e211
Make lox-distributor listening port configurable
2024-01-22 15:08:39 +00:00
onyinyang
33e24ef5b6
Fix bug in bridge_replace fn, test
2024-01-18 03:34:22 +00:00
Vecna
3f309c9da3
Ensure H is not identity
2024-01-17 18:12:27 -05:00
Cecylia Bocovich
5ead4c4d9d
Attempt to deserialize open invitation as lox_utls::Invite
2024-01-17 22:49:36 +00:00
Vecna
1dbc14d5f1
Uncomment level and bucket checks
2024-01-17 17:41:53 -05:00
Vecna
a20300ab62
Fix error causing proof verification failure
2024-01-17 17:37:15 -05:00
Vecna
4240fa3377
Comment out level, bucket proofs to help debug
2024-01-17 16:59:33 -05:00
onyinyang
596901b174
Fixes bug in parse_into_buckets that skips adding every 4th bridgeline
2024-01-17 16:51:53 +00:00
onyinyang
6afc557ad5
Fix length of bridge bytes and rdsys request interval
2024-01-17 16:43:39 +00:00
Vecna
9cd9e3fab7
Add proof of level 3 or 4, bucket. (Still needs to be debugged.)
2024-01-16 20:22:56 -05:00
Cecylia Bocovich
1702027cb9
Export invitation_is_trusted for wasm_bindgen
2024-01-16 14:26:29 -05:00
Vecna
a6c5d789e7
Begin work on LV3+ proof for Troll patrol positive reports
2024-01-15 19:22:59 -05:00
Vecna
0041116e65
Merge remote-tracking branch 'upstream/main'
2024-01-14 17:50:52 -05:00
onyinyang
ed7c94b912
Send Response as json, errors with OK Status Code
2024-01-09 12:25:03 -05:00
Renovate Bot
c2a40658e3
Update Rust crate clap to 4.4.14
2024-01-08 17:18:37 +00:00
Renovate Bot
ffedd7f2c9
Update Rust crate base64 to 0.21.6
2024-01-08 16:21:59 +00:00
Renovate Bot
fb8a5e89a2
Update Rust crate serde to 1.0.195
2024-01-08 16:12:22 +00:00
Renovate Bot
46ba68e1b5
Update Rust crate thiserror to 1.0.56
2024-01-08 16:04:30 +00:00
Renovate Bot
771db10cd1
Update Rust crate clap to 4.4.13
2024-01-04 19:39:11 +00:00
onyinyang
075d51b088
Add better serde error handling to wasm functions
2023-12-21 17:00:49 +00:00
onyinyang
c1f6ab0b77
Gracefully recovers from rdsys shutdown or lack of resources
2023-12-20 19:04:44 -05:00
onyinyang
9d4a293ee9
Add invitation_is_trusted function, fixup error handling
2023-12-20 20:19:51 +00:00
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
364b55dc4c
Make wasm getter functions return Result
2023-12-19 20:02:12 +00:00
onyinyang
c8b6bb9fdd
Formatting and clippy changes
2023-12-19 20:02:12 +00:00
onyinyang
711a34cc2d
Add bridgeline getters to wasm and Lox system info
2023-12-19 20:02:12 +00:00
Renovate Bot
918a5555b8
Update Rust crate time to 0.3.31
2023-12-19 10:06:55 +00:00
Cecylia Bocovich
7d94b3c861
Add LoxDBError and refactor to return Result
...
Add a new error type to capture multiple possible database reading
errors and refactor both read_lox_context_from_db and use_last_context
to return a Result.
2023-12-18 14:20:17 -05:00
Cecylia Bocovich
5ed62d239d
Check whether lox_db is empty after recovering
2023-12-18 14:20:17 -05:00
Renovate Bot
d8e40b53c4
Update Rust crate hyper to 0.14.28
2023-12-18 15:06:53 +00:00
onyinyang
aeddbb5d71
Add error handling and Invitation expiry getter for wasm
2023-12-17 23:43:16 -05:00
onyinyang
6757702662
Add getter functions for wasm Lox credential attributes
2023-12-15 11:27:33 -05:00
Renovate Bot
d7613eb514
Update Rust crate clap to 4.4.11
2023-12-04 18:21:13 +00:00
Renovate Bot
49aa3f57ed
Update Rust crate clap to 4.4.10
2023-11-28 03:37:14 +00:00
Renovate Bot
089b481c67
Update Rust crate js-sys to 0.3.66
2023-11-27 15:37:39 +00:00
onyinyang
2a2708c5b5
Add license to lox-util Cargo.toml
2023-11-23 12:24:20 -05:00
onyinyang
9294fb9fd1
Fixup keywords in all Cargo.toml files
2023-11-23 12:04:00 -05: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
a27df0b6c6
Update Cargo.tomls to point to correct README location
2023-11-22 14:49:09 -05:00
onyinyang
88a865d04c
Remove time manipulation and other fmt fixes
2023-11-21 18:41:53 -05:00
onyinyang
fdde186c92
Add lox-wasm and lox-utils READMEs and other fmt fixes
2023-11-21 12:57:00 -05:00
Renovate Bot
02df29a249
Update Rust crate serde to 1.0.193
2023-11-21 02:07:04 +00:00
Renovate Bot
ec15d0f229
Update Rust crate thiserror to 1.0.50
2023-11-20 16:06:32 +00:00
Vecna
8c8d48eb1c
Revert config for now
2023-11-14 14:08:07 -05:00
Vecna
0bf3b30669
Merge changes from upstream
2023-11-14 14:07:29 -05:00
Renovate Bot
68f3f37bdf
Update Rust crate clap to 4.4.8
2023-11-14 17:35:14 +00:00
onyinyang
1ed629e233
Add more sensible process for db write_context testing
2023-11-14 17:30:45 +00:00
onyinyang
66f560eb08
Remove unneeded fields from bridgeline and reduce BRIDGE_BYTES
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
Renovate Bot
517faf7576
Update Rust crate serde to 1.0.192
2023-11-09 03:35:30 +00:00
onyinyang
37b3aea81a
Update READMEs for distributor and wasm crates
2023-11-08 15:47:14 -05:00
onyinyang
e356034dae
Fixup and add comments, README to Lox Library
2023-11-07 18:44:25 -05:00
onyinyang
73b04b9a19
Fixed up inline comments and README for Lox Distributor
2023-11-07 00:15:26 -05:00
onyinyang
ea37984da6
Update Cargo.toml for each crate for crates.io
2023-11-07 00:12:18 -05:00
Vecna
6f1ccd9485
Merge changes from upstream
2023-11-06 16:08:12 -05:00
Renovate Bot
e1b94ada3b
Update Rust crate js-sys to 0.3.65
2023-11-01 16:37:23 +00: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
Renovate Bot
2f1c48c0ac
Update Rust crate serde_json to 1.0.108
2023-10-30 16:36:11 +00:00
Renovate Bot
2115956479
Update Rust crate tokio-util to 0.7.10
2023-10-26 17:06:06 +00:00
Renovate Bot
7b84337aa1
Update Rust crate futures to 0.3.29
2023-10-26 15:04:46 +00:00
Renovate Bot
781f3e4142
Update Rust crate clap to 4.4.7
2023-10-26 14:00:36 +00:00
Renovate Bot
683595abbc
Update Rust crate serde to 1.0.190
2023-10-26 04:06:18 +00:00
Renovate Bot
449d56e43e
Update Rust crate base64 to 0.21.5
2023-10-23 21:36:33 +00:00
onyinyang
96a03f1a27
Remove non-implicit invremain attribute fields
2023-10-23 17:11:15 -04:00
onyinyang
3b2ee73bab
Remove backend options
2023-10-23 15:22:14 -04:00
onyinyang
ed72b05347
Add changes for bug fix in zkp crate
2023-10-23 15:22:11 -04:00
onyinyang
5e1a2d8c6d
Fix lox-wasm dependencies
2023-10-23 14:04:00 -04:00
onyinyang
794f80ab11
Fix bug in DupFilter that breaks serialize/deserialize
2023-10-23 13:55:19 -04:00
onyinyang
2d9febaf14
Update zkp crate dependency address
2023-10-23 13:44:45 -04:00
Renovate Bot
4e436e006b
Update Rust crate time to 0.3.30
2023-10-19 15:35:04 +00:00
onyinyang
f7f7a36812
Change address of zkp library
2023-10-19 10:58:52 -04:00
onyinyang
8bf938c81b
Update Cargo to point to public github zkp for now
2023-10-19 10:58:32 -04:00
onyinyang
68b5a9c18e
Upgrading several dalek dependencies and rand
2023-10-19 10:58:09 -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
8ebc4abc19
Minor formatting changes and last context read fix
2023-10-18 12:08:15 -04:00
onyinyang
a31ed0a4e5
Update output msg
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
d4c54e969c
Reconfigure distributor to handle static rdsys req
2023-10-18 12:08:14 -04:00
onyinyang
96cf4ab764
Add static request capabilities to rdsys-api-backend
2023-10-18 12:08:14 -04:00
Renovate Bot
ee4f53dbd4
Update Rust crate serde_with to 3.4.0
2023-10-17 17:35:10 +00:00
Renovate Bot
f0e97504ca
Update Rust crate serde to 1.0.189
2023-10-13 03:04:23 +00:00
Renovate Bot
fd9ab74f06
Update Rust crate sha1 to 0.10.6
2023-09-28 21:28:50 +00:00
Renovate Bot
faa127862b
Update Rust crate thiserror to 1.0.49
2023-09-28 21:22:10 +00:00
Renovate Bot
1acae45188
Update Rust crate clap to 4.4.6
2023-09-28 20:05:06 +00:00
Renovate Bot
845df42573
Update Rust crate clap to 4.4.5
2023-09-26 14:34:34 +00:00
Renovate Bot
72e2ab154a
Update Rust crate time to 0.3.29
2023-09-24 06:03:54 +00:00
Renovate Bot
a7feb74d6c
Update Rust crate tokio-util to 0.7.9
2023-09-20 18:03:52 +00:00
Renovate Bot
4e72f45eff
Update Rust crate clap to 4.4.4
2023-09-19 14:04:19 +00:00
onyinyang
7cc133236c
Add additional required changes for crate aes-gcm update to 0.1.0
2023-09-19 13:43:59 +00:00
Renovate Bot
464faaca5a
Update Rust crate aes-gcm to 0.10
2023-09-19 13:43:59 +00:00
Renovate Bot
c5bc0ee408
Update Rust crate chrono to 0.4.31
2023-09-15 15:03:48 +00:00
onyinyang
f85878c89a
Change base64 generator to match updates
2023-09-14 15:30:10 +00:00
Renovate Bot
212105ca4d
Update Rust crate base64 to v0.21.4
2023-09-14 15:30:10 +00:00
Renovate Bot
19b30f6a1f
Update Rust crate serde_json to 1.0.107
2023-09-14 13:55:36 +00:00
onyinyang
67ae3ce5e2
Add documentation for db setup and more frequent save
2023-09-13 14:21:15 -04:00
Renovate Bot
5837285455
Update Rust crate clap to 4.4.3
2023-09-12 18:33:51 +00:00
Renovate Bot
8ec1f6237d
Update Rust crate subtle to 2.5
2023-09-11 17:35:00 +00:00
Renovate Bot
aade6e4913
Update Rust crate serde_json to 1.0.106
2023-09-11 17:04:02 +00:00
Renovate Bot
56632e9dec
Update Rust crate chrono to 0.4.30
2023-09-11 15:34:49 +00:00
onyinyang
84fa10cbe1
Adds DB struct and impl to db_handler
2023-09-11 11:17:00 -04:00
Vecna
3941dbed35
Add endpoint to artificially advance days (for testing)
2023-09-08 15:39:50 -04:00
Vecna
4f67f033c7
Add endpoint for client to fetch current date
2023-09-08 15:25:52 -04:00
onyinyang
5dc2ed2a90
Added minor fixes required for actual input
2023-09-07 15:30:52 -04:00
onyinyang
b3ddc03ba6
Make roll back date an arg, reduce fn complexity
2023-09-07 15:30:51 -04:00
onyinyang
e1057143fa
Add better handling for roll back and exact dates
2023-09-07 15:30:51 -04:00
onyinyang
ffb05d403a
Fix up database handling
2023-09-07 15:30:50 -04:00
onyinyang
f787253ad5
Added support for lox-context storage through sled
2023-09-07 15:30:50 -04:00
Renovate Bot
20f5da98e3
Update Rust crate serde_with to 3.3.0
2023-09-07 17:30:48 +00:00
Renovate Bot
b5ce8c9d40
Update Rust crate clap to 4.4.2
2023-09-07 17:28:46 +00:00
Renovate Bot
72e9a311ab
Update Rust crate tokio-util to 0.7.8
2023-09-07 17:08:20 +00:00
Renovate Bot
7c7fad03ca
Update Rust crate tokio-stream to 0.1.14
2023-09-07 15:34:17 +00:00
Renovate Bot
003be57c1a
Update Rust crate time to 0.3.28
2023-09-07 15:30:33 +00:00
Renovate Bot
e17af05fa0
Update Rust crate thiserror to 1.0.48
2023-09-06 17:34:36 +00:00
onyinyang
2bb043b6b8
Reformat lox context to include request handling fns
2023-08-30 18:45:49 -04:00
Renovate Bot
39577b95ca
Update Rust crate serde_json to 1.0.105
2023-08-30 17:43:11 +00:00
Renovate Bot
26d0f4ad40
Update Rust crate serde to 1.0.188
2023-08-30 17:33:09 +00:00
Renovate Bot
c528a527fe
Update Rust crate js-sys to 0.3.64
2023-08-30 17:29:09 +00:00
Renovate Bot
d163f7889f
Update Rust crate hyper to 0.14.27
2023-08-30 15:36:04 +00:00
Renovate Bot
8d58d07e93
Update Rust crate futures to 0.3.28
2023-08-30 15:15:42 +00:00
Renovate Bot
66a1d792eb
Update Rust crate chrono to 0.4.27
2023-08-29 23:34:44 +00:00
onyinyang
7647564c1e
Add test for k-invites
2023-08-02 17:21:03 -04:00
onyinyang
faf40caf3a
Change open invite logic to distribute to k users
2023-08-02 10:34:39 -04:00
onyinyang
a01619de6c
Addresses naming confusion and improves failure message
2023-08-02 10:21:38 -04:00
onyinyang
35f62ed213
Cleanup
2023-08-02 10:20:40 -04:00
onyinyang
572928a271
Fixed Basic Serialization/Deserialization to json
2023-08-02 10:15:11 -04:00
onyinyang
ef1ceafffe
Add better command line args and support for serialized Lox context
2023-08-02 10:15:10 -04:00
onyinyang
f52c6f515a
Add EXPIRY_DATE constant and fixup cloned vectors
2023-08-02 10:11:47 -04:00
onyinyang
93ce3e41b7
Add ExhausedIndexError for no available bucket ids
2023-08-02 10:11:46 -04:00
onyinyang
471cb8c8c4
Add test for find_next_available_key
2023-08-02 10:11:46 -04:00
onyinyang
6191970d9a
Fixed clean up blocked test
2023-08-02 10:11:46 -04:00
onyinyang
9c2b7703a8
Added open inv cleanup test
2023-08-02 10:11:46 -04:00
onyinyang
a62b537aa6
Add testing for blocked bucket cleanup
2023-08-02 10:11:46 -04:00