HomePhorge

Do not return {:error, reason} tuple on header check failure

Description

Do not return {:error, reason} tuple on header check failure

Due to how Pleroma handles checking whether the signature check failed
or not, returning the error tuple also constitutes as a valid signature.
(Pleroma uses cond which matches on the first thing that does not
evaluate to false or nil and {:error, reason} passes that test.)

Details

Provenance
PhantasmAuthored on Sun, May 10, 1:35 PM
Parents
R18:a97413244347: Add Woodpecker CI lint and test pipelines
Branches
Unknown
Tags
Unknown

Event Timeline

Phantasm <phantasm@centrum.cz> committed R18:673b3f7ba2e4: Do not return {:error, reason} tuple on header check failure (authored by Phantasm <phantasm@centrum.cz>).Sun, May 10, 1:35 PM