Open cfm opened 2 months ago
securedrop-admin update returns the same error message Signature verification failed. for multiple distinct error conditions. It's therefore necessary to step through the logic of the update() function to identify the cause of the error.
securedrop-admin update
Signature verification failed.
update()
https://github.com/freedomofpress/securedrop/blob/f5ca29b6a279cc7d681ab6d7f08c98cedce2c8bd/admin/securedrop_admin/__init__.py#L1078-L1095
Discovered in the course of #7168.
Error messages either (a) are self-explanatory or (b) can be traced to a unique point in the code.
Neither.
It would be interesting to run a search for duplicated logging and exception strings across the codebase and see if this is a problem elsewhere.
interested, will look into this
If no one is working on this, can I take this up?
Hey @rudradeep22, you're welcome to. If you have any questions or need help feel free to join our Matrix room.
Description
securedrop-admin update
returns the same error messageSignature verification failed.
for multiple distinct error conditions. It's therefore necessary to step through the logic of theupdate()
function to identify the cause of the error.https://github.com/freedomofpress/securedrop/blob/f5ca29b6a279cc7d681ab6d7f08c98cedce2c8bd/admin/securedrop_admin/__init__.py#L1078-L1095
Steps to Reproduce
Discovered in the course of #7168.
Expected Behavior
Error messages either (a) are self-explanatory or (b) can be traced to a unique point in the code.
Actual Behavior
Neither.
Comments
It would be interesting to run a search for duplicated logging and exception strings across the codebase and see if this is a problem elsewhere.