Closed (fixed)
Project:
Automatic Updates
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Nov 2019 at 22:41 UTC
Updated:
28 Nov 2019 at 19:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
drummDrupal.org’s in-place-updates being served no longer have the
checksumlist.csigfile. The same path as the.zipfiles, likehttps://www.drupal.org/in-place-updates/drupal/drupal-8.7.4-to-8.7.5.zip, with.csigappended, now serves the signed hash of the zip file. For example,https://www.drupal.org/in-place-updates/drupal/drupal-8.7.4-to-8.7.5.zip.csig.Comment #3
drummTo reduce HTTP requests, maybe using the zip archive comment to store the signing is possible. Attached is an example.
If PHP code can safely extract that note, strip the note from the file, and get the same
eb14f40fb…shasum before extraction, this will work.Comment #4
drummAnd a sample with a base64-encoded archive comment.
Comment #5
heddnWe ran into issues adding the CSIG as a comment to the zip file. PHP vs posix ZIP doesn't save the file in the same format. And we have to strip the CSIG from the zip comment before hashing it. Otherwise it doesn't pass validation. But stripping it via PHP seems to rewrite the entire zip file in a slightly different format. Since the files are binary, it is hard to say exactly what is different. So we're back to downloading 2 distinct artifacts. One for the zip file and for the csig validation of the zip archive.
Comment #6
heddnComment #10
heddnAdding credit from slack discussions.
Comment #12
heddnLanded this on 8.x and rolled an alpha4. Next up a 7.x backport and new alpha there too.
Comment #13
heddnComment #14
heddnComment #15
heddnComment #17
heddnComment #19
heddn7.x alpha3 is now also tagged.