Skip to content
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

Verifying downloaded Circle CI artifacts #113

Closed
newbieAtGithub opened this issue Dec 5, 2022 · 2 comments
Closed

Verifying downloaded Circle CI artifacts #113

newbieAtGithub opened this issue Dec 5, 2022 · 2 comments

Comments

@newbieAtGithub
Copy link

hi @tlaurion ,

Below are some steps to verify downloaded ROM from Circle CI:

  1. download artifact from the last commit from Circle CI
  2. extract content from built ROM & Coreboot payload,
  3. verify all extracted files from step 2 with hashes.txt from downloaded Heads' artifact

For step 2 & 3 can refer to #107

Please kindly add on or modify the steps above, for a better verification.

Thanks and Regards,

@tlaurion
Copy link
Collaborator

tlaurion commented Dec 6, 2022

#107 is notes made to eventually create an additional entry in the wiki, rendered on https://osresearch.net

I understand from the above that your goal would be to distrust CircleCI?

#107 is to make sure that what was flashed corresponds still to what was downloaded.

Until reproducibility issues are resolved, CircleCI hashes.txt could be used to verify Heads internally. Or as detailed there, to take a backup and extract to verify against CircleCI/built ROM and its generated hashes.txt at build time.

If you want to clarify things under #107, please quote parts there to I can modify directly. Those are notes and will not be found easily by anybody.

download artifact from the last commit from Circle CI
extract content from built ROM & Coreboot payload,

What you build and what you download from CircleCI won't have the same final hashes for ROMs as of today. This is documented in reproducibility issues over Heads (not heads-wiki).

Hope this is clearer.

To verify CircleCI downloaded artifacts, one can simply verify hashes of the ROMs downloaded against the ones under hashes.text

If the goal is to distrust CircleCi, as of today the only alternative is to build yourself, reproducing what CircleCI does and is explained under Building instructions, until reproducibility issues are resolved. Most of the compiled binaries match across local builds and CircleCI, but busybox if my memory is good. Since busybox is packed under tools.cpio and tools.cpio is packed under initrd.cpio.xz: busyboz, tools.cpio, initrd.cpio.xz and ROM images will have different hashes.

Please tag me if closing this issue seems an error to you.

From the title of this issue, the documentation already explains how to do this through Downloading section of the wiki

@newbieAtGithub
Copy link
Author

hi @tlaurion

thanks for explanation,
okay, this ticket is closed.

thanks and regards,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants