Commit Graph

490 Commits

Author SHA1 Message Date
Vecna 188c8b20f6 Format new changes 2024-04-26 23:43:44 -04:00
Vecna 080deb7974 Send test request on test interface 2024-04-26 23:12:58 -04:00
Vecna 5c0376cd56 Merge upstream changes 2024-04-26 23:05:00 -04:00
Vecna 0644431dee Add endpoint for advancing time during testing 2024-04-26 22:34:54 -04:00
Renovate Bot 95573f1193 Update Rust crate bincode to 1.3.3 2024-04-25 11:14:27 +00:00
Renovate Bot 1123b36970 Update Rust crate thiserror to 1.0.59 2024-04-20 19:35:39 +00:00
onyinyang 0e28602812
Update wasm for base64 encoded invite 2024-04-17 17:38:38 -04:00
onyinyang 0a12b0fc52
Serialize, Deserialize invite as base64 string
`loxinvite` is concatenated with an underscore
to try to prevent copy errors from telegram
2024-04-17 17:35:49 -04:00
onyinyang d0407e9e5d
Update lox-context to handle Removed bridges, add test for spare removals 2024-04-16 16:47:14 -04:00
onyinyang d881cf2fec
Remove spare and unallocated bridges rather than replacing them 2024-04-16 16:45:07 -04:00
onyinyang b771a40a3d
Fix deadlock error 2024-04-16 16:45:07 -04:00
onyinyang dae68efaae
Clear extra_bridges in distributor after sync, tidy up print statements 2024-04-16 16:45:07 -04:00
onyinyang 8e08adbdb0
Add sync check for unallocated_bridges in lox-library 2024-04-16 16:45:07 -04:00
onyinyang 76bb8757f5
Add basic tests for bridgetable sync with rdsys 2024-04-16 16:45:03 -04:00
onyinyang 5f34f49d17
Formatting changes from cargo fmt 2024-04-16 16:05:49 -04:00
onyinyang 82e63284ce
Update base64 version 2024-04-16 16:05:49 -04:00
onyinyang 5127762c2b
Add fake_resource_state crate for lox-context unit testing 2024-04-16 16:04:57 -04:00
onyinyang cee2510324
Move random Bridgeline generator function to lox_utils 2024-04-15 18:52:01 -04:00
Renovate Bot 39531bd969
Update Rust crate time to 0.3.36
Signed-off-by: Cecylia Bocovich <cohosh@torproject.org>
2024-04-15 16:57:39 -04:00
Renovate Bot 267747a01e
Update Rust crate clap to 4.5.4
Signed-off-by: Cecylia Bocovich <cohosh@torproject.org>
2024-04-15 16:56:55 -04:00
Renovate Bot 06cac427b8
Update Rust crate chrono to 0.4.38
Signed-off-by: Cecylia Bocovich <cohosh@torproject.org>
2024-04-15 16:54:35 -04:00
Vecna ec5217222e Include nonce in negative reports 2024-04-12 03:13:09 -04:00
Vecna 13bf94ec17 Add date to proof of bridge knowledge in negative reports 2024-04-04 22:56:10 -04:00
Vecna eb1b4939be from_lox_credential() now returns a Result 2024-03-29 16:18:34 -04:00
Vecna 2bbc0e8705 Merge remote-tracking branch 'upstream/main' 2024-03-19 17:29:08 -04:00
Renovate Bot c7aa2d2ee2
Update Rust crate thiserror to 1.0.58
Signed-off-by: Cecylia Bocovich <cohosh@torproject.org>
2024-03-19 10:48:57 -04:00
Vecna 94dc1c063c Endpoint for TP system to report bridges are blocked 2024-03-15 19:31:18 -04:00
Vecna 07f0e38a40 Merge upstream changes 2024-03-15 16:48:51 -04:00
Vecna 64ada23f21 Generate tp_bridge_infos initially and whenever syncing with rdsys 2024-03-15 16:44:32 -04:00
Vecna daeeb3fdea Add function to lox_context to create fingerprint maps for TP verification 2024-03-15 16:22:43 -04:00
Vecna 4eba9df7db Add tests for positive reports 2024-03-15 13:25:13 -04:00
Vecna 684ba0a575 Add tests for invalid negative reports 2024-03-15 12:08:18 -04:00
Vecna fae8a9a74f TP renamed bridge_info::BridgeInfo 2024-03-15 11:32:51 -04:00
Vecna 6a0ff0d8a2 Begin implementing Troll Patrol handler 2024-03-15 02:30:57 -04:00
Renovate Bot f4af7b5e71 Update Rust crate tokio-stream to 0.1.15 2024-03-14 21:12:17 +00:00
Cecylia Bocovich c92a14d612
Use more descriptive error for lox proto functions
Request functions for protocols in the Lox library previously returned a
ProofError error type, which is not verbose enough to allow for accurate
debugging.

This commit introduces a new error enum, CredentialError, with several
types that allow for descriptive error messages.
2024-03-12 16:16:04 -04:00
Renovate Bot bd58409762 Update Rust crate serde_with to 3.7.0 2024-03-11 22:09:04 +00:00
Vecna 503c026964 Move (unhashed) fingerprint to field in BridgeLine 2024-03-11 15:58:31 -04:00
Cecylia Bocovich 12deeddeb0
Further condense search for replacement spares 2024-03-09 20:55:40 -05:00
Cecylia Bocovich 762fef432f
Remove unecessary res variable 2024-03-09 20:55:40 -05:00
Cecylia Bocovich a6c98b8f43
De-duplicate bridge replacement code 2024-03-09 20:55:40 -05:00
Cecylia Bocovich e6b0cf842a
Pass available_bridge by value rather than reference
Allows us to pop() from extra_bridges, which is less prone to errors than
calling both last() and then remove().
2024-03-09 20:55:40 -05:00
Cecylia Bocovich 2c396f63fa
Factor out a dissolve_spare_bucket fn
This function takes a spare bucket, specified by the given key, and
repurposes the bridges as unallocated.
2024-03-09 20:15:03 -05:00
Cecylia Bocovich 41402209f5
Delay recycling bridge table keys until we're done with them 2024-03-09 20:14:34 -05:00
Cecylia Bocovich 6462027b7f
Simplify selection of spare replacement bucket 2024-03-09 20:14:29 -05:00
Cecylia Bocovich 203b949d43
Use let-else to return early and reduce indentation 2024-03-09 16:25:41 -05:00
Renovate Bot bbfdd08ca1
Update Rust crate serde to 1.0.197
Signed-off-by: Cecylia Bocovich <cohosh@torproject.org>
2024-03-08 13:13:20 -05:00
Renovate Bot bf01251edf Update Rust crate clap to 4.5.2 2024-03-07 17:07:16 +00:00
Renovate Bot 74d7cab83d Update Rust crate prometheus-client to 0.22.2 2024-03-07 10:37:29 +00:00
onyinyang 3f4f79c5b7 Removed to_be_replaced vector 2024-03-06 15:00:34 +00:00