-
Notifications
You must be signed in to change notification settings - Fork 5
Description
Hello Anton,
First of all – what an awesome project! Thank you for providing such needed tool to the SQLite community!
So, I just made my very first steps over sqlpkg and among the first things I noticed was 1) there's no central pkg registry/storage, and 2) there's no checksum info about pkg downloads. The first one I can comprehend, it'd be very hard to build and maintain such tool, but the second one is quite dangerous: any pkg author could swap a release and inject malicious code in an SQLite extension.
Even if all of your authors are trustworthy people who'd never do such an attack, not having a checksum step could potentially give an attacker, who manages to get author's credentials somehow, to inject malicious code without being noticed for quite some time. I think it could be of a great improvement if sqlpkg could, somehow, make sure the download file (ex.: a zip release file from github.com) is the exact one I'm interested by some cryptographic ways (checksums).
Some popular package managers like npm and Yarn does it, so they could serve as inspiration for the implementation.