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

Commit 46220df

Browse files
committed
#24 Shorthand script to install everything
It is cumbersome to copy paste the snippets always from the README. Signed-off-by: Sven Strittmatter <sven.strittmatter@iteratec.com>
1 parent a8ed027 commit 46220df

File tree

3 files changed

+52
-1
lines changed

3 files changed

+52
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,16 @@ There is a german article about [Security DevOps – Angreifern (immer) einen Sc
7373

7474
### Deployment (based on Helm)
7575

76+
There are shorthand scripts to un-/install everything in the `bin` directory.
77+
7678
Deploy the secureCodeBox operator first:
7779

7880
```bash
7981
kubectl create namespace securecodebox-system
8082
helm -n securecodebox-system install securecodebox-operator ./operator/
8183
```
8284

83-
Optionally deploy SCB scanner Charts for each security scanner you want to use:
85+
Optionally deploy SCB scanner charts for each security scanner you want to use. They should not be installed into the `securecodebox-system` like the operator so that different teams can use different kinds of scanners.
8486

8587
```bash
8688
helm upgrade --install amass ./scanners/amass/

bin/install-all.sh

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/usr/bin/env bash
2+
3+
set -eu
4+
5+
kubectl create namespace securecodebox-system
6+
helm -n securecodebox-system install securecodebox-operator ./operator/
7+
8+
helm upgrade --install amass ./scanners/amass/
9+
helm upgrade --install kube-hunter ./scanners/kube-hunter/
10+
helm upgrade --install nikto ./scanners/nikto
11+
helm upgrade --install nmap ./scanners/nmap/
12+
helm upgrade --install ssh-scan ./scanners/ssh_scan/
13+
helm upgrade --install sslyze ./scanners/sslyze/
14+
helm upgrade --install trivy ./scanners/trivy/
15+
helm upgrade --install zap ./scanners/zap/
16+
helm upgrade --install wpscan ./scanners/wpscan/
17+
18+
helm upgrade --install dummy-ssh ./demo-apps/dummy-ssh/
19+
20+
helm upgrade --install aah ./hooks/update-field/
21+
helm upgrade --install gwh ./hooks/generic-webhook/
22+
helm upgrade --install issh ./hooks/imperative-subsequent-scans/
23+
24+
helm upgrade --install elkh ./hooks/persistence-elastic/

bin/uninstall-all.sh

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/usr/bin/env bash
2+
3+
set -eu
4+
5+
helm -n securecodebox-system uninstall securecodebox-operator
6+
7+
helm uninstall amass
8+
helm uninstall kube-hunter
9+
helm uninstall nikto
10+
helm uninstall nmap
11+
helm uninstall ssh-scan
12+
helm uninstall sslyze
13+
helm uninstall trivy
14+
helm uninstall zap
15+
helm uninstall wpscan
16+
17+
helm uninstall dummy-ssh
18+
19+
helm uninstall aah
20+
helm uninstall gwh
21+
helm uninstall issh
22+
23+
helm uninstall elkh
24+
25+
kubectl delete namespaces securecodebox-system

0 commit comments

Comments
 (0)