Lurker News
Back to discussion

Comment by gtsteve

gtsteve3 replies#
It uses SHA-256 right? My understanding is that there isn't yet a workable collision attack on the SHA-2 family.

Regardless, I think it's certainly an excellent hardening step.

blattimwind2 replies#
Infosec in 2019: The server I download code from telling me the hash of said code is "certainly an excellent hardening step".
ithkuil1 reply#
Can't the hash be verified by the client too?
subway1 reply#
Sure, but who tells the client what the correct hash is?

Continue this thread — 1 reply

gtsteve#
Well I was approaching it from the point of view that you verify the image is correct and then you guarantee you'll always use that image and not some other version given that tags are mutable.
darkarmani#
Why do you need a collision? If you control the build, you control the sha-256 hash. But you can't sign it with a key that you don't have.
kbirkeland1 reply#
A hash only provides integrity. A signature provides integirty and authentication.
jjeaff1 reply#
Integrity is all you need as long as you have verified the original image that you have saved the hash for.
kbirkeland2 replies#
Is your argument that you only need integrity if you verified the authenticity out of band?

Continue this thread — 2 replies