refactor(rivetkit-core): use subtle::ConstantTimeEq for inspector token verify#4730
Conversation
62f3a06 to
d26d955
Compare
2c0ba8a to
a512a8f
Compare
d26d955 to
1c8fb57
Compare
Code Review: refactor(rivetkit-core): use subtle::ConstantTimeEq for inspector token verifyOverviewThis PR replaces the hand-rolled What the PR Does
AnalysisSecurity — Correct Direction The custom Behavior Change — Important Nuance The old In this specific context, the token is always generated as a fixed-length base64 string from Dependency — Already a Workspace Dep
Code Quality The diff is minimal and correct. The import is added, the call site is clean ( Suggestions
SummaryGood, focused security improvement. Replacing a hand-rolled constant-time comparison with the audited |
a512a8f to
b3d5c95
Compare
1c8fb57 to
7377471
Compare
b3d5c95 to
95ff109
Compare
7377471 to
6b8454a
Compare
6b8454a to
4026613
Compare
95ff109 to
14947c2
Compare
4026613 to
bef6550
Compare
048de9b to
d47c579
Compare
bef6550 to
9189e26
Compare
|
Landed in main via stack-merge fast-forward push. Commits are in main; closing to match. |

Description
Please include a summary of the changes and the related issue. Please also include relevant motivation and context.
Type of change
How Has This Been Tested?
Please describe the tests that you ran to verify your changes.
Checklist: