Skip to content
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

Verify validator token manifest matches private key #2268

Closed
wants to merge 2 commits into from

Conversation

wilsonianb
Copy link
Contributor

@wilsonianb wilsonianb commented Nov 15, 2017

Throw error if validator token key does not match manifest

Copy link
Collaborator

@bachase bachase left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@@ -42,9 +42,23 @@ ValidatorKeys::ValidatorKeys(Config const& config, beast::Journal j)
if (auto const token = ValidatorToken::make_ValidatorToken(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like the non-unity build wants #include <beast/core/detail/base64.hpp>

@codecov-io
Copy link

Codecov Report

Merging #2268 into develop will decrease coverage by 0.01%.
The diff coverage is 88.88%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #2268      +/-   ##
===========================================
- Coverage    70.11%   70.09%   -0.02%     
===========================================
  Files          689      689              
  Lines        50800    50806       +6     
===========================================
- Hits         35617    35615       -2     
- Misses       15183    15191       +8
Impacted Files Coverage Δ
src/ripple/app/misc/impl/ValidatorKeys.cpp 87.09% <88.88%> (-0.91%) ⬇️
src/ripple/basics/DecayingSample.h 77.77% <0%> (-8.34%) ⬇️
src/ripple/app/misc/SHAMapStoreImp.cpp 78.92% <0%> (-1.03%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cafe18c...7362ee3. Read the comment docs.

Copy link
Collaborator

@scottschurr scottschurr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like a good change to me. Everything is building and passing for me on macOS. Thanks for adding the unit test!

@wilsonianb wilsonianb added the Passed Passed code review & PR owner thinks it's ready to merge. Perf sign-off may still be required. label Nov 16, 2017
Reject manifest with invalid public key type

RIPD-1560
@scottschurr
Copy link
Collaborator

👍

@bachase
Copy link
Collaborator

bachase commented Nov 30, 2017

Merged as 40c39c4 and 25b002b

@bachase bachase closed this Nov 30, 2017
@wilsonianb wilsonianb deleted the verify-token branch May 15, 2018 22:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Passed Passed code review & PR owner thinks it's ready to merge. Perf sign-off may still be required.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants