mirror of
https://gitlab.opencode.de/bmi/opendesk/deployment/opendesk.git
synced 2025-12-07 16:01:37 +01:00
40 lines
1.3 KiB
YAML
40 lines
1.3 KiB
YAML
# Source: https://github.com/kyverno/policies/tree/main/pod-security
|
|
# License: Apache-2.0
|
|
apiVersion: kyverno.io/v1
|
|
kind: ClusterPolicy
|
|
metadata:
|
|
name: verify-image
|
|
labels:
|
|
opendesk.eu/security-id: image-sec-004
|
|
annotations:
|
|
policies.kyverno.io/title: Verify Image
|
|
policies.kyverno.io/category: Software Supply Chain Security, EKS Best Practices
|
|
policies.kyverno.io/severity: medium
|
|
policies.kyverno.io/subject: Pod
|
|
policies.kyverno.io/minversion: 1.7.0
|
|
policies.kyverno.io/description: >-
|
|
Using the Cosign project, OCI images may be signed to ensure supply chain
|
|
security is maintained. Those signatures can be verified before pulling into
|
|
a cluster.
|
|
spec:
|
|
validationFailureAction: Audit
|
|
background: false
|
|
rules:
|
|
- name: verify-image
|
|
match:
|
|
any:
|
|
- resources:
|
|
kinds:
|
|
- Pod
|
|
verifyImages:
|
|
- imageReferences:
|
|
- "registry.opencode.de/*"
|
|
mutateDigest: true
|
|
attestors:
|
|
- entries:
|
|
- keys:
|
|
publicKeys: |
|
|
-----BEGIN PUBLIC KEY-----
|
|
MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEXdVDz6n39PDj9ZezqYgmZ/qCDV4h
|
|
bQwmuDfxix8BMRTZB9UHcOX4EgmAHWyXsbANB6tG8XWoqFpYRReNUvsG6g==
|
|
-----END PUBLIC KEY----- |