-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
check+echo mode #15
Comments
The main challenge here is how to verify and write output simultaneously. Then, upon sucessful validation we would need to rename an output to target or to unlink it in case of verify failure. This would require to add a new method to libasignify together with |
No, that's not the only issue I'm afraid. Asignify signatures imply filename, so it is not easy to adopt it to |
What I'd considered for this mode was that we could just buffer input into a shmfd, verify it, then seek back and write it out.
In my local pkg branch, a filename has to be passed in anyways since libasignify only takes
Ah, that's a fair point and makes buffering into a shmfd seem less desirable. |
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:
Though, I picture a more realistic use-case to be:
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.The text was updated successfully, but these errors were encountered: