Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Certification Issue with the latest node:10-alpine image #1157

Closed
pgsung opened this issue Nov 19, 2019 · 3 comments
Closed

Certification Issue with the latest node:10-alpine image #1157

pgsung opened this issue Nov 19, 2019 · 3 comments

Comments

@pgsung
Copy link

pgsung commented Nov 19, 2019

Our company encountered database certification issue when building the application with today's node:10-alpine image. The database is on Amazon RDS and has valid certs, but the node was returning certification error.
export DATABASE_URL=postgresql://<scrubbed>:<scrubbed>@<scrubbed>.us-east-1.rds.amazonaws.com:5432/orgv2dev?ssl=true NODE_CONFIG_ARGS=+ time node ./dist/src/utils/ShellRunner.js 'db-migrate up' {"app":"org-v2","GIT_COMMIT":"48db2e0c","IMAGE":"ssartisan/hardroc-org-v2:develop_1238-48db2e0c","level":"info","message":"{ stdout: '',\n stderr:\n '[ERROR] AssertionError [ERR_ASSERTION]: ifError got unwanted exception: self signed certificate in certificate chain\\n at module.exports (/usr/local/lib/node_modules/db-migrate/lib/commands/helper/assert.js:9:14)\\n

@cam-perry
Copy link

cam-perry commented Nov 19, 2019

I am experiencing the same issue on the node:11 image.

Our issue was not with the node image. @pgsung if you are using the pg package it was updated to 7.13.0 this morning, leading to this error: brianc/node-postgres#2009

@LaurentGoderre
Copy link
Member

Note that the default alpine version switched to alpine 3.10. You can try pinning your image to node:10-alpine3.9 to see if it solves your problem.

@nschonni
Copy link
Member

Closing in favour of the linked node-postress issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants