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

Feature request: Abbility to verify checksum with the ADD command #975

Closed
TravisEz13 opened this issue May 3, 2019 · 8 comments · Fixed by #3093
Closed

Feature request: Abbility to verify checksum with the ADD command #975

TravisEz13 opened this issue May 3, 2019 · 8 comments · Fixed by #3093

Comments

@TravisEz13
Copy link

See the twitter conversation https://twitter.com/thaJeztah/status/1124310628888244224

I imagine the syntax like

ADD --checksum=sha256:.... https://..<remote file> 

cc @thaJeztah

@thaJeztah
Copy link
Member

ping @tonistiigi this was the proposal I was talking about; wdyt?

@tonistiigi
Copy link
Member

@thaJeztah I think I'm ok with it. It is only for URLs, right? No changes should be required in the engine as LLB already supports checksum https://godoc.org/github.com/moby/buildkit/client/llb#Checksum . It also helps with caching because now the URL is immutable and there is no need to check it the content has been changed.

@TravisEz13
Copy link
Author

Yes, only for URLs. Right now we are downloading and verifying the checksum is a separate step.

@AkihiroSuda
Copy link
Member

PR

@thaJeztah
Copy link
Member

Yes, only for URLs. Right now we are downloading and verifying the checksum is a separate step.

I left a comment on the PR; I think (as a future enhancement?) support for checksums for local sources may also be nice to have; #3093 (comment)

Happy to see work in progress on this feature; really useful 👍

@fenollp
Copy link
Contributor

fenollp commented May 7, 2024

@thaJeztah Was your point on checksuming "local files" (for remote builder contexts) answered somewhere? Is it already implemented?

@thaJeztah
Copy link
Member

I don't think it was implemented for local files, but perhaps some of that required some motivation (assuming both the Dockerfile and the file copied are part of your local files, what's the added value of the checksum).

Opening a separate ticket with more details is probably fine for discussing some of that

@thaJeztah
Copy link
Member

for remote builder contexts

Oh! Overlooked this part (and it was a while since I commented 🙈

Same still applies though; a separate ticket is probably good!

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

Successfully merging a pull request may close this issue.

5 participants