Skip to content

Commit a2ee668

Browse files
authored
Merge pull request #20 from tls-attacker/dev
Mergde dev into main
2 parents 2c59a49 + 80b1b50 commit a2ee668

File tree

16 files changed

+265
-194
lines changed

16 files changed

+265
-194
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
output

backend/openapi.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -744,6 +744,9 @@ components:
744744
items:
745745
$ref: '#/components/schemas/GuidelineReport'
746746
nullable: true
747+
TlsScannerReport:
748+
type: string
749+
nullable: true
747750
SeverityLevel:
748751
type: string
749752
enum:

backend/src/database/models/report.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ export const ReportSchema = new Schema({
3333
AnvilConfig: String,
3434
AdditionalConfig: String,
3535
GuidelineReports: [GuidelineReportSchema],
36+
TlsScannerReport: String,
3637
KeylogFile: Types.ObjectId
3738
}, {
3839
statics: {

backend/src/endpoints/UploadReportEndpoint.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,11 @@ export namespace UploadReportEndpoint {
114114
if (guidelines) {
115115
report.GuidelineReports = JSON.parse(guidelines.getData().toString())
116116
}
117+
// tls scanner report
118+
const tlsScannerReport = zipFile.getEntry("tls-scanner.txt");
119+
if (tlsScannerReport) {
120+
report.TlsScannerReport = tlsScannerReport.getData().toString();
121+
}
117122
// key log file
118123
const keylogfile = zipFile.getEntry("keyfile.log");
119124
if (keylogfile) {

backend/src/lib/data_types.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ export interface IReport extends ITimestamp {
5151
Job?: IAnvilJob,
5252
AnvilConfig: string,
5353
AdditionalConfig: string,
54-
GuidelineReports?: IGuidelineReport[]
54+
GuidelineReports?: IGuidelineReport[],
55+
TlsScannerReport: string
5556
}
5657

5758
export interface ITestRunEdit {

docker-compose-dev.yml

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
version: '3.7'
2-
31
volumes:
42
mongodb_DB:
53
mongodb_conf:
@@ -10,28 +8,31 @@ networks:
108
services:
119
mongo:
1210
image: mongo:5.0.6
13-
restart: always
11+
restart: unless-stopped
1412
volumes:
1513
- mongodb_DB:/data/db
1614
- mongodb_conf:/data/configdb
1715
networks:
1816
- app
1917

2018
app:
21-
# image: ghcr.io/tls-attacker/anvil-web
22-
image: anvil-web
23-
restart: always
19+
build:
20+
context: .
21+
dockerfile: Dockerfile
22+
restart: unless-stopped
2423
environment:
2524
- PRODUCTION=1
2625
ports:
2726
- 5001:5001
2827
networks:
2928
- app
3029

31-
#worker:
32-
# # image: ghcr.io/tls-attacker/tlsanvil
30+
worker:
31+
image: ghcr.io/tls-attacker/tlsanvil:v1.2.9
3332
# image: tls-anvil
34-
# restart: always
35-
# networks:
36-
# - app
37-
# command: ["worker", "-controller", "app:5001", "-name", "Docker Compose bundeled Worker"]
33+
restart: always
34+
networks:
35+
- app
36+
volumes:
37+
- ./output:/output/
38+
command: ["worker", "-controller", "app:5001", "-name", "Docker Compose bundeled Worker"]

docker-compose.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,37 @@
1-
version: '3.7'
2-
31
volumes:
42
mongodb_DB:
53
mongodb_conf:
4+
output:
65

76
networks:
87
app:
98

109
services:
1110
mongo:
1211
image: mongo:5.0.6
13-
restart: always
12+
restart: unless-stopped
1413
volumes:
1514
- mongodb_DB:/data/db
1615
- mongodb_conf:/data/configdb
1716
networks:
1817
- app
1918

2019
app:
21-
image: ghcr.io/tls-attacker/anvil-web:v1.1.0
20+
image: ghcr.io/tls-attacker/anvil-web:v1.1.2
2221
# image: anvil-web
23-
restart: always
22+
restart: unless-stopped
2423
environment:
2524
- PRODUCTION=1
2625
ports:
2726
- 5001:5001
2827
networks:
2928
- app
30-
3129
worker:
32-
image: ghcr.io/tls-attacker/tlsanvil:v1.2.7
30+
image: ghcr.io/tls-attacker/tlsanvil:v1.2.9
3331
# image: tls-anvil
34-
restart: always
32+
restart: unless-stopped
3533
networks:
3634
- app
3735
volumes:
38-
- output
36+
- ./output:/output/
3937
command: ["worker", "-controller", "app:5001", "-name", "Docker Compose bundeled Worker"]

frontend/package-lock.json

Lines changed: 12 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frontend/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
},
1414
"dependencies": {
1515
"@picocss/pico": "^1.5.10",
16+
"ansi_up": "^6.0.2",
1617
"vue": "^3.3.4",
1718
"vue-router": "^4.2.5"
1819
},

frontend/src/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import { RouterLink, RouterView } from 'vue-router'
1616
<!-- <header class="container-fluid">
1717
Test
1818
</header> -->
19-
<main class="container">
19+
<main class="container-fluid">
2020
<RouterView></RouterView>
2121
</main>
2222
<footer class="container-fluid">

0 commit comments

Comments
 (0)