Created
March 22, 2022 14:10
-
-
Save developer-guy/3596f939d233d1e41acad6deac99d881 to your computer and use it in GitHub Desktop.
Kyverno verifyImages GCP KMS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: kyverno.io/v1 | |
kind: ClusterPolicy | |
metadata: | |
name: check-image | |
spec: | |
validationFailureAction: enforce | |
background: false | |
webhookTimeoutSeconds: 30 | |
failurePolicy: Fail | |
rules: | |
- name: check-image | |
match: | |
resources: | |
kinds: | |
- Pod | |
verifyImages: | |
- image: "gcr.io/shaped-shuttle-342907/alpine:*" | |
key: "gcpkms://projects/shaped-shuttle-342907/locations/global/keyRings/test/cryptoKeys/cosign/versions/1" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment