Skip to content

Commit

Permalink
Merge pull request #464 from kubescape/skip-ssl-verification
Browse files Browse the repository at this point in the history
provide an option to skip ssl verification in `http-request`
  • Loading branch information
yonatanamz authored Jul 2, 2024
2 parents 22049cb + 35e1a42 commit 68707c4
Show file tree
Hide file tree
Showing 9 changed files with 50 additions and 20 deletions.
3 changes: 3 additions & 0 deletions charts/kubescape-operator/assets/kubescape-cronjob-full.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ apiVersion: batch/v1
- -path=v1/triggerAction
- -headers=Content-Type:application/json
- -path-body=/home/ks/request-body.json
{{- if .Values.kubescapeScheduler.insecureSkipTLSVerify }}
- -skip-ssl-verify=true
{{- end}}
volumeMounts:
- name: "request-body-volume"
mountPath: /home/ks/request-body.json
Expand Down
3 changes: 3 additions & 0 deletions charts/kubescape-operator/assets/kubevuln-cronjob-full.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ apiVersion: batch/v1
- -path=v1/triggerAction
- -headers=Content-Type:application/json
- -path-body=/home/ks/request-body.json
{{- if .Values.kubevulnScheduler.insecureSkipTLSVerify }}
- -skip-ssl-verify=true
{{- end}}
volumeMounts:
- name: "request-body-volume"
mountPath: /home/ks/request-body.json
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ apiVersion: batch/v1
- -path=v1/triggerAction
- -headers=Content-Type:application/json
- -path-body=/home/ks/request-body.json
{{- if .Values.registryScanScheduler.insecureSkipTLSVerify }}
- -skip-ssl-verify=true
{{- end}}
volumeMounts:
- name: "request-body-volume"
mountPath: /home/ks/request-body.json
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ spec:
- -path=v1/triggerAction
- -headers=Content-Type:application/json
- -path-body=/home/ks/request-body.json
{{- if .Values.kubescapeScheduler.insecureSkipTLSVerify }}
- -skip-ssl-verify=true
{{- end}}
volumeMounts:
- name: {{ .Values.kubescapeScheduler.name }}
mountPath: /home/ks/request-body.json
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ spec:
- -path=v1/triggerAction
- -headers=Content-Type:application/json
- -path-body=/home/ks/request-body.json
{{- if .Values.kubevulnScheduler.insecureSkipTLSVerify }}
- -skip-ssl-verify=true
{{- end}}
volumeMounts:
- name: {{ .Values.kubevulnScheduler.name }}
mountPath: /home/ks/request-body.json
Expand Down
3 changes: 3 additions & 0 deletions charts/kubescape-operator/templates/servicediscovery/job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ spec:
- -host={{ .Values.server }}
- -path=api/v2/servicediscovery
- -path-output=/data/services.json
{{- if .Values.serviceDiscovery.urlDiscovery.insecureSkipTLSVerify }}
- -skip-ssl-verify=true
{{- end}}
volumeMounts:
- name: shared-data
mountPath: /data
Expand Down

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion charts/kubescape-operator/tests/snapshot_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -140,4 +140,4 @@ tests:
- registry: test.example.com
username: xxx
password: yyy
insecure: true
insecure: true
20 changes: 16 additions & 4 deletions charts/kubescape-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -721,8 +721,11 @@ serviceDiscovery:
name: url-discovery
image:
repository: quay.io/kubescape/http-request
tag: v0.2.6
tag: v0.2.8
pullPolicy: IfNotPresent

# Skip SSL certificate verification
insecureSkipTLSVerify: false

configMapCheck:
name: check-url-configmap
Expand Down Expand Up @@ -829,9 +832,12 @@ kubescapeScheduler:
image:
# -- source code: https://github.com/kubescape/http-request (public repo)
repository: quay.io/kubescape/http-request
tag: v0.2.6
tag: v0.2.8
pullPolicy: IfNotPresent

# Skip SSL certificate verification
insecureSkipTLSVerify: false

# Additional volumes to be mounted on the scan scheduler
volumes: [ ]

Expand Down Expand Up @@ -869,8 +875,11 @@ kubevulnScheduler:
image:
# source code - https://github.com/kubescape/http-request
repository: quay.io/kubescape/http-request
tag: v0.2.6
tag: v0.2.8
pullPolicy: IfNotPresent

# Skip SSL certificate verification
insecureSkipTLSVerify: false

# Additional volumes to be mounted on the vuln scan scheduler
volumes: [ ]
Expand Down Expand Up @@ -911,8 +920,11 @@ registryScanScheduler:
image:
# -- source code: https://github.com/kubescape/http-request (public repo)
repository: quay.io/kubescape/http-request
tag: v0.2.6
tag: v0.2.8
pullPolicy: IfNotPresent

# Skip SSL certificate verification
insecureSkipTLSVerify: false

# Additional volumes to be mounted on the scan scheduler
volumes: [ ]
Expand Down

0 comments on commit 68707c4

Please sign in to comment.