In the FAQ you recommend disabling the security measures in place in Debian and Ubuntu that keep ImageMagick from generating PDFs.
As someone who has work with the Debian LTS security team, I can tell you those measures should not be removed. ImageMagick is an infested nest of security issues, and those measures are there because we could not find a reasonable way to fix all of those issues while keeping the software inside Debian.
I would recommend removing the convert dependency. I haven't looked in details, but it looks like it's only used on restore, to convert the PDF into a raster format zbar can parse. That can be done with something else! Alternatives include poppler (used by dangerzone) or GaphicsMagick, although the latter has similar problems than
poppler also has a pypi wrapper although that's not package in Debian...
i also noticed mchehab/zbar#227 which tries to improve zbar to be able to parse PDFs itself properly, but that also seems similarly error-prone... poppler could probably be used by zbar instead!
anyways, at least make that warning look a little less scary:
anarcat@angela:qr-backup$ ./qr-backup /etc/motd -o motd.qr.pdf
CRITICAL: Skipping digital restore verification, because 'convert' is not available. Debian/Ubuntu forbid PDF conversion using imagemagick. More information at: https://github.com/za3k/qr-backup/tree/master/docs
anarcat@angela:qr-backup$
... at first glance I thought the thing didn't work at all!
thanks for this really interesting software!
In the FAQ you recommend disabling the security measures in place in Debian and Ubuntu that keep ImageMagick from generating PDFs.
As someone who has work with the Debian LTS security team, I can tell you those measures should not be removed. ImageMagick is an infested nest of security issues, and those measures are there because we could not find a reasonable way to fix all of those issues while keeping the software inside Debian.
I would recommend removing the
convertdependency. I haven't looked in details, but it looks like it's only used on restore, to convert the PDF into a raster format zbar can parse. That can be done with something else! Alternatives include poppler (used by dangerzone) or GaphicsMagick, although the latter has similar problems thanpoppler also has a pypi wrapper although that's not package in Debian...
i also noticed mchehab/zbar#227 which tries to improve zbar to be able to parse PDFs itself properly, but that also seems similarly error-prone... poppler could probably be used by zbar instead!
anyways, at least make that warning look a little less scary:
... at first glance I thought the thing didn't work at all!
thanks for this really interesting software!