Skip to content
This repository was archived by the owner on Oct 14, 2020. It is now read-only.

Commit 2f54f71

Browse files
authored
Merge pull request #93 from secureCodeBox/ensure-helm-charts-use-corresponding-image-versions
Ensure Helm Charts use corresponding Container Image Versions
2 parents 04e4d27 + b91ae7f commit 2f54f71

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+226
-282
lines changed

.github/workflows/ci.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -366,9 +366,7 @@ jobs:
366366
# Install Operator using the images of the current commit
367367
helm -n securecodebox-system install securecodebox-operator ./operator/ --wait \
368368
--set="image.tag=sha-$(git rev-parse --short HEAD)" \
369-
--set="image.digest=null" \
370369
--set="lurcher.image.tag=sha-$(git rev-parse --short HEAD)" \
371-
--set="lurcher.image.digest=null"
372370
- name: "Inspect Operator"
373371
run: |
374372
echo "Deployment in namespace 'securecodebox-system'"

demo-apps/bodgeit/Chart.yaml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
11
apiVersion: v2
2-
version: 0.1.0
2+
version: latest
33
type: application
44
appVersion: "v1.4.0"
55
name: bodgeit
66
description: "The BodgeIt Store is a vulnerable web app which is aimed at people who are new to pen testing"
77
home: https://github.com/psiinon/bodgeit
88
icon: https://scb-art.j12934.now.sh/bodgeit.png
99
keywords:
10-
- vulnerable
11-
- webapp
12-
- demo
10+
- vulnerable
11+
- webapp
12+
- demo
1313
sources:
14-
- https://github.com/secureCodeBox/helm
15-
- https://github.com/psiinon/bodgeit
14+
- https://github.com/secureCodeBox/helm
15+
- https://github.com/psiinon/bodgeit
1616
maintainers:
17-
- name: iteratec GmbH
18-
email: security@iteratec.com
19-
17+
- name: iteratec GmbH
18+
email: security@iteratec.com

demo-apps/dummy-ssh/Chart.yaml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
apiVersion: v2
2-
version: 0.1.0
2+
version: latest
33
type: application
44
appVersion: "v1.0.0"
55
name: dummy-ssh
66
description: "SSH Server for scan testing."
77
home: https://wordpress.org
88
icon: https://www.securecodebox.io/integrationIcons/SSH.svg
99
keywords:
10-
- vulnerable
11-
- ssh
10+
- vulnerable
11+
- ssh
1212
sources:
13-
- https://github.com/secureCodeBox/secureCodeBox/tree/master/demo/dummy-ssh
13+
- https://github.com/secureCodeBox/secureCodeBox/tree/master/demo/dummy-ssh
1414
maintainers:
15-
- name: iteratec GmbH
16-
email: security@iteratec.com
17-
15+
- name: iteratec GmbH
16+
email: security@iteratec.com

demo-apps/http-webhook/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 0.1.0
18+
version: latest
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to

demo-apps/juice-shop/Chart.yaml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
apiVersion: v2
2-
version: 0.1.0
2+
version: latest
33
appVersion: "v12.0.2"
44
name: juice-shop
55
description: "OWASP Juice Shop: Probably the most modern and sophisticated insecure web application"
66
type: application
77
home: https://owasp.org/www-project-juice-shop/
88
icon: https://raw.githubusercontent.com/bkimminich/juice-shop/bdbcc0ea4484a2dd6b8ca243daa34c882129cdd4/frontend/src/assets/public/images/JuiceShop_Logo_400px.png
99
keywords:
10-
- owasp
11-
- javascript
12-
- vulnerable
13-
- hacking
14-
- application-security
15-
- owasp-top-10
16-
- owasp-top-ten
17-
- pentesting
18-
- vulnapp
19-
- appsec
20-
- ctf
10+
- owasp
11+
- javascript
12+
- vulnerable
13+
- hacking
14+
- application-security
15+
- owasp-top-10
16+
- owasp-top-ten
17+
- pentesting
18+
- vulnapp
19+
- appsec
20+
- ctf
2121
sources:
22-
- https://github.com/secureCodeBox/helm
23-
- https://github.com/bkimminich/juice-shop
22+
- https://github.com/secureCodeBox/helm
23+
- https://github.com/bkimminich/juice-shop
2424
maintainers:
25-
- name: iteratec GmbH
26-
email: security@iteratec.com
25+
- name: iteratec GmbH
26+
email: security@iteratec.com

