-
Notifications
You must be signed in to change notification settings - Fork 316
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
[feature] auto sha256sum check #2535
Comments
I see now, that Habitat show the "expected" value, which is nice too. |
I could see this being useful for fast moving third party software releases but I'm struggling to see where a tool like this would land in the existing command set. Perhaps an external tool that gets packaged up for use by core maintainers? |
Habitat can do it automatically, so always once the build of a plan.sh detect an incorrect pkg_shasum= line |
hrmmm.... thats a bit scary, IMO. It could promote a bad security practice where its no better than not checking the shasum in the first place. |
The checksum is how the plan author asserts that the thing the Habitat package is built from is what it's actually supposed to be built from. Because Habitat checks the checksum of whatever it downloaded against that checksum, you can be confident of what's in the package. Note that it's the checksum of the software that Habitat is packaging, and not the checksum of the artifact that Habitat itself generates by wrapping that software. If that is what you're after, Habitat does compute that for you, and you can find it by running |
i actually mean the checksum of the software that Habitat is packaging so the solution which @fnichol suggest, seems legit to me now 👍 |
@ShalokShalom, I am paranoid and so should everyone especially with the Internets. If I had a compromised link between my computer and the source and I develop my Let's say I continue moving forward with my compromised Yes, I should have verified the sha that's auto-computed is correct according to the source's website - but since it's auto-generated, my plan works and I think I'm not compromised - I might as well not care to check that assertion. I like the balance in where @fnichol suggests another tool to help with this versus being embedded inside the |
So you mean calculating the checksum on my local computer with sha265sum makes any difference to the calculation done by habitat? I am for it, with the optional feature to auto it? |
To be honest, currently i simply try to build without and use then the calculated, expected shasum |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. We value your input and contribution. Please leave a comment if this issue still affects you. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. We value your input and contribution. Please leave a comment if this issue still affects you. |
1 similar comment
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. We value your input and contribution. Please leave a comment if this issue still affects you. |
Hi there :)
Pacman provides me a simple tool named
makepkg -g
which download the source if not done yet and creates the checksum from it.The output is ready for copy and paste, so it would be in Habitats case something like:
pkg_shasum=36658cb768a54c1d4dec43c3116c27ed893e88b02ecfcb44f2166f9c0b7f2a0d
Current steps to create the checksum:
One command to do that all in once is the goal of that issue here. 👍
The text was updated successfully, but these errors were encountered: