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

Commit 70945cd

Browse files
authored
Merge Develop into Master (#8)
Merge Develop into Master
2 parents 8accd55 + 6aa0fb7 commit 70945cd

File tree

10 files changed

+10257
-6419
lines changed

10 files changed

+10257
-6419
lines changed

Dockerfile

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,20 @@ RUN apt-get update && \
66
apt-get install -y nodejs && \
77
apt-get -y clean
88

9+
RUN pip install sslyze==2.1.3 && \
10+
python -m sslyze --update_trust_store
11+
912
COPY package.json package-lock.json /src/
10-
COPY lib/ src/lib/
1113

1214
WORKDIR /src
1315

14-
RUN ls -l
15-
16-
RUN pip install sslyze && \
17-
python -m sslyze --update_trust_store
1816
RUN npm install --production
1917

18+
COPY lib/ src/lib/
2019
COPY . /src
2120

2221
HEALTHCHECK --interval=30s --timeout=5s --start-period=120s --retries=3 CMD node healthcheck.js || exit 1
2322

24-
RUN ls -l
25-
2623
RUN addgroup --system sslyze_group && adduser --system --ingroup sslyze_group sslyze_user
2724

2825
USER sslyze_user

index.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,16 @@ const scanner = new ScannerScaffolding(worker, {
2626
topic: 'sslyze_scan',
2727
async testScannerFunctionality() {
2828
try {
29-
await testRun();
29+
const { res } = await testRun();
30+
const version = res.sslyze_version || 'unkown';
31+
32+
return {
33+
version,
34+
testRun: 'successful',
35+
};
3036
} catch (error) {
3137
return { version: 'unkown', testRun: 'failed' };
3238
}
33-
return {
34-
version: 'unkown',
35-
testRun: 'successful',
36-
};
3739
},
3840
});
3941

lib/__mocks__/sslscan.js

Lines changed: 475 additions & 186 deletions
Large diffs are not rendered by default.

package-lock.json

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

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,16 @@
1717
"url": "git@github.com:secureCodeBox/scanner-infrastructure-sslyze.git"
1818
},
1919
"dependencies": {
20-
"@securecodebox/scanner-scaffolding": "^2.2.0",
20+
"@securecodebox/scanner-scaffolding": "^2.2.4",
2121
"lodash": "^4.17.11",
2222
"node-sslyze": "file:lib/node-sslyze",
23-
"sprintf-js": "^1.1.1",
23+
"sprintf-js": "^1.1.2",
2424
"uuid": "^3.3.2"
2525
},
2626
"devDependencies": {
27-
"eslint": "^5.4.0",
28-
"eslint-plugin-prettier": "^2.6.2",
29-
"jest": "^23.5.0",
30-
"prettier": "^1.14.2"
27+
"eslint": "^5.16.0",
28+
"eslint-plugin-prettier": "^3.1.0",
29+
"jest": "^24.8.0",
30+
"prettier": "^1.17.1"
3131
}
3232
}

0 commit comments

Comments
 (0)