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

Remove HTTP signature for self RPCs #2885

Merged
merged 14 commits into from
Aug 13, 2021

Conversation

jumaffre
Copy link
Contributor

@jumaffre jumaffre commented Aug 9, 2021

Nodes' self RPCs (genesis and JWT refresh) were signed, but with the wrong keyId. These signatures weren't actually verified so this PR removes the HTTP signature on those. Note that as discussed with @achamayou and @eddyashton, there is no apparent benefit in signing and storing these signatures currently (the primary node already emits signature transactions for blame), so we will hold off doing this for now.

Also:

@jumaffre jumaffre requested a review from a team August 9, 2021 15:48
CHANGELOG.md Outdated
@@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
### Changed

- CCF is now built with Clang 10. It is recommended that C++ applications upgrade to Clang 10 as well.
- Internal `/gov/jwt_keys/refresh` endpoint has been moved to `/node/jwt_keys/refresh`.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This endpoint isn't listed in the OpenAPI spec yet it shows up in the metrics for a given frontend so I've listed it here just in case.

@ghost
Copy link

ghost commented Aug 12, 2021

fix_node_signature_self_requests@30827 aka 20210813.3 vs main ewma over 20 builds from 30310 to 30824

Click to see table
build_id build_number tpcc_sgx_cft^ tpcc_sgx_cft_mem tpcc_sgx_bft^ tpcc_sgx_bft_mem ls_sgx_cft^ ls_sgx_cft_mem ls_jwt_sgx_cft^ ls_jwt_sgx_cft_mem ls_js_sgx_cft^ ls_js_sgx_cft_mem ls_full_js_sgx_cft^ ls_full_js_sgx_cft_mem ls_js_jwt_sgx_cft^ ls_js_jwt_sgx_cft_mem CHAMP put (/s)^ CHAMP get (/s)^
30310 20210805.2 6501.59 9.05749e+07 3303.63 1.66597e+08 22846.1 1.76989e+07 4225.34 1.48153e+07 2609.9 9.57242e+06 2582.74 9.31027e+06 1772.14 8.2617e+06 1.3376e+06 3.62478e+07
30311 20210805.3 6332.79 9.24099e+07 3264.6 2.03035e+08 20377.3 1.71746e+07 4360.14 1.45532e+07 2738.78 9.83456e+06 2565.93 9.83456e+06 1783.74 8.2617e+06 1.35728e+06 3.62478e+07
30337 20210805.9 6681.77 9.21478e+07 1365.86 1.68694e+08 24352.9 1.69124e+07 4505.32 1.58639e+07 2718.19 1.29803e+07 2449.56 1.40289e+07 1745.97 8.2617e+06 1.50113e+06 3.63121e+07
30434 20210805.32 6362.94 9.10992e+07 1458.98 1.68956e+08 24247.3 1.69124e+07 4546.66 1.53396e+07 2658.66 1.2456e+07 2613.42 9.83456e+06 1787.02 1.00967e+07 1.46076e+06 3.58669e+07
30452 20210805.36 6464.53 9.29342e+07 1665.7 1.51917e+08 23639 1.71746e+07 4567.78 1.53396e+07 2665.92 1.32424e+07 2582.46 1.21939e+07 1773.82 8.2617e+06 1.45775e+06 3.59298e+07
30468 20210805.40 6269.45 9.08371e+07 1414.2 1.50082e+08 24058.7 1.66503e+07 4496.11 1.56017e+07 2705.92 1.32424e+07 2586.25 9.83456e+06 1781.33 8.2617e+06 1.47158e+06 3.58048e+07
30472 20210805.41 6543.56 9.26721e+07 1536.42 1.56111e+08 24426.9 1.66503e+07 4403.2 1.4291e+07 2719.81 1.00967e+07 2547.75 1.45532e+07 1790.76 9.31027e+06 1.47475e+06 3.66369e+07
30479 20210806.2 6704.21 9.13613e+07 1364.91 1.70267e+08 23657.6 1.66503e+07 4542.43 1.53396e+07 2683.89 1.03588e+07 2578.31 1.4291e+07 1770.09 8.2617e+06 1.4093e+06 3.48893e+07
30533 20210808.1 6425.71 9.18856e+07 1449.66 1.63189e+08 23935.5 1.7961e+07 4536.99 1.56017e+07 2661.52 1.03588e+07 2563.73 1.37667e+07 1789.89 8.2617e+06 1.46348e+06 3.56174e+07
30550 20210809.2 6577.54 9.00506e+07 1365.15 1.645e+08 23394.8 1.7961e+07 4518.19 1.58639e+07 2665.97 1.32424e+07 2568.02 1.45532e+07 1714.02 8.52384e+06 1.44011e+06 3.58042e+07
30583 20210809.12 6600.58 9.16235e+07 1414.9 1.63189e+08 23960.3 1.71746e+07 4549.03 1.56017e+07 2634.77 1.00967e+07 2575.1 9.83456e+06 1757.71 8.2617e+06 1.46745e+06 3.56788e+07
30610 20210810.2 6389.34 9.05749e+07 1509.7 1.62665e+08 24042.7 1.69124e+07 4487.88 1.56017e+07 2660.88 1.00967e+07 2520.66 9.83456e+06 1760.06 1.03588e+07 1.48288e+06 3.5993e+07
30679 20210811.2 6709.99 9.16235e+07 1502.34 1.50606e+08 23809.7 1.69124e+07 4443.82 1.58639e+07 2683.4 1.32424e+07 2571.44 9.83456e+06 1749.24 8.2617e+06 1.43759e+06 3.59298e+07
30688 20210811.5 6527.81 9.16235e+07 1562.78 1.49295e+08 24158.6 1.66503e+07 4562.68 1.56017e+07 2672.24 1.35046e+07 2591.23 1.00967e+07 1781.1 8.2617e+06 1.46232e+06 3.56168e+07
30701 20210811.9 6561.95 9.13613e+07 1618.8 1.45625e+08 24058.9 1.66503e+07 4361.79 1.56017e+07 2654.69 1.00967e+07 2551.01 9.83456e+06 1807.67 8.2617e+06 1.46231e+06 3.55549e+07
30729 20210811.16 6506.95 9.10992e+07 1284.34 1.84422e+08 24095.3 1.69124e+07 4375.18 1.58639e+07 2635.07 1.32424e+07 2563.61 9.83456e+06 1770.31 8.2617e+06 1.46903e+06 3.55549e+07
30746 20210811.20 6600.63 9.24099e+07 1419.46 2.03821e+08 24117 1.74367e+07 4385.93 1.56017e+07 2612.27 1.21939e+07 2583.06 1.00967e+07 1810.79 8.52384e+06 1.45515e+06 3.58663e+07
30756 20210812.2 6646.78 9.16235e+07 1256.72 1.65286e+08 23408.4 1.66503e+07 4362.58 1.56017e+07 2656.9 1.35046e+07 2561.36 9.83456e+06 1778.65 8.52384e+06 1.46421e+06 3.56174e+07
30811 20210812.19 6500.87 9.29342e+07 1611.16 1.52965e+08 23986.1 1.69124e+07 4483.57 1.56017e+07 2701.51 1.03588e+07 2525.25 1.45532e+07 1782.15 8.2617e+06 1.47094e+06 3.53713e+07
30824 20210813.2 6708.9 9.13613e+07 1349.66 1.7184e+08 23229 1.66503e+07 4317.2 1.58639e+07 2654.03 9.83456e+06 2558.91 1.4291e+07 1790.81 8.2617e+06 1.4683e+06 3.58669e+07

images

@jumaffre
Copy link
Contributor Author

Force merging this PR as the Daily failure is unrelated (see #2896).

@jumaffre jumaffre merged commit 4929ee6 into microsoft:main Aug 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants