Skip to content

v0.11: backport llbsolver: fix policy rule ordering#4215

Merged
jedevc merged 1 commit intomoby:v0.11from
cpuguy83:v0.11_cherry_pick_policy_ordering
Sep 8, 2023
Merged

v0.11: backport llbsolver: fix policy rule ordering#4215
jedevc merged 1 commit intomoby:v0.11from
cpuguy83:v0.11_cherry_pick_policy_ordering

Conversation

@cpuguy83
Copy link
Copy Markdown
Member

@cpuguy83 cpuguy83 commented Sep 7, 2023

Backports #4014 to v0.11 so we can pull this into moby v24.

--

The older of rules in policy matters. Eg. in [DENY *, ALLOW ref] mixing the order would deny all sources so map can't be used to deduplicate the rules.

(cherry picked from commit 22d8446)

The older of rules in policy matters. Eg. in [DENY *, ALLOW ref]
mixing the order would deny all sources so map can't be used
to deduplicate the rules.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
(cherry picked from commit 22d8446)
Signed-off-by: Brian Goff <cpuguy83@gmail.com>
@cpuguy83 cpuguy83 requested a review from tonistiigi September 7, 2023 23:09
@cpuguy83 cpuguy83 changed the title llbsolver: fix policy rule ordering v0.11: backport llbsolver: fix policy rule ordering Sep 7, 2023
@jedevc jedevc merged commit d3e6c13 into moby:v0.11 Sep 8, 2023
cpuguy83 added a commit to cpuguy83/docker that referenced this pull request Sep 8, 2023
This brings in moby/buildkit#4215 which fixes a major issue with source
policies in buildkit.

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
@cpuguy83 cpuguy83 deleted the v0.11_cherry_pick_policy_ordering branch November 3, 2023 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants