Skip to content

exporter: force enabling inline attestations for image export#3466

Merged
tonistiigi merged 2 commits intomoby:masterfrom
jedevc:export-force-inline-attestation-image
Jan 6, 2023
Merged

exporter: force enabling inline attestations for image export#3466
tonistiigi merged 2 commits intomoby:masterfrom
jedevc:export-force-inline-attestation-image

Conversation

@jedevc
Copy link
Copy Markdown
Member

@jedevc jedevc commented Jan 6, 2023

As discussed with @tonistiigi, we don't need the complexity of #3403, we just need to rework the behavior of inline attestations slightly.

  • For the local and tar exporters, never export inline attestations
  • For the oci and docker exporters, only export inline attestations if we are already exporting an image index (e.g. in the case of a multi-platform image, or if we have other attestations to export as well)
  • For the image exporter, always export inline attestations, forcing generation of an index even if we otherwise wouldn't.

No corresponding buildx changes are necessary.

jedevc added 2 commits January 6, 2023 16:59
Signed-off-by: Justin Chadwell <me@jedevc.com>
Signed-off-by: Justin Chadwell <me@jedevc.com>
@jedevc jedevc force-pushed the export-force-inline-attestation-image branch from 14dd214 to 3eaf157 Compare January 6, 2023 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants