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 77419d5 commit c4f857c
Show file tree
Hide file tree
Showing 2 changed files with 41 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
23 changes: 23 additions & 0 deletions charts/ratify/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,29 @@ 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: public-images
registryScopes:
- "registry.wabbit-networks.io/software/net-utils"
signatureVerification:
level: "strict"
trustStores:
- ca: cert3
tsa: cert2
trustIdentities:
- "C=US, ST=WA, L=Seattle, O=wabbit-networks.io, OU=Security Tools"

cosign:
enabled: true
Expand Down

0 comments on commit c4f857c

Please sign in to comment.