Skip to content

Commit bcda595

Browse files
committed
feat(api-server): TLS, mTLS support
This is not really something that we expect to be used in production due to the prevalence of load balancers and reverse proxies in most production scale web application deployments, but it is a must have for testing and also for us to be able to claim that we take the secure by default design principle seriously. Signed-off-by: Peter Somogyvari <[email protected]>
1 parent 332b306 commit bcda595

File tree

11 files changed

+844
-78
lines changed

11 files changed

+844
-78
lines changed

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "@hyperledger-labs/cactus",
33
"private": true,
44
"scripts": {
5+
"run-ci": "./tools/ci.sh",
56
"configure": "lerna clean --yes && lerna bootstrap && npm-run-all build generate-api-server-config",
67
"generate-api-server-config": "node ./tools/generate-api-server-config.js",
78
"start:api-server": "node ./packages/cactus-cmd-api-server/dist/lib/main/typescript/cmd/cactus-api.js --config-file=.config.json",

packages/cactus-cmd-api-server/package-lock.json

+53
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/cactus-cmd-api-server/package.json

+4
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,12 @@
7474
"convict-format-with-validator": "6.0.0",
7575
"cors": "2.8.5",
7676
"express": "4.17.1",
77+
"express-http-proxy": "1.6.0",
7778
"express-openapi-validator": "3.10.0",
7879
"joi": "14.3.1",
7980
"js-sha3": "0.8.0",
8081
"node-fetch": "3.0.0-beta.4",
82+
"node-forge": "0.9.1",
8183
"secp256k1": "4.0.0",
8284
"semver": "7.3.2",
8385
"sha3": "2.1.2",
@@ -89,8 +91,10 @@
8991
"@types/convict": "5.2.1",
9092
"@types/cors": "2.8.6",
9193
"@types/express": "4.17.6",
94+
"@types/express-http-proxy": "1.6.1",
9295
"@types/joi": "14.3.4",
9396
"@types/multer": "1.4.2",
97+
"@types/node-forge": "0.9.3",
9498
"@types/secp256k1": "3.5.3",
9599
"@types/semver": "7.3.1",
96100
"@types/uuid": "7.0.2"

0 commit comments

Comments
 (0)