-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
docs: explain attestation-inline=false #4435
Conversation
This option is expected to be used as a workaround for compatibility issue with third party registry implementations that do not properly implement the OCI Distribution Spec. It is reported that GitLab Container Registry needs this. (See moby/moby isue 28394 issuecomment-1823177654) Signed-off-by: Akihiro Suda <[email protected]>
Thanks again! I would probably reword the text to be more specific, so it would explain that this option disables wrapping image manifest with index manifest (unless there are other reasons for manifest to exist, like multi-arch image, I suppose?) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not just not set the attestation if you don't want it added?
The attestation seems added by default now |
@AkihiroSuda Not in buildkit. And you can still disable the the attestation directly, eg. |
Hm, @tonistiigi and @crazy-max... do you have any memory for why we added It was added in #3466, and it looks like I had the idea to kill it in #3420. I can't quite work out where it's used. We seem to need it as an internal-only concept, so that it's opt-in for local/tar exporters, but opt out for the image exporter, which is exposed as the But I'm not sure why The logic in #3466 also seems faulty to me - I'm not quite sure why we chose different logic for the I think we could change this behavior in the upcoming release, unless there's a good reason not to. small rant (hindsight is 20/20). Kinda can't change that now (backwards compat 🎉), but I think we might have the opportunity to revisit how this works now that #4134 is ready - there's the use case that a user might want different attestations for each exporter, and I think a solution to that might also cover #3458 (which I'm interested in for adding better attestations support to Dagger). I might take a look at this in the next couple weeks 😄 |
So, do you suggest that #3466 is reverted (not technically, but logically) so that |
I think it was to not break |
This option is expected to be used as a workaround for compatibility issue with third party registry implementations that do not properly implement the OCI Distribution Spec.
It is reported that GitLab Container Registry needs this.
moby/moby#28394 (comment)
( Thanks to @slonopotamus )