Image crashes when used with envvar NODE_EXTRA_CA_CERTS
Summary
When started with envvar NODE_EXTRA_CA_CERTS, container crashes with message: node[1]: ../src/node.cc:1040:std::unique_ptrnode::InitializationResult node::InitializeOncePerProcess(const std::vector<std::__cxx11::basic_string >&, node::ProcessFlags::Flags): Assertion `crypto::CSPRNG(nullptr, 0).is_ok()' failed.
Steps to reproduce
Docker run -e NODE_EXTRA_CA_CERTS=cert.crt nodejs18:18-slim
What is the current bug behavior?
node[1]: ../src/node.cc:1040:std::unique_ptrnode::InitializationResult node::InitializeOncePerProcess(const std::vector<std::__cxx11::basic_string >&, node::ProcessFlags::Flags): Assertion `crypto::CSPRNG(nullptr, 0).is_ok()' failed.
What is the expected correct behavior?
Should pass envvar to Node, so it can incorporate the specified local CA certs
Relevant logs and/or screenshots
Happens with or without valid certs:
2023-04-17 16:38:14 Warning: Ignoring extra certs from cert.crt
, load failed: error:80000002:system library::No such file or directory
2023-04-17 16:38:14 node[1]: ../src/node.cc:1040:std::unique_ptrnode::InitializationResult node::InitializeOncePerProcess(const std::vector<std::__cxx11::basic_string >&, node::ProcessFlags::Flags): Assertion `crypto::CSPRNG(nullptr, 0).is_ok()' failed.
Possible fixes
(If you can, link to the line of code that might be responsible for the problem)
Tasks
-
Bug has been identified and corrected within the container
Please read the Iron Bank Documentation for more info