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

Commit

Permalink
Merge pull request #5 from secureCodeBox/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
rseedorff authored Feb 13, 2019
2 parents d150fc6 + 23d1049 commit 8accd55
Show file tree
Hide file tree
Showing 9 changed files with 1,541 additions and 1,068 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ jobs:
script: npm test
language: node_js
node_js:
- '8'
- '10'
- stage: build docker image
services:
- docker
Expand Down
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ RUN npm install --production

COPY . /src

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

RUN ls -l

RUN addgroup --system sslyze_group && adduser --system --ingroup sslyze_group sslyze_user
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
![Build Status](https://travis-ci.com/secureCodeBox/scanner-infrastructure-sslyze.svg?token=Hpx3VekB3dxuZX1bYFME&branch=develop)
[![Build Status](https://travis-ci.com/secureCodeBox/scanner-infrastructure-sslyze.svg?branch=develop)](https://travis-ci.com/secureCodeBox/scanner-infrastructure-sslyze)
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
[![Known Vulnerabilities](https://snyk.io/test/github/secureCodeBox/scanner-infrastructure-sslyze/badge.svg)](https://snyk.io/test/github/secureCodeBox/scanner-infrastructure-sslyze)
[![GitHub release](https://img.shields.io/github/release/secureCodeBox/scanner-infrastructure-sslyze.svg)](https://github.com/secureCodeBox/scanner-infrastructure-sslyze/releases/latest)
Expand Down
12 changes: 12 additions & 0 deletions healthcheck.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
try {

require('http').request('http://localhost:8080/status', response => {

// exit with error for any non 2xx status code
process.exit(response.statusCode >= 300 ? 1 : 0);

}).end();

} catch (err) {
process.exit(1);
}
2,575 changes: 1,517 additions & 1,058 deletions package-lock.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
"url": "git@github.com:secureCodeBox/scanner-infrastructure-sslyze.git"
},
"dependencies": {
"@securecodebox/scanner-scaffolding": "^2.1.3",
"lodash": "^4.17.10",
"@securecodebox/scanner-scaffolding": "^2.2.0",
"lodash": "^4.17.11",
"node-sslyze": "file:lib/node-sslyze",
"sprintf-js": "^1.1.1",
"uuid": "^3.3.2"
Expand Down
8 changes: 4 additions & 4 deletions src/__snapshots__/sslyze.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ Object {
"name": "TLSv1 supported",
"osi_layer": "PRESENTATION",
"reference": null,
"severity": "INFORMATIONAL",
"severity": "LOW",
},
Object {
"attributes": Object {
Expand Down Expand Up @@ -781,7 +781,7 @@ Object {
"name": "TLSv1 supported",
"osi_layer": "PRESENTATION",
"reference": null,
"severity": "INFORMATIONAL",
"severity": "LOW",
},
Object {
"attributes": Object {
Expand Down Expand Up @@ -1257,7 +1257,7 @@ Object {
"name": "TLSv1 supported",
"osi_layer": "PRESENTATION",
"reference": null,
"severity": "INFORMATIONAL",
"severity": "LOW",
},
Object {
"attributes": Object {
Expand Down Expand Up @@ -1735,7 +1735,7 @@ Object {
"name": "TLSv1 supported",
"osi_layer": "PRESENTATION",
"reference": null,
"severity": "INFORMATIONAL",
"severity": "LOW",
},
Object {
"attributes": Object {
Expand Down
2 changes: 1 addition & 1 deletion src/sslyze.js
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ const FindingPrototypes = Object.freeze({
name: 'TLSv1 supported',
description: 'The server supports at least one cipher suite using the TLSv1 protocol.',
osi_layer: OsiLayer.PRESENTATION,
severity: Severity.INFORMATIONAL,
severity: Severity.LOW,
category: FindingCategory.TLSV1,
},
TLSV1_ERROR: {
Expand Down
2 changes: 1 addition & 1 deletion src/sslyze.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,7 @@ describe('sslyze', () => {
'The server supports at least one cipher suite using the TLSv1 protocol.',
category: 'TLSv1',
osi_layer: 'PRESENTATION',
severity: 'INFORMATIONAL',
severity: 'LOW',
reference: null,
hint: null,
location: 'https://www.yahoo.com:443',
Expand Down

0 comments on commit 8accd55

Please sign in to comment.