On Mon, 15 Aug 2005 09:06 am, Phillip J. Eby wrote: > After thinking over the last week's distutils-sig discussion about > security, signatures, etc., I think I have a plan for handling basic file > integrity checking and (non-cryptographic) trust management for > EasyInstall.
I'm not on the distutils-sig any more (not sure why - I thought I was and there just wasn't any discussion going on ;) so I've missed that discussion. > The first part of the plan is to add md5 digest checking to > EasyInstall. Because one of EasyInstall's design goals is to make it easy > for anybody to publish links to packages, we need to be able to include the > md5 signature in a package's URL. I'm thinking we could achieve this via > an '#md5=...' fragment identifier. For example, a setuptools source > archive URL might be: > > http://www.python.org/packages/source/s/setuptools/setuptools-0.5a13.zip#md >5=91f31a9058330174640a867cf5d4de57 Any idea what various "normal" browsers do when they encounter something like this? > The advantage of this approach is that it allows anyone to assert what the > md5 of the targeted file is, and it can be asserted in any web page, just > by pointing an HREF at the file. EasyInstall could detect the '#md5=' > marker, and then use this to verify the file during download. > > The disadvantage, of course, is that PyPI doesn't currently support this; As with all things that "PyPI doesn't currently support" I'm happy to add features, and even happier for others to add features :) > So, this is not a complete security solution, as it doesn't deal with > end-to-end file integrity, and could easily be subverted by taking over a > site somewhere in the middle (e.g. python.org). But until we have more of > the cryptographic infrastructure in place, I think this plan could provide > us with a good starting point. Comments, anyone? I presume the distutils discussion included the signing of packages that PyPI supports? Richard
pgp5nFH4d68UH.pgp
Description: PGP signature
_______________________________________________ Catalog-sig mailing list [email protected] http://mail.python.org/mailman/listinfo/catalog-sig
