Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions deployments/ratify-gatekeeper-provider/templates/executor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,19 @@ spec:
username: "{{ .credential.username }}"
password: "{{ .credential.password }}"
{{- end }}
{{- if .plainHttp }}
Comment thread
fseldow marked this conversation as resolved.
{{- if or .caBase64 .caPem }}
{{- fail (printf "store with scopes %v: plainHttp cannot be combined with caBase64/caPem (no TLS over plain HTTP)" .scopes) }}
{{- end }}
plainHttp: true
{{- else }}
{{- if .caPem }}
caPem: {{ .caPem | quote }}
{{- end }}
{{- if .caBase64 }}
caBase64: {{ .caBase64 | quote }}
{{- end }}
{{- end }}
Comment thread
fseldow marked this conversation as resolved.
{{- if eq (include "ratify.cosignConfigured" $root) "true" }}
allowCosignTag: true
{{- end }}
Expand Down
1 change: 1 addition & 0 deletions deployments/ratify-gatekeeper-provider/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ cosign:

stores:
- scopes: []
plainHttp: false # set to true for registries that do not use TLS (e.g. local development)
caBase64: "" # base64 encoded CA certificate, used for TLS verification, e.g. "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCg=="
caPem: "" # PEM encoded CA certificate, used for TLS verification, e.g. "-----BEGIN CERTIFICATE-----\n...\n-----END CERTIFICATE-----"
# if both caBase64 and caPem are provided, caPem will be used
Expand Down
Loading