Skip to content

Remove inline-only attestations option#3420

Closed
jedevc wants to merge 7 commits intomoby:masterfrom
jedevc:remove-inline-only
Closed

Remove inline-only attestations option#3420
jedevc wants to merge 7 commits intomoby:masterfrom
jedevc:remove-inline-only

Conversation

@jedevc
Copy link
Copy Markdown
Member

@jedevc jedevc commented Dec 16, 2022

⚠️ Requires #3403 - marked as do-not-merge until #3403 is merged.

Split out from #3403 as an additional commit, so that we can more easily pull in the improvements in that branch since the main objection seemed to be the removal of inline-only.

This isn't anywhere at the moment, but we should be consistent here to
help avoid any future logic issues.

Signed-off-by: Justin Chadwell <me@jedevc.com>
Signed-off-by: Justin Chadwell <me@jedevc.com>
This allows one implementation for all the opts parsing, similar to how
we do today for the ImageCommitOpts. Additionally, we rename
attestation-prefix to attestations-prefix (pluralized) to prepare for
the new attestations option.

Signed-off-by: Justin Chadwell <me@jedevc.com>
This option looks like a mistake added in 45fc3ed.
These options aren't ever used, so we don't need to parse them, we can
just silently discard them.

Signed-off-by: Justin Chadwell <me@jedevc.com>
Signed-off-by: Justin Chadwell <me@jedevc.com>
Instead of just the boolean true/false values, we allow the attestation
option for exporters to contain an arbitrary list of "attestation
reasons". Only attestations that have a reason matching the list will
actually be output.

This allows clients to completely detach the concepts of "what
attestations to generate" and "what attestations to output".

Signed-off-by: Justin Chadwell <me@jedevc.com>
Clients should instead use the attestations exporter key to control
which exporters should receive which attestations. This allows for
a more fine-grained, client-controlled approach, allowing it to use it's
knowledge of where images end up to determine exactly which attestations
should be allowed.

Additionally, this approach is more flexible, and should hopefully
extend easily to supporting multiple exporters eventually.

Signed-off-by: Justin Chadwell <me@jedevc.com>
@jedevc jedevc requested a review from tonistiigi December 16, 2022 11:06
@jedevc jedevc changed the title Remove inline-only exporter option Remove inline-only attestations option Dec 16, 2022
@jedevc jedevc closed this Jan 6, 2023
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.

1 participant