Skip to content
Merged
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
2 changes: 1 addition & 1 deletion charts/shield/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ maintainers:
- name: mavimo
email: marcovito.moscaritolo@sysdig.com
type: application
version: 1.8.2
version: 1.8.3
appVersion: "1.0.0"
8 changes: 8 additions & 0 deletions charts/shield/templates/host/_windows_configmap_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,14 @@
{{- end -}}
{{- $_ := set $config "cluster_config" $clusterConfig -}}

{{- $sslConfig := dict "verify" .Values.ssl.verify -}}
{{- if (include "common.custom_ca.enabled" .) }}
{{- $path := (include "common.custom_ca.path" (merge (dict) . (dict "CACertsPath" "certificates/"))) }}
{{- $_ := set $sslConfig "ca" (dict "cert_path" $path) }}
{{- end -}}

{{- $_ := set $config "ssl" $sslConfig -}}

{{- $config := merge $config (dict "proxy" (include "host.proxy_config" . | fromYaml)) }}

{{- if and (include "common.semver.is_valid" .Values.host_windows.image.tag) (semverCompare ">= 0.8.0" .Values.host_windows.image.tag) }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -437,3 +437,22 @@ tests:
additional_settings:
connection_timeout: 1000
k8s_cluster_name: test-cluster

- it: Test ssl custom ca settings
set:
ssl:
verify: true
ca:
certs:
- "-----BEGIN CERTIFICATE-----\nMIID...==\n-----END CERTIFICATE-----"
key_name: "rootCA.crt"
asserts:
- notExists:
path: data['dragent.yaml']
- matchRegex:
path: data['host-shield.yaml']
pattern: |
ssl:
ca:
cert_path: certificates/rootCA.crt
verify: true
Loading