demo-apps/old-wordpress/Chart.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
apiVersion: v2
2-
version: 0.1.0
2+
version: latest
33
appVersion: "4.0"
44
name: old-wordpress
55
description: "Insecure & Outdated Wordpress Instance: Never expose it to the internet!"
66
type: application
77
home: https://wordpress.org
88
icon: https://s.w.org/style/images/about/WordPress-logotype-alternative.png
99
keywords:
10-
- vulnerable
11-
- wordpress
10+
- vulnerable
11+
- wordpress
1212
sources:
13-
- https://github.com/secureCodeBox/helm
14-
- https://github.com/secureCodeBox/secureCodeBox/tree/master/demo/old-wordpress
13+
- https://github.com/secureCodeBox/helm
14+
- https://github.com/secureCodeBox/secureCodeBox/tree/master/demo/old-wordpress
1515
maintainers:
16-
- name: iteratec GmbH
17-
email: security@iteratec.com
16+
- name: iteratec GmbH
17+
email: security@iteratec.com

demo-apps/swagger-petstore/Chart.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
apiVersion: v2
2-
version: 0.1.0
2+
version: latest
33
appVersion: "1.0.3"
44
name: swagger-petstore
55
description: "This is the sample petstore application"
66
type: application
77
home: https://github.com/swagger-api/swagger-petstore
88
icon: https://static1.smartbear.co/swagger/media/assets/images/swagger_logo.svg
99
keywords:
10-
- swagger
11-
- openapi
10+
- swagger
11+
- openapi
1212
sources:
13-
- https://github.com/secureCodeBox/helm
14-
- https://github.com/swagger-api/swagger-petstore
13+
- https://github.com/secureCodeBox/helm
14+
- https://github.com/swagger-api/swagger-petstore
1515
maintainers:
16-
- name: iteratec GmbH
17-
email: security@iteratec.com
16+
- name: iteratec GmbH
17+
email: security@iteratec.com

hooks/declarative-subsequent-scans/Chart.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ description: Starts possible subsequent security scans based on findings (e.g. o
44

55
type: application
66

7-
version: 0.1.0
8-
9-
appVersion: latest
7+
# version - gets automatically set to the secureCodeBox release version when the helm charts gets published
8+
version: latest
109

1110
dependencies: []

hooks/declarative-subsequent-scans/templates/declerative-subsequent-scans-hook.yaml

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,5 @@ metadata:
44
name: {{ include "declarative-subsequent-scans.fullname" . }}
55
spec:
66
type: ReadOnly
7-
{{- if .Values.image.registry }}
8-
{{- if .Values.image.digest }}
9-
image: "{{ .Values.image.registry }}/{{ .Values.image.repository }}@{{ .Values.image.digest }}"
10-
{{- else }}
11-
image: "{{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag }}"
12-
{{- end }}
13-
{{- else }}
14-
{{- if .Values.image.digest }}
15-
image: "{{ .Values.image.repository }}@{{ .Values.image.digest }}"
16-
{{- else }}
17-
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
18-
{{- end }}
19-
{{- end }}
7+
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.Version }}"
208
serviceAccountName: declarative-combined-scans

hooks/declarative-subsequent-scans/values.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
# Declare variables to be passed into your templates.
44

55
image:
6-
registry: docker.io
7-
repository: scbexperimental/hook-declarative-subsequent-scans
8-
tag: latest
9-
digest: null
6+
repository: docker.io/scbexperimental/hook-declarative-subsequent-scans
7+
# image.tag - defaults to the charts version
8+
tag: null

0 commit comments

Comments
 (0)