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

Commit 8accd55

Browse files
authored
Merge pull request #5 from secureCodeBox/develop
Develop
2 parents d150fc6 + 23d1049 commit 8accd55

File tree

9 files changed

+1541
-1068
lines changed

9 files changed

+1541
-1068
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ jobs:
44
script: npm test
55
language: node_js
66
node_js:
7-
- '8'
7+
- '10'
88
- stage: build docker image
99
services:
1010
- docker

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ RUN npm install --production
1919

2020
COPY . /src
2121

22+
HEALTHCHECK --interval=30s --timeout=5s --start-period=120s --retries=3 CMD node healthcheck.js || exit 1
23+
2224
RUN ls -l
2325

2426
RUN addgroup --system sslyze_group && adduser --system --ingroup sslyze_group sslyze_user

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
![Build Status](https://travis-ci.com/secureCodeBox/scanner-infrastructure-sslyze.svg?token=Hpx3VekB3dxuZX1bYFME&branch=develop)
1+
[![Build Status](https://travis-ci.com/secureCodeBox/scanner-infrastructure-sslyze.svg?branch=develop)](https://travis-ci.com/secureCodeBox/scanner-infrastructure-sslyze)
22
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
33
[![Known Vulnerabilities](https://snyk.io/test/github/secureCodeBox/scanner-infrastructure-sslyze/badge.svg)](https://snyk.io/test/github/secureCodeBox/scanner-infrastructure-sslyze)
44
[![GitHub release](https://img.shields.io/github/release/secureCodeBox/scanner-infrastructure-sslyze.svg)](https://github.com/secureCodeBox/scanner-infrastructure-sslyze/releases/latest)

healthcheck.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
try {
2+
3+
require('http').request('http://localhost:8080/status', response => {
4+
5+
// exit with error for any non 2xx status code
6+
process.exit(response.statusCode >= 300 ? 1 : 0);
7+
8+
}).end();
9+
10+
} catch (err) {
11+
process.exit(1);
12+
}

package-lock.json

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

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
"url": "git@github.com:secureCodeBox/scanner-infrastructure-sslyze.git"
1818
},
1919
"dependencies": {
20-
"@securecodebox/scanner-scaffolding": "^2.1.3",
21-
"lodash": "^4.17.10",
20+
"@securecodebox/scanner-scaffolding": "^2.2.0",
21+
"lodash": "^4.17.11",
2222
"node-sslyze": "file:lib/node-sslyze",
2323
"sprintf-js": "^1.1.1",
2424
"uuid": "^3.3.2"

src/__snapshots__/sslyze.test.js.snap

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ Object {
315315
"name": "TLSv1 supported",
316316
"osi_layer": "PRESENTATION",
317317
"reference": null,
318-
"severity": "INFORMATIONAL",
318+
"severity": "LOW",
319319
},
320320
Object {
321321
"attributes": Object {
@@ -781,7 +781,7 @@ Object {
781781
"name": "TLSv1 supported",
782782
"osi_layer": "PRESENTATION",
783783
"reference": null,
784-
"severity": "INFORMATIONAL",
784+
"severity": "LOW",
785785
},
786786
Object {
787787
"attributes": Object {
@@ -1257,7 +1257,7 @@ Object {
12571257
"name": "TLSv1 supported",
12581258
"osi_layer": "PRESENTATION",
12591259
"reference": null,
1260-
"severity": "INFORMATIONAL",
1260+
"severity": "LOW",
12611261
},
12621262
Object {
12631263
"attributes": Object {
@@ -1735,7 +1735,7 @@ Object {
17351735
"name": "TLSv1 supported",
17361736
"osi_layer": "PRESENTATION",
17371737
"reference": null,
1738-
"severity": "INFORMATIONAL",
1738+
"severity": "LOW",
17391739
},
17401740
Object {
17411741
"attributes": Object {

src/sslyze.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ const FindingPrototypes = Object.freeze({
299299
name: 'TLSv1 supported',
300300
description: 'The server supports at least one cipher suite using the TLSv1 protocol.',
301301
osi_layer: OsiLayer.PRESENTATION,
302-
severity: Severity.INFORMATIONAL,
302+
severity: Severity.LOW,
303303
category: FindingCategory.TLSV1,
304304
},
305305
TLSV1_ERROR: {

src/sslyze.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -778,7 +778,7 @@ describe('sslyze', () => {
778778
'The server supports at least one cipher suite using the TLSv1 protocol.',
779779
category: 'TLSv1',
780780
osi_layer: 'PRESENTATION',
781-
severity: 'INFORMATIONAL',
781+
severity: 'LOW',
782782
reference: null,
783783
hint: null,
784784
location: 'https://www.yahoo.com:443',

0 commit comments

Comments
 (0)