Skip to content

Commit

Permalink
Fix: allow tlsCAFile to be passed in from MONGO_OPTIONS (#368)
Browse files Browse the repository at this point in the history
* Fix: allow tlsCAFile option

This will let users set a tlsCAFile option in their MONGO_OPTIONS env variable like this:
 MONGO_OPTIONS='{"ssl": true, "tlsCAFile": "/var/run/secrets/razeeio/razeedash-secret " }'

which will fix the `MongooseServerSelectionError: self signed certificate in certificate chain` seen when connecting to a hosted mongo instance with razeedash

* package updates
  • Loading branch information
dalehille committed Aug 10, 2020
1 parent 8148973 commit e909e62
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 99 deletions.
7 changes: 7 additions & 0 deletions kubernetes/razeedash/resource.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ items:
securityContext:
fsGroup: 999
runAsUser: 999
volumes:
- name: razeedash-secret-vol
secret:
secretName: razeedash-secret
containers:
- env:
- name: MONGO_URL
Expand Down Expand Up @@ -94,6 +98,9 @@ items:
image: "quay.io/razee/razeedash:{{TRAVIS_TAG}}"
workingDir: /app
imagePullPolicy: Always
volumeMounts:
- mountPath: /var/run/secrets/razeeio/razeedash-secret
name: razeedash-secret-vol
name: razeedash
ports:
- containerPort: 3000
Expand Down
116 changes: 27 additions & 89 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 6 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,7 @@
}
}
},
"resolutions": {
"elliptic": "^6.5.3"
},
"scripts": {
"preinstall": "npx npm-force-resolutions",
"start": "meteor run",
"debug": "meteor run --inspect",
"lint": "run-s eslint yamllint jsonlint dockerlint markdownlint shellcheck",
Expand All @@ -37,17 +33,17 @@
"license": "Apache-2.0",
"description": "Dashboard for razee resources",
"dependencies": {
"@babel/runtime": "^7.10.5",
"ace-builds": "^1.4.11",
"@babel/runtime": "^7.11.2",
"ace-builds": "^1.4.12",
"apollo-boost": "^0.4.7",
"apollo-cache-inmemory": "^1.6.5",
"apollo-client": "^2.6.8",
"apollo-link": "^1.2.14",
"apollo-link-error": "^1.1.13",
"apollo-link-http": "^1.5.17",
"bootstrap": "^4.4.1",
"bootstrap": "^4.5.2",
"bootstrap-datepicker": "^1.7.1",
"bootstrap-select": "^1.13.17",
"bootstrap-select": "^1.13.18",
"clipboard": "^2.0.6",
"color-hash": "^1.0.3",
"core-js": "^3.6.4",
Expand All @@ -60,7 +56,7 @@
"jwt-decode": "^2.2.0",
"keypair": "^1.0.1",
"lodash": "^4.17.19",
"meteor-node-stubs": "^1.0.0",
"meteor-node-stubs": "^1.0.1",
"moment": "^2.27.0",
"moment-duration-format": "^2.3.2",
"mustache": "^4.0.0",
Expand All @@ -86,7 +82,7 @@
"eslint": "^7.6.0",
"jsonlint": "^1.6.3",
"markdownlint-cli": "^0.23.2",
"npm-check-updates": "^7.0.2",
"npm-check-updates": "^7.0.4",
"npm-run-all": "^4.1.5",
"shellcheck": "^0.4.4",
"sinon": "^9.0.2",
Expand Down

0 comments on commit e909e62

Please sign in to comment.