Skip to content
This repository was archived by the owner on Feb 26, 2021. It is now read-only.

Commit 8dce763

Browse files
authored
Merge pull request #60 from secureCodeBox/merge/defect-dojo
Merge/defect dojo
2 parents 9513960 + 5fee11e commit 8dce763

File tree

29 files changed

+1413
-13
lines changed

29 files changed

+1413
-13
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ COPY --from=builder ./scb-scanprocesses/subdomain-scanner-process/target/subdoma
2424

2525
COPY --from=builder ./scb-persistenceproviders/elasticsearch-persistenceprovider/target/elasticsearch-persistenceprovider-0.0.1-SNAPSHOT-jar-with-dependencies.jar /scb-engine/lib/
2626
COPY --from=builder ./scb-persistenceproviders/s3-persistenceprovider/target/s3-persistenceprovider-0.0.1-SNAPSHOT-jar-with-dependencies.jar /scb-engine/lib/
27+
COPY --from=builder ./scb-persistenceproviders/defectdojo-persistenceprovider/target/defectdojo-persistenceprovider-0.0.1-SNAPSHOT-jar-with-dependencies.jar /scb-engine/lib/
2728

2829
WORKDIR /scb-engine
2930

scb-engine/pom.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,12 @@
166166
<version>0.0.1-SNAPSHOT</version>
167167
<scope>runtime</scope>
168168
</dependency>
169+
<dependency>
170+
<groupId>io.securecodebox.scanprocesses</groupId>
171+
<artifactId>subdomain-scanner-process</artifactId>
172+
<version>1.0-SNAPSHOT</version>
173+
<scope>runtime</scope>
174+
</dependency>
169175
<dependency>
170176
<groupId>io.securecodebox.scanprocesses</groupId>
171177
<artifactId>combined-nmap-nikto-scanprocess</artifactId>
@@ -190,6 +196,12 @@
190196
<version>0.0.1-SNAPSHOT</version>
191197
<scope>runtime</scope>
192198
</dependency>
199+
<dependency>
200+
<groupId>io.securecodebox.persistenceproviders</groupId>
201+
<artifactId>defectdojo-persistenceprovider</artifactId>
202+
<version>0.0.1-SNAPSHOT</version>
203+
<scope>runtime</scope>
204+
</dependency>
193205
</dependencies>
194206
<dependencyManagement>
195207
<!-- This will overwrite spring boot dependency management version for elastic search-->

scb-engine/src/main/resources/application-dev.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ logging.level.io.securecodebox: DEBUG
99
# Configure which persistence provider you would like to choose
1010
# - none
1111
# - elasticsearch
12-
securecodebox.persistence.provider: none
13-
1412
securecodebox.rest.user.scanner-default:
1513
user-id: default-scanner
1614
password: scan

scb-engine/src/main/resources/application.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,11 @@ camunda.bpm:
2929
logging.level: INFO
3030
logging.level.io.securecodebox: INFO
3131

32-
# Configure which persistence provider you would like to choose
33-
# - none
34-
# - elasticsearch
35-
securecodebox.persistence.provider: none
32+
# Persistence Provider Config
33+
securecodebox.persistence.none.enabled: "false"
34+
securecodebox.persistence.elasticsearch.enabled: "false"
35+
securecodebox.persistence.s3.enabled: "false"
36+
securecodebox.persistence.defectdojo.enabled: "false"
3637

3738
# Configuration for the s3 persistence provider:
3839
securecodebox.persistence.s3.bucket: abc-def
@@ -44,6 +45,7 @@ securecodebox.persistence.elasticsearch.port: 9200
4445
securecodebox.persistence.elasticsearch.index.prefix: securecodebox
4546
securecodebox.persistence.elasticsearch.index.delete_on_init: false
4647

