File tree 3 files changed +11
-9
lines changed
3 files changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -2,11 +2,11 @@ name: cosign-test
2
2
policies :
3
3
- cosign-policy.yaml
4
4
resources :
5
- - rekor .yaml
5
+ - cosign-pod .yaml
6
6
results :
7
7
- policy : check-image
8
8
rule : check-image
9
9
namespace : default
10
- kind : Deployment
11
- resource : rekor-server
10
+ kind : Pod
11
+ resource : cosign
12
12
result : pass
Original file line number Diff line number Diff line change 3
3
# Apply policy for cosign
4
4
kubectl apply -f cosign-policy.yaml
5
5
6
- # Test policy
7
- helm repo add sigstore https://sigstore.github.io/helm-charts
8
- helm template rekor sigstore/rekor >rekor.yaml
9
- kyverno test --file-name cosign-test.yaml .
6
+ # Deploy pod
7
+ kubectl apply -f cosign-pod.yaml
8
+ kubectl get policyreport
9
+ kubectl get policyreport cpol-check-image -o yaml
10
10
11
- # Succeed to deploy rekor
12
- helm upgrade --install rekor sigstore/rekor
11
+ # Test policy
12
+ kyverno test --file-name cosign-test.yaml .
Original file line number Diff line number Diff line change @@ -40,3 +40,5 @@ Keyless image signatures using sigstore [](https://kyverno.io/docs/writing-polic
40
40
## Demo
41
41
42
42
kyverno for the Pod Security Standards [ ] ( https://kyverno.io/docs/writing-policies/validate/#pod-security )
43
+
44
+ kyverno for testing keyless image signatures
You can’t perform that action at this time.
0 commit comments