-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
This is something I've been tossing back and forth that I think I'd like to implement before trying to import asignify into FreeBSD base.
The basic idea is pretty simple: given an existing pubkey and sigfile, output the contents if verification passes. Use case, for example:
# $pubkey already exists
fetch https://kevans.dev/script.sh.sig
fetch -o - https://kevans.dev/script.sh | asignify check -x $pubkey script.sh.sig - > script.sh
[ ! -s "script.sh" ] && exit 1
Though, I picture a more realistic use-case to be:
# $pubkey already exists
fetch https://kevans.dev/script.sh.sig
fetch -o - https://kevans.dev/script.sh | asignify check -x $pubkey script.sh.sig - | sh
This would be a slightly better version of existing curl|sh constructs, since we'll execute the script only if verification succeeds against our known-good key.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels