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

PM2 Cluster Mode does not work with NODE_EXTRA_CA_CERTS certificates #5919

Open
sei-jdshimkoski opened this issue Nov 19, 2024 · 2 comments
Open

Comments

@sei-jdshimkoski
Copy link

What's going wrong?

When you start an application in "fork" mode with the "NODE_EXTRA_CA_CERTS" environment variable set, the application is able to communicate with API servers without issue.

When you start the exact same application in "cluster" mode instead, the application cannot communicate with API servers.

How could we reproduce this issue?

  1. Create a simple application that uses the NODE_EXTRA_CA_CERTS environment variable with a path to a certificate to communicate with an API.
  2. Run the application in "fork" mode to see a working application.
  3. Run the application in "cluster" mode to see that it doesn't work.

Supporting information

Nodejs version 20.17.0
Same issue in multiple host environments (Apple Silicon, Linux, etc)

@sei-jdshimkoski
Copy link
Author

Linking this as it feels related: #3117

@sei-jdshimkoski
Copy link
Author

I tested the same patch found in #3117 and it works.

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

1 participant