48+
4749
securecodebox.default.target.name: BodgeIT Public Host
4850
securecodebox.default.target.location: bodgeit
4951
securecodebox.default.target.uri: http://bodgeit:8080/bodgeit
Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
<!--
2+
~ /*
3+
~ * SecureCodeBox (SCB)
4+
~ * Copyright 2015-2018 iteratec GmbH
5+
~ *
6+
~ * Licensed under the Apache License, Version 2.0 (the "License");
7+
~ * you may not use this file except in compliance with the License.
8+
~ * You may obtain a copy of the License at
9+
~ *
10+
~ * http://www.apache.org/licenses/LICENSE-2.0
11+
~ *
12+
~ * Unless required by applicable law or agreed to in writing, software
13+
~ * distributed under the License is distributed on an "AS IS" BASIS,
14+
~ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
~ * See the License for the specific language governing permissions and
16+
~ * limitations under the License.
17+
~ */
18+
-->
19+
20+
<project xmlns="http://maven.apache.org/POM/4.0.0"
21+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
22+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
23+
<parent>
24+
<groupId>io.securecodebox.persistenceproviders</groupId>
25+
<artifactId>default-persistence-collection</artifactId>
26+
<version>0.0.1-SNAPSHOT</version>
27+
</parent>
28+
<modelVersion>4.0.0</modelVersion>
29+
30+
<artifactId>defectdojo-persistenceprovider</artifactId>
31+
<version>0.0.1-SNAPSHOT</version>
32+
33+
<dependencies>
34+
<dependency>
35+
<groupId>io.securecodebox.core</groupId>
36+
<artifactId>sdk</artifactId>
37+
<scope>provided</scope>
38+
</dependency>
39+
<dependency>
40+
<groupId>org.springframework</groupId>
41+
<artifactId>spring-web</artifactId>
42+
<scope>compile</scope>
43+
</dependency>
44+
<dependency>
45+
<groupId>org.mockito</groupId>
46+
<artifactId>mockito-core</artifactId>
47+
<scope>test</scope>
48+
</dependency>
49+
<dependency>
50+
<groupId>junit</groupId>
51+
<artifactId>junit</artifactId>
52+
<scope>test</scope>
53+
</dependency>
54+
<dependency>
55+
<groupId>org.springframework</groupId>
56+
<artifactId>spring-test</artifactId>
57+
<scope>test</scope>
58+
</dependency>
59+
<dependency>
60+
<groupId>org.projectlombok</groupId>
61+
<artifactId>lombok</artifactId>
62+
<version>1.18.4</version>
63+
<scope>provided</scope>
64+
</dependency>
65+
</dependencies>
66+
67+
68+
<build>
69+
<plugins>
70+
<plugin>
71+
<artifactId>maven-assembly-plugin</artifactId>
72+
<version>3.1.0</version>
73+
<configuration>
74+
<descriptorRefs>
75+
<descriptorRef>jar-with-dependencies</descriptorRef>
76+
</descriptorRefs>
77+
</configuration>
78+
<executions>
79+
<execution>
80+
<id>make-assembly</id>
81+
<phase>package</phase>
82+
<goals>
83+
<goal>single</goal>
84+
</goals>
85+
</execution>
86+
</executions>
87+
</plugin>
88+
</plugins>
89+
</build>
90+
91+
92+
</project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package io.securecodebox.persistence;
2+
3+
public enum DefectDojoMetaFields {
4+
DEFECT_DOJO_USER
5+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/*
2+
*
3+
* SecureCodeBox (SCB)
4+
* Copyright 2015-2018 iteratec GmbH
5+
*
6+
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* you may not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
* /
18+
*/
19+
package io.securecodebox.persistence;
20+
21+
public class DefectDojoPersistenceException extends PersistenceException{
22+
public DefectDojoPersistenceException(String message) {
23+
super(message);
24+
}
25+
26+
public DefectDojoPersistenceException(String message, Throwable cause) {
27+
super(message, cause);
28+
}
29+
}

0 commit comments

Comments
 (0)