[RFC] Strengthen Signature Verification By Adding a Strict Mode #8
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
zadammac/Tapestry#8
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Is your feature request related to a problem? Please describe.
Current state of affairs is that the signature verification process is naive - if the key in question is included in the keyring and trusted, it will be used. This would allow issues where a key is compromised or improperly trusted and unintended keys can be used to sign Tapestry blocks.
Describe the solution you'd like
Currently envisioning adding a "strict signing" mode, passed in config. I'm looking at doing this in one of two ways:
Describe alternatives you've considered
Additional context
N/A
Per the Contributing Guidelines, I'll leave this open for comment until 2018-11-23.
There is a third possibility - allowing the user to set minimum trust levels. Maybe only "fully trusted" keys could be valid signing keys.
It turns out, the "trusted insider" problem is hard.
At some point (far future) if I ever get around to scaling this, I'll have to figure out a way to admin lockout the .cfg file beyond "use the local filesystem/os permissions to do it".
A suggestion came in from outside that it might be easier to just add a config section which includes a list of acceptable signing key fingerprints. This ultimately wouldn't be any more complex for the user than maintaining a trusted key keyring.
Additionally language should be added during verification to explain the importance of matching both the UID and the fingerprint.
Latest position:
Since any possible solution I've thought of yet would be just as mutable as the "use strict" setting instead, I believe this issue would be better closed by imporving the behaviour of block verification itself.
We already have every block being verified, so we just need to strengthen the function to require approval for each fingerprint observed.
Decision
Resolution will be in the following vein:
While not released, the solution described above has been implemented for the 2.0 release code which will be moving along to testing shortly, so I am closing this issue.