feat: enable `require-image-signature` policy as `audit`
Package Merge Request
Package Changes
This MR will enable the require-image-signature
kyverno policy by default for all bigbang deployments. The default behavior is audit
. Users can optionally override this to enforce
if they desire. The policy is configured to only inspect ironbank images.
Package MR
n/a
For Issue
Closes (#1777 (closed))
Closes #1777 (closed)
Merge request reports
Activity
added kindenhancement priority6 statusdoing labels
assigned to @noahbirrer
Investigating why
clean install
fails onkyverno-policies
with the following error:Events: Type Reason Age From Message ---- ------ ---- ---- ------- Normal info 96s helm-controller HelmChart 'bigbang/bigbang-kyverno-policies' is not ready Normal info 63s (x2 over 93s) helm-controller dependencies do not meet ready condition (dependency 'bigbang/kyverno' is not ready), retrying in 30s Normal info 12s (x5 over 33s) helm-controller Helm install has started Warning error 10s (x5 over 31s) helm-controller Helm install failed: 1 error occurred: * admission webhook "validate-policy.kyverno.svc" denied the request: spec.rules[0].verifyImages[0].mutateDigest: Invalid value: true: mutateDigest must be set to false for ‘Audit’ failure action Last Helm logs: creating 32 resource(s) Normal info 9s (x5 over 31s) helm-controller Helm uninstall succeeded Warning error 9s (x5 over 31s) helm-controller reconciliation failed: Helm install failed: 1 error occurred: * admission webhook "validate-policy.kyverno.svc" denied the request: spec.rules[0].verifyImages[0].mutateDigest: Invalid value: true: mutateDigest must be set to false for ‘Audit’ failure action
Fixed in !3286 (f3028187)
Edited by Noah Birreradded 47 commits
-
a2862206...2ecec767 - 46 commits from branch
master
- 3969b0bf - Merge branch 'master' into '1777-kyverno-policy-verify-ib-image'
-
a2862206...2ecec767 - 46 commits from branch
added 3 commits
-
f3028187...7b7a9005 - 2 commits from branch
master
- 0302ee6d - Merge branch 'master' into 1777-kyverno-policy-verify-ib-image
-
f3028187...7b7a9005 - 2 commits from branch
removed statusdoing label
added statusreview label
requested review from @chris.oconnell and @ryan.j.garcia
- Resolved by Jared Ladner
@ryan.j.garcia @chris.oconnell should we enable image verification in the
test/tests-values.yaml
?We would add this to the test values:
require-image-signature: enabled: true validationFailureAction: enforce
This would enable the kyverno policy to ensure all images deployed from IB were verified with cosign signatures.
added 1 commit
- 3377fd34 - enforcing kyverno require-image-signature on test values
mentioned in issue #1777 (closed)
requested review from @ryan.thompson.44 and @michaelmartin
@rgsjustins @andrewshoell : You have been tagged in this merge request for the purpose of conducting secondary review.
added 1 commit
- d8655a19 - Update values.yaml `Audit` -> `audit` for consistency
changed milestone to %2.14.0
added all-packages label
added debug label
mentioned in commit edadecb2
mentioned in merge request big-bang/customers/template!65 (closed)