Skip to content

policy: add image.provenance input type#3652

Merged
tonistiigi merged 1 commit intodocker:masterfrom
tonistiigi:policy-provenance-0
Feb 13, 2026
Merged

policy: add image.provenance input type#3652
tonistiigi merged 1 commit intodocker:masterfrom
tonistiigi:policy-provenance-0

Conversation

@tonistiigi
Copy link
Member

part one of #3639

}

type ImageProvenance struct {
PredicateType string `json:"predicateType,omitempty"`
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is intentionally missing materials atm.

I wanted to make every material type Input so that policy conditions can run in any level of source material in c2164fb .

But I missed that it is not allowed to return different source from a policy callback. So the current patch only works in policy eval and needs a complete redesign.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah yes policy callback can't return a different source. Looks good for follow-up.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
@tonistiigi tonistiigi merged commit 044e152 into docker:master Feb 13, 2026
224 of 226 checks passed
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