Skip to content

Commit

Permalink
feat: add more notation attributes to values.yaml
Browse files Browse the repository at this point in the history
Signed-off-by: Shahram Kalantari <[email protected]>
  • Loading branch information
shahramk64 committed Dec 12, 2024
1 parent 252afd8 commit ee777da
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 8 deletions.
26 changes: 18 additions & 8 deletions charts/ratify/templates/verifier.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,22 +22,32 @@ spec:
{{- fail "Please specify notation certs with .Values.notationCerts, single certificate .Values.notationCert has been deprecated, will soon be removed." }}
{{- end }}
- {{$fullname}}-notation-inline-cert
{{- end }}
{{- end }}
{{- range $i, $cert := .Values.notationCerts }}
- {{$fullname}}-notation-inline-cert-{{$i}}
{{- end }}
{{- end }}
trustPolicyDoc:
version: "1.0"
trustPolicies:
- name: default
{{- range .Values.notation.trustPolicies }}
- name: {{ .name }}
registryScopes:
- "*"
{{- range .registryScopes }}
- "{{ . }}"
{{- end }}
signatureVerification:
level: strict
level: "{{ .signatureVerification.level }}"
trustStores:
- ca:certs
trustedIdentities:
- "*"
{{- range .trustStores }}
- {{- range $key, $value := . }}
{{ $key }}: {{ $value }}
{{- end }}
{{- end }}
trustIdentities:
{{- range .trustIdentities }}
- "{{ . }}"
{{- end }}
{{- end }}
{{- end }}
---
{{- if .Values.cosign.enabled }}
Expand Down
22 changes: 22 additions & 0 deletions charts/ratify/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,28 @@ cosignKeys: []

notation:
enabled: true
trustPolicies:
- name: acme-rockets-images
registryScopes:
- "registry.acme-rockets.io/software/net-monitor"
- "registry.acme-rockets.io/software/net-logger"
signatureVerification:
level: "strict"
trustStores:
- ca: cert1
tsa: cert2
trustIdentities:
- "C=US, ST=WA, L=Seattle, O=acme-rockets.io, OU=Finance, CN=SecureBuilder"
- "C=US, ST=WA, L=Seattle, O=acme-rockets.io, OU=Design, CN=SecureBuilder"
- name: default
registryScopes:
- "*"
signatureVerification:
level: "strict"
trustStores:
- ca:certs
trustedIdentities:
- "*"

cosign:
enabled: true
Expand Down

0 comments on commit ee777da

Please sign in to comment.