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

Commit 969a255

Browse files
committed
Replace nmap ScanType and ParseDefinition instaltion with helm
This will also ensure that the integrations tests are using the parser-nmap image build for this commit
1 parent 8025b91 commit 969a255

File tree

7 files changed

+31
-3
lines changed

7 files changed

+31
-3
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ jobs:
241241
npm ci
242242
- name: "Nmap Integration Tests"
243243
run: |
244-
kubectl --namespace integration-tests apply -f integrations/nmap/nmap-scan-type.yaml -f integrations/nmap/nmap-parse-definition.yaml
244+
helm -n integration-tests install nmap ./integrations/nmap/ --set="parserImage.tag=sha-$(git rev-parse --short HEAD)"
245245
cd tests/integration/
246246
npx jest --ci --color nmap
247247
- name: "Inspect Operator"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ helm install persistence-elastic ./persistence/persistence-elastic/
6363
# Deploy definitions for the integrated scanners
6464
kubectl apply -f integrations/amass/amass-scan-type.yaml -f integrations/amass/amass-parse-definition.yaml
6565
kubectl apply -f integrations/nikto/nikto-scan-type.yaml -f integrations/nikto/nikto-parse-definition.yaml
66-
kubectl apply -f integrations/nmap/nmap-scan-type.yaml -f integrations/nmap/nmap-parse-definition.yaml
66+
helm install nmap ./integrations/nmap/
6767
kubectl apply -f integrations/ssh_scan/ssh-scan-scan-type.yaml -f integrations/ssh_scan/ssh-scan-parse-definition.yaml
6868
kubectl apply -f integrations/sslyze/sslyze-scan-type.yaml -f integrations/sslyze/sslyze-parse-definition.yaml
6969
kubectl apply -f integrations/zap/zap-scan-type.yaml -f integrations/zap/zap-parse-definition.yaml

integrations/nmap/.helmignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.DS_Store
2+
3+
parser/
4+
scanner/

integrations/nmap/Chart.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
apiVersion: v2
2+
name: nmap
3+
description: A Helm chart for the NMAP security Scanner that integrates with the secureCodeBox.
4+
5+
type: application
6+
version: 0.1.0
7+
appVersion: 0.1.0
8+
9+
keywords:
10+
- security
11+
- nmap
12+
- scanner
13+
- secureCodeBox
14+
home: https://www.securecodebox.io/scanner/Nmap
15+
icon: https://www.securecodebox.io/integrationIcons/Nmap.svg
16+
sources:
17+
- https://github.com/secureCodeBox/scanner-infrastructure-nmap
18+
maintainers:
19+
- name: iteratec GmbH
20+
email: security@iteratec.com

integrations/nmap/nmap-parse-definition.yaml renamed to integrations/nmap/templates/nmap-parse-definition.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ metadata:
44
name: "nmap-xml"
55
spec:
66
handlesResultsType: nmap-xml
7-
image: scbexperimental/parser-nmap
7+
image: "{{ .Values.parserImage.registry }}/{{ .Values.parserImage.repository }}:{{ .Values.parserImage.tag }}"
File renamed without changes.

integrations/nmap/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
parserImage:
2+
registry: docker.io
3+
repository: scbexperimental/parser-nmap
4+
tag: latest

0 commit comments

Comments
 (0)