fix: prevent HMACKey secret from leaking via Debug#126
fix: prevent HMACKey secret from leaking via Debug#126Paraworker wants to merge 1 commit intojedisct1:masterfrom
Conversation
Swival ReviewThis review was automatically generated by Swival using exclusively open-source models running locally. FindingHigh severity. This pull request is incomplete, because it changes the In The problem is that the same protection is not applied to the other private or symmetric key types. Several secret-bearing structs still derive There is also still derived What makes this more clear is that the project already has the redacted pattern for some other secret key types. You can see manual So the codebase already goes in that direction, but this PR applies it only to one specific key family. Because of this, I do not think the patch is ready to merge in the current form. Either the redacted AssumptionI assume the intent of the PR is to avoid accidental leakage of secret material through Short conclusionI found one important issue. The change is correct in isolation, but incomplete at project level. It addresses |
54578c7 to
3da23b6
Compare
3da23b6 to
550493e
Compare
HMACKeypreviously derivedDebug, which would print the raw key bytes.This PR implements
Debugmanually without exposing key data.