Skip to content

Commit

Permalink
Merge pull request #322 from openinfradev/ratify
Browse files Browse the repository at this point in the history
tks-policy: add ratify for supporting valication upon SBOM.
  • Loading branch information
ktkfree authored Jun 18, 2024
2 parents f5eb46b + 6cb8aea commit 966d132
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 1 deletion.
30 changes: 29 additions & 1 deletion policy/base/resources.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,32 @@ spec:
helmVersion: v3
releaseName: policy-resources
targetNamespace: gatekeeper-system
values: {}
values: {}
---
apiVersion: helm.fluxcd.io/v1
kind: HelmRelease
metadata:
labels:
name: ratify
name: ratify
spec:
chart:
type: helmrepo
repository: https://harbor.taco-cat.xyz/chartrepo/tks
name: ratify
version: 1.13.0
origin: https://github.com/ratify-project/ratify/tree/v1.2.0/charts/ratify
helmVersion: v3
releaseName: ratify
targetNamespace: gatekeeper-system
values:
oras:
useHttp: true
provider:
tls:
skipVerify: true
featureFlags:
RATIFY_CERT_ROTATION: true
sbom:
enabled: true
---
33 changes: 33 additions & 0 deletions policy/base/site-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,36 @@ charts:
enableDeleteOperations: true

- name: policy-resources

- name: ratify
override:
sbom:
disallowedLicenses:
- "GPL-2.0-only"
- "MPL"
disallowedPackages:
- name: "busybox"
version: "1.36.1-r28"
notationCerts:
# https://github.com/ratify-project/ratify/blob/dev/test/testdata/notation.crt
- |-
-----BEGIN CERTIFICATE-----
MIIDQzCCAiugAwIBAgIUDxHQ9JxxmnrLWTA5rAtIZCzY8mMwDQYJKoZIhvcNAQEL
BQAwKTEPMA0GA1UECgwGUmF0aWZ5MRYwFAYDVQQDDA1SYXRpZnkgU2FtcGxlMB4X
DTIzMDYyOTA1MjgzMloXDTMzMDYyNjA1MjgzMlowKTEPMA0GA1UECgwGUmF0aWZ5
MRYwFAYDVQQDDA1SYXRpZnkgU2FtcGxlMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8A
MIIB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