Commit Graph

132 Commits

Author SHA1 Message Date
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 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
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 003be57c1a Update Rust crate time to 0.3.28 2023-09-07 15:30:33 +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 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 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 9c2b7703a8
Added open inv cleanup test 2023-08-02 10:11:46 -04:00
onyinyang 3c88f4471b
Fix up convoluted function 2023-08-02 10:11:46 -04: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
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
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
onyinyang 2e4090e21c
Add time check to gone resource handling 2023-06-16 17:18:19 -04:00
Cecylia Bocovich 67639e2f11
Remove needless range loops 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 dc8774f5b8
Add Test for lox-distributor 2023-06-06 19:58:34 -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 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
onyinyang 562b74c274
Clean up code and improve readability 2023-03-24 13:16:26 -04:00
onyinyang 22ef5d157d
Updating bridges to make sense 2023-03-24 11:31:01 -04:00
onyinyang 3f5d497573
Incorporate impl Stream for ResourceStream changes from rdsys-api-backend 2023-03-22 19:14:56 -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 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 be861baf36
Add parsing resource into Lox BridgeLine 2023-03-09 19:01:01 -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 7bf91edbaa
Add redeem invite 2023-02-27 14:17:07 -05:00
onyinyang fdaa75f43d
Add issue invitation 2023-02-24 19:10:38 -05:00
onyinyang a5b6ec8b93
Add request handling for encrypted bridge table and level up 2023-02-23 01:00:53 -05:00
onyinyang 984bbe9370
Add trust migration server handling 2023-02-13 23:58:38 -05:00
onyinyang 11071756d4
Add advance days for testing purposes 2023-02-13 16:28:24 -05:00
onyinyang f4e34c06b1
Add server side for trust promo requests 2023-02-06 17:41:26 -05:00
onyinyang 9f0d0203a0
Fix issue with public key request 2023-02-06 13:57:23 -05:00
onyinyang 04b4d50ef9
Change keys to string to be handled properly in index.js 2023-02-01 00:44:18 -05:00
onyinyang 77d4f8b164
Handle POST requests and open invite credential request 2023-01-30 18:14:22 -05:00
onyinyang 61940bdfe3
Sends pubkeys on request 2023-01-25 15:49:40 -05:00
onyinyang 0f0f13df0d
Tentative structure for request handler 2023-01-25 15:49:40 -05:00
onyinyang f80a6c80eb
Adds bridge authority and placeholder buckets 2023-01-25 15:41:34 -05:00
Cecylia Bocovich bb5bdac588 Added README 2022-11-15 22:05:02 -05:00
Cecylia Bocovich b97310c35b Add Access-Control-Allow-Origin header 2022-11-15 22:04:04 -05:00
Cecylia Bocovich 9992e3c73c Simple lox server
Right now only issues open invite tokens
2022-11-15 19:11:16 -05:00