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
onyinyang
3c88f4471b
Fix up convoluted function
2023-08-02 10:11:46 -04:00
onyinyang
d2d09bccc1
Add more comprehensive logic for tidying unneeded buckets
2023-08-02 10:11:46 -04:00
onyinyang
40f1e88a31
Add find_next_available_key function to prevent overwriting buckets
2023-08-02 10:11:46 -04:00
onyinyang
48cdb97a9f
Fix licensing for lox-rs
2023-07-27 16:30:29 -04:00
onyinyang
7bf9eb5d7f
Add License for rdsys-backend-api
2023-07-25 16:06:35 +00:00
onyinyang
89d83dd7d3
Add License for Rdsys Backend API
2023-07-25 15:39:13 +00:00
onyinyang
431aa668ed
Add new file
2023-07-25 15:38:03 +00:00
onyinyang
b727c69a90
Add License to Lox Utils
2023-07-25 15:37:46 +00:00
onyinyang
8c414ed2ba
Add License to Lox Distributor
2023-07-25 15:36:58 +00:00
onyinyang
7f92ea6833
Formatting fixes for entire project
2023-07-19 10:37:09 -04:00
onyinyang
d98ae40879
Fix formatting
2023-07-19 10:30:35 -04:00
Cecylia Bocovich
7a24fdfa06
Update lox distributor to use most recent rdsys_backend
...
The structure of the ResourceDiff has been changed, so the lox
distributor has to modify how it parses the diff.
2023-06-29 13:11:44 -04:00
Cecylia Bocovich
aa785419d8
Update backend_api to account for possibly null resource vector
2023-06-29 13:11:44 -04:00
onyinyang
607466b949
Clean up clippy fixes
2023-06-23 13:04:15 -04:00
onyinyang
369d830bca
All tests passing for HashMap implementation
2023-06-23 08:30:14 -04:00
onyinyang
69e4579450
Change encbuckets to HashMap with EncryptedBucket
2023-06-23 08:30:14 -04:00
onyinyang
610a579731
Fix up bridge_unreachable
2023-06-23 08:24:28 -04:00
onyinyang
0ede04164b
Fix up replace function, remove recyclable
2023-06-23 08:24:28 -04:00
onyinyang
607ecd89c7
Converting bridgetable vectors to HashMaps
2023-06-23 08:24:28 -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
onyinyang
2e4090e21c
Add time check to gone resource handling
2023-06-16 17:18:19 -04:00
onyinyang
d1710d2f80
Add lastpassed to rdsys-backend-api
2023-06-16 17:18:18 -04:00
Cecylia Bocovich
a57778a232
Remove needless arbitrary self type
2023-06-16 15:59:11 -04:00
Cecylia Bocovich
67639e2f11
Remove needless range loops
2023-06-16 15:59:11 -04:00
Cecylia Bocovich
3136a8ba85
Remove unsafe blocks that aren't needed
2023-06-16 15:59:11 -04:00
onyinyang
84d7691ab8
Separate out tests to improve readability
2023-06-16 12:45:27 -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
54c5a837ad
Add more common functions to lox_utils, clean up lox_wasm
2023-06-09 18:31:35 -04:00
onyinyang
003d9c886b
Add pipeline
2023-06-08 16:58:22 +00:00
onyinyang
c7c5f57864
Move validate function to lox_utils
2023-06-08 12:26:37 -04:00
onyinyang
b016bc9742
Move credential helpers out of lox-wasm
2023-06-07 16:10:37 -04:00
onyinyang
5ac0fc7bef
Fixup cargo imports to address stdweb issue
2023-06-07 16:02:02 -04:00
onyinyang
16ced3c5e0
Add other cargo fmt changes
2023-06-06 19:58:35 -04:00
onyinyang
dc8774f5b8
Add Test for lox-distributor
2023-06-06 19:58:34 -04:00
onyinyang
af9fc6dfd1
Add Lox-utils
2023-06-05 15:24:06 -04:00
onyinyang
e65c16ab0b
Merge branch 'lox-wasm'
2023-06-05 15:16:06 -04:00
onyinyang
21ff749e4f
Update lox-wasm Cargo.toml for workspace
2023-06-05 15:14:43 -04:00
onyinyang
aac0e52e43
Merge branch 'rdsys-backend'
2023-06-05 15:08:36 -04:00
onyinyang
4595cc9f8d
Merge branch 'lox-library'
2023-06-05 15:07:22 -04:00
onyinyang
ed0cfbebf5
Update rdsys-backend Cargo.toml for workspace
2023-06-05 15:00:30 -04:00
onyinyang
de5e7a0428
Merge 'rdsys-backend/main' into lox-workspace
2023-06-05 14:56:41 -04:00
onyinyang
231a1ed9f4
Update lox-distributor Cargo.toml for workspace
2023-06-05 14:51:01 -04:00
onyinyang
5b994de577
Merge 'lox-distributor/main' into lox-workspace
2023-06-05 14:46:28 -04:00
onyinyang
5ac8e703cf
Update lox-library Cargo.toml for workspace
2023-06-05 14:39:10 -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
607e1a425d
Remove performance statistics tests for pipeline
2023-05-15 20:18:20 -04:00
onyinyang
a9d5f31870
Add test pipeline
2023-05-15 20:17:53 -04:00
onyinyang
8d0f570627
Adds test and fixes for allocate bridges
2023-05-15 18:57:23 -04:00
onyinyang
45bb5756df
Minor fixes
2023-05-15 12:53:32 -04:00
onyinyang
6bff64f283
Adds replace_bridge test and fixes bugs in the function
2023-05-15 12:32:22 -04:00
onyinyang
0d317cea8c
Fix replace bridge to align with changes to lox-distributor
2023-05-11 17:02:33 -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
508eaf3bdd
Add functions to recycle and allocate extra bridges
2023-05-09 13:00:40 -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
83c7916805
Added bridge replacement
2023-05-08 12:31:36 -04:00
onyinyang
1adf145671
Make bucket size match constant in Lox library for all functions
2023-04-10 12:16:19 -04:00
onyinyang
ba7116aa16
Removing test function
2023-04-10 11:24:53 -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
onyinyang
11d4678be8
Update fingerprint to match UID from rdsys
2023-04-04 18:39:28 -04:00
onyinyang
dafe1b0a1d
Add get_uid function for API resource
2023-04-04 16:10:16 -04:00
onyinyang
a3a693d45a
Revise bridge bytes size to 300
2023-04-03 12:06:20 -04:00
onyinyang
362996c4f7
Add fingerprint field to Bridgeline
2023-04-03 11:47:11 -04:00
onyinyang
a206917e92
Add update bridge function
2023-03-27 12:36:57 -04:00
onyinyang
562b74c274
Clean up code and improve readability
2023-03-24 13:16:26 -04:00
onyinyang
b0038720e0
Make all requests POST requests to match server and browser handling
2023-03-24 13:02:42 -04:00
onyinyang
22ef5d157d
Updating bridges to make sense
2023-03-24 11:31:01 -04:00
onyinyang
e257a05c99
Add bridge update
2023-03-23 13:21:04 -04:00
onyinyang
f08520de84
Update function definition for bridge update
2023-03-23 11:00:10 -04:00
onyinyang
3f5d497573
Incorporate impl Stream for ResourceStream changes from rdsys-api-backend
2023-03-22 19:14:56 -04:00
Cecylia Bocovich
eb43414574
Only return Poll::Pending if the inner future returns it
...
The waker stored in the future will only wake up and re-poll the stream
if the call to future returned Poll::Pending. Because of this, if we
didn't receive enough data to reconstruct the ResourceDiff, we need to
loop and poll the inner future again rather than return Poll::Pending
ourselves.
2023-03-22 17:41:08 -04:00
Cecylia Bocovich
e1e5e798b6
Use a ReusableBoxFuture to store ReceiverStream
2023-03-22 15:05:05 -04:00
Cecylia Bocovich
0b0324c487
Change ResourceStream from an Iterator into a Stream
2023-03-21 17:37:15 -04:00
onyinyang
490ce2f19c
Add distributor logic for bridge updates from rdsys, handling for unsuccessful removals/updates
2023-03-20 12:42:40 -04:00
onyinyang
366111e28f
Add bridge_update stub
2023-03-20 12:33:26 -04:00
onyinyang
0476a88419
Add comments
2023-03-20 11:53:10 -04:00
onyinyang
9e78a90541
Adds graceful shutdown for all tasks, rdsys stream inconsistent shutdown
2023-03-17 10:41:32 -04:00
onyinyang
9616b95b5d
Update README
2023-03-15 15:42:04 -04:00
onyinyang
c74da3a078
Server responds to requests and processes bridgelines from rdsys
2023-03-15 15:21:03 -04:00
onyinyang
3b0c8ab5b6
Implements server functionality, next get thread working
2023-03-15 12:38:38 -04:00
onyinyang
34f1d0399f
Refactoring to add a channel to pass messages to client
2023-03-13 18:05:52 -04:00
onyinyang
c715d80632
[WIP] Progress on bridgedb update through channel update
2023-03-10 16:54:31 -05:00
onyinyang
b2642d353c
Add add_invitation_bucket for new bridgelines and remove gone bridgelines
2023-03-10 15:21:27 -05:00
onyinyang
42f5c0e764
Increase bridge info size
2023-03-10 12:02:45 -05:00
onyinyang
be861baf36
Add parsing resource into Lox BridgeLine
2023-03-09 19:01:01 -05:00
onyinyang
00aa9b0ab1
Revert "Add fields to BridgeLine"
...
This reverts commit 4a014725cdae582401f5d166a722317ed45b8bfe.
2023-03-09 18:18:02 -05:00
onyinyang
a76fdc98b9
Add fields to BridgeLine
2023-03-09 16:59:20 -05:00
onyinyang
a7cf09f812
Read json config from commandline file, progress on channels
2023-03-03 17:25:43 -05:00
onyinyang
1018dd827f
Add resourcediff stream stub for rdsys integration
2023-03-03 14:09:13 -05:00
Cecylia Bocovich
9e2d341751
Allow POST requests for invite tokens
2023-03-01 20:05:51 -05:00
onyinyang
a9de52a266
Blockage Migration tested and fixed up
2023-02-28 12:57:57 -05:00
onyinyang
fd4f715ad9
REVERT BEFORE USING: make BA today function, bridge_table public for testing
2023-02-28 12:01:00 -05:00
onyinyang
dd00f99958
Add blockage migration (untested)
2023-02-27 16:58:06 -05:00
onyinyang
1bac11f1d0
Refactor Lox Credential, Add check blockage
2023-02-27 16:46:01 -05:00
onyinyang
8faf4fc273
Add redeem invite
2023-02-27 14:17:26 -05:00