diff mbox series

[PATCHv3] bitbake: fetch2: Add NODE_EXTRA_CA_CERTS to export list

Message ID 20230209142819.9946-1-george.kelly1097@gmail.com
State New
Headers show
Series [PATCHv3] bitbake: fetch2: Add NODE_EXTRA_CA_CERTS to export list | expand

Commit Message

George Kelly Feb. 9, 2023, 2:28 p.m. UTC
If you are behind a corporate proxy, the npm fetcher uses the proxy
IP address already passed in the list of exports. However, it will
error if the proxy injects its own root CA certificate. Thus, the
NODE_EXTRA_CA_CERTS environment variable must be passed so the user
can include their company's root CA as a trusted CA inside node's
certificate store.

Signed-off-by: George Kelly <george.kelly1097@gmail.com>
---
 lib/bb/fetch2/__init__.py | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/lib/bb/fetch2/__init__.py b/lib/bb/fetch2/__init__.py
index 5a7a6024..747356df 100644
--- a/lib/bb/fetch2/__init__.py
+++ b/lib/bb/fetch2/__init__.py
@@ -851,6 +851,7 @@  FETCH_EXPORT_VARS = ['HOME', 'PATH',
                      'DBUS_SESSION_BUS_ADDRESS',
                      'P4CONFIG',
                      'SSL_CERT_FILE',
+                     'NODE_EXTRA_CA_CERTS',
                      'AWS_PROFILE',
                      'AWS_ACCESS_KEY_ID',
                      'AWS_SECRET_ACCESS_KEY',