Commit Graph

249 Commits

Author SHA1 Message Date
Vecna 13d098eaa0 Artificially advance time on BridgeDb 2024-06-06 16:37:16 -04:00
Vecna 43aff6c750 Revert "Encrypt invites_remaining during blockage migration"
This reverts commit 3bd99e9fbd.
2024-05-28 19:00:08 -04:00
Vecna d3baf5cc68 Merge remote-tracking branch 'onyinyang/blockage-mig-bug' 2024-05-28 18:52:08 -04:00
onyinyang f14c2ad6e0
Fix bug that encodes invremaining incorrectly 2024-05-28 18:30:14 -04:00
Vecna 7bca0f3417 Merge changes to fix blockage migration 2024-05-26 14:27:56 -04:00
Vecna 1864f0ca83 Re-merge tests, test going from levels 4 -> 2 -> 3 -> 1 2024-05-26 14:10:38 -04:00
Vecna 3bd99e9fbd Encrypt invites_remaining during blockage migration
Reverts ed72b05347
2024-05-26 14:07:14 -04:00
Vecna 59358787eb Break into two tests 2024-05-26 12:55:51 -04:00
Vecna 47e0cf9f69 Demo blockage migration from level 4 cred failing 2024-05-26 11:34:44 -04:00
Vecna 69f8fdc1e4 Add function to BridgeLine to get hashed fingerprint 2024-04-30 01:22:32 -04:00
Vecna 761c511849 Merge remote-tracking branch 'upstream/main' 2024-04-29 13:24:54 -04:00
Renovate Bot 79df7eb8c8 Update Rust crate lazy_static to 1.4.0 2024-04-29 10:35:21 +00:00
Renovate Bot 0235ac26b7 Update Rust crate ed25519-dalek to 2.1.1 2024-04-29 10:05:09 +00:00
meskio 2d616eed08
Merge remote-tracking branches 'origin/mr/160', 'origin/mr/159' and 'origin/mr/162' 2024-04-29 11:59:37 +02:00
Vecna 5c0376cd56 Merge upstream changes 2024-04-26 23:05:00 -04:00
Renovate Bot b7b0aa6da8 Update Rust crate curve25519-dalek to 4.1.2 2024-04-25 16:05:09 +00:00
Renovate Bot e7e2fc0b60 Update Rust crate chrono to 0.4.38 2024-04-25 16:05:06 +00: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 d881cf2fec
Remove spare and unallocated bridges rather than replacing them 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 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
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
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 07f0e38a40 Merge upstream changes 2024-03-15 16:48:51 -04: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
Vecna e1bed84e27 cargo-fmt 2024-02-28 11:49:47 -05:00
Vecna 88a0990243 Don't have LA recompute H every time to verify positive reports 2024-02-28 11:47:49 -05:00
Vecna 2ca58d8b5a Use const for generating H 2024-02-26 17:50:37 -05:00
Vecna af68c8818d Have LA recompute H rather than accepting it from user 2024-02-26 17:37:56 -05:00
Vecna e2e59e50a6 Make H, BH public so knowledge of bucket can be verified 2024-02-20 16:46:38 -05:00
Vecna 65e763724b Merge changes from upstream 2024-02-20 16:45:56 -05:00
onyinyang 420d3be4bd Fixes last open invite bucket distribution 2024-02-12 23:11:55 +00:00
Renovate Bot 906577f6a8
Update Rust crate time to 0.3.34
Signed-off-by: Cecylia Bocovich <cohosh@torproject.org>
2024-02-12 17:17:30 -05:00
Renovate Bot 9175f636d5
Update Rust crate serde to 1.0.196
Signed-off-by: Cecylia Bocovich <cohosh@torproject.org>
2024-02-12 17:15:08 -05:00
Renovate Bot 10067f6be6 Update Rust crate thiserror to 1.0.57 2024-02-11 19:40:16 +00:00
Renovate Bot f72c7ed4fa Update Rust crate serde_with to 3.6.1 2024-02-09 00:36:36 +00:00