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 4e5250c
Show file tree
Hide file tree
Showing 2 changed files with 28 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
10 changes: 10 additions & 0 deletions charts/ratify/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,16 @@ cosignKeys: []

notation:
enabled: true
trustPolicies:
- name: default
registryScopes:
- "*"
signatureVerification:
level: "strict"
trustStores:
- ca: certs
trustedIdentities:
- "*"

cosign:
enabled: true
Expand Down

0 comments on commit 4e5250c

Please sign in to comment.