Skip to content

Commit

Permalink
fix: remove the prefix
Browse files Browse the repository at this point in the history
Signed-off-by: Shahram Kalantari <[email protected]>
  • Loading branch information
shahramk64 committed Jan 23, 2025
1 parent d69580b commit 521bb0d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions charts/ratify/templates/verifier.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,7 @@ spec:
trustedIdentities:
{{- $trustedIdentities := $policy.trustedIdentities | default (list "*") }}
{{- range $j, $identity := $trustedIdentities }}
{{- if eq $identity "*" }}
- "*"
{{- else }}
- "x509.subject: {{ . }}"
{{- end }}
- "{{$identity}}"
{{- end }}
{{- end }}
{{- end }}
Expand Down
2 changes: 1 addition & 1 deletion test/bats/base-test.bats
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ RATIFY_NAMESPACE=gatekeeper-system
--set-file notationCerts[1]="notation-file2.crt" \
--set-file notationCerts[2]="notation-file3.crt" \
--set notation.trustPolicies[0].registryScopes[0]="registry1.azurecr.io/" \
--set notation.trustPolicies[0].trustedIdentities[0]="cert identity 1" \
--set notation.trustPolicies[0].trustedIdentities[0]="x509.subject: cert identity 1" \
--set notation.trustPolicies[0].trustStores[0]=ca:notationCerts[0] \
--set notation.trustPolicies[0].trustStores[1]=tsa:notationCerts[1] \
--set notation.trustPolicies[0].trustStores[2]=signingAuthority:notationCerts[2] \
Expand Down

0 comments on commit 521bb0d

Please sign in to comment.