-
Notifications
You must be signed in to change notification settings - Fork 6
Re-implement randomness server in rust #50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Changes from 91 commits
Commits
Show all changes
93 commits
Select commit
Hold shift + click to select a range
61683a6
Add renovate.json
renovate[bot] abeaa61
Stub out a axum-based rust web service.
rillian 0676723
Stub out axum routes
rillian 5d1233a
Fix up logging
rillian 2b98c57
Stub out the /randomness endpoint
rillian 1e755ee
Stub out /randomness endpoint
rillian 6aacdae
Processes all submitted points.
rillian 3975a2f
cargo fmt
rillian e621f9b
Update rust deps
rillian 5b63a76
Replace Mutex with RwLock.
rillian 23c4e9b
Add basic comments to types
rillian a0137ca
Stub out background epoch rotation task
rillian a0cf909
Rotate OPRF key when epoch list is exhausted.
rillian 48ce3cf
Add error handling
rillian 0896f57
Fix clippy lints
rillian e77eeec
Fix OPRF key rotation
rillian acdb3fb
Remove old nitriding implementation
rillian 49c118b
Update Dockerfile to build the new configuration.
rillian 4a54a87
Update Makefile
rillian 3dc48a1
Don't lint nitriding
rillian d5652ed
Fix build path
rillian b3daa78
Base container on debian:slim
rillian c529e8c
Use static builds with the docker container.
rillian fa22c5f
Use nitriding's static build
rillian c0b0395
Implement /info endoint
rillian 0951a7b
Enforce current epoch and max points per request.
rillian 1c6477e
Add a test for the root endpoint
rillian 7dc91bf
Update to Rust edition 2021.
rillian 41ed6ed
Update Dockerfile to use golang:1.20
rillian 5074c17
Update start.sh with dev deployment fqdn
rillian 86231bb
Fix typo
rillian f56033e
fix typo
rillian 1cf8794
Merge remote-tracking branch 'origin/main' into rust
rillian 000b9f8
Merge remote-tracking branch 'origin/main' into rust
rillian 91a361c
Use thiserror to derive error messages
rillian d7f7f92
Remove map_err calls
rillian 6fa4ea9
Make the star/start up pun explicit
rillian 0ed4bf4
cargo fmt
rillian 981e66a
Add command line switches
rillian eec9dcd
cargo fmt
rillian 46f9c42
Add test for the /info endpoint
rillian 0e1a3a8
Verify we can parse the server public key
rillian e8a43dc
Add test for the /randomness endpoint
rillian d98b622
Consolitate test app into a helper
rillian d4fec5b
Consolidate request building.
rillian 75319f9
Verify welcome message is utf-8.
rillian a263104
Shorten test names.
rillian cd2caf0
Report the next epoch rotation time
rillian 3cdfd2d
Truncate nextEpochTime to the nearest second.
rillian 7373b39
Update InfoResponse test for nextEpochTime field
rillian 5f67b3e
Improve comments
rillian cd8efb0
Merge remote-tracking branch 'origin/main' into rust
rillian 0b559de
cargo fmt
rillian 163f726
Use fewer temporaries constructing InfoResponse
rillian 2b0af3f
Verify maxPoints and nextEpochTime in InfoResponse test
rillian 0ca2733
Makefile: remove unused deps
rillian db8c47a
Use is_empty() instead of len() > 0
rillian 033c20a
Test submitting multiple points
rillian 5f0c872
Test specifying an epoch
rillian 9265c40
Bump container base image versions
rillian 33b5d54
Bump rust dependencies
rillian b75c690
Use port 443 for the exported https interface
rillian b6f41f9
Bump nitriding to v2.0.1
rillian bc8ac6d
Hoist timestamp calculation
rillian 19c5953
Let tracing log the config object directly
rillian 633dc29
Mark trace events from epoch_update_loop
rillian 0fb7d89
Add --listen command line switch
rillian 0a58ab0
fixup tests for --listen switch
rillian 4ad8295
Move the tests module to a separate source file
rillian dbc753f
cargo fmt
rillian 6cf590d
Move the epoch rotation function to a separate module.
rillian 93288d2
Move request handlers into a separate module
rillian ff0a318
Allow clippy::assertions_on_constants in tests::epoch
rillian c47465c
cargo fmt
rillian d9b26ee
Use the Amazon Web Services container registry
rillian def73b1
Invoke start.sh from the full path.
rillian 896e4a2
Update Makefile
rillian 0f800e7
Update nitriding for the buildcvs=false fix
rillian 67369ed
Add a makefile step to update the nitriding submodule
rillian c517bb8
Place OPRFState and friends together with the update update loop.
rillian 76bca6f
Pass prove as a false value to ppoprf::server::eval
rillian f2dd246
github actions: initialize submodules before building
rillian 347c8a7
Test deployment from the rust branch.
rillian 9cbcaef
Make star-randsrv build reproducibly.
368be97
Merge pull request #55 from brave/reproducible-build
8c5363c
Return 500 Internal Server Error on LockFailure
rillian 64367e1
Check for overflow incrementing the epoch.
rillian 2adf203
cargo fmt
rillian 0f2fb25
Remove unnecessary borrow.
rillian e75c152
github actions: remove golang config
rillian 80ed097
Merge pull request #46 from brave/renovate/configure
rillian 334bb06
Don't deploy from the rust branch
rillian ae95895
Don't checkout submodules for deployment builds.
rillian File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,13 +20,5 @@ jobs: | |
| - name: Checkout | ||
| uses: actions/checkout@v2 | ||
|
|
||
| - name: Setup go | ||
| uses: actions/setup-go@v3 | ||
| with: | ||
| go-version: 1.19 | ||
|
|
||
| - name: Install golangci-lint | ||
| run: go install github.com/golangci/golangci-lint/cmd/[email protected] | ||
|
|
||
| - name: Build | ||
| run: make | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| [submodule "nitriding"] | ||
| path = nitriding | ||
| url = https://github.com/brave/nitriding.git |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.