Commit ff82142
committed
Fix step_images.step_images_accessible check
Although the implementation of ec.oci.image_manifest does return nil if
the Image Manifest is not found, rego converts that to no value at all.
Thus, asserting that the returned value is nil will never be true
causing this policy rule to always pass.
This commit changes the rule evaluation to check for the lack of a value
instead.
Signed-off-by: Luiz Carvalho <[email protected]>1 parent 158a985 commit ff82142
File tree
3 files changed
+4
-2
lines changed- antora/docs/modules/ROOT/pages
- policy/task/step_images
3 files changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
30 | | - | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
0 commit comments