Unitech / Unitech/pm2

PM2 Cluster Mode does not work with NODE_EXTRA_CA_CERTS certificates

Open
#5,919 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
43.3k
Forks
2.7k
PR merge metrics
No merged PRs in 30d

Description

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)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source files or tests are named. First reproduce the issue with Node.js 20.17.0, NODE_EXTRA_CA_CERTS, and the same application in fork and cluster modes; done means the cluster-mode application can communicate with the API server as it does in fork mode.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
backend, cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.