bitbake: fetch2: Add NODE_EXTRA_CA_CERTS to the list of exports
From: George Kelly <[email protected]>
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.
The following changes since commit 61c35514cfd27dda045735695f8960126e0704b5:
testimage: Fix error message to reflect new syntax (2023-02-02 10:27:30 +0000)
are available in the Git repository at:
ssh://[email protected]/poky-contrib gkelly/node-ca-cert
George Kelly (1):
bitbake: fetch2: Add NODE_EXTRA_CA_CERTS to the list of exports
bitbake/lib/bb/fetch2/__init__.py | 1 + 1 file changed, 1 insertion(+)
Signature · 1 line
2.37.2
From: George Kelly <[email protected]>
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.
--- bitbake/lib/bb/fetch2/__init__.py | 1 + 1 file changed, 1 insertion(+)
bitbake/lib/bb/fetch2/__init__.py +1 -0
@@ -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',
Signature · 1 line
2.37.2
Hello George,
Thanks for the patch, a few things to improve:
Quoted 3 lines · George Kelly
From: George Kelly <[email protected]>
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_CERTSenvironment variable must be passed so the user can include their company's root CA as a trusted CA inside node's certificate store.
This commit message should be wrapped
Quoted 2 lines
Signed-off-by George Kelly <[email protected]>
The Author and SoB must match.
Quoted 2 lines
--- bitbake/lib/bb/fetch2/__init__.py | 1 +
This is a bitake patch, please base it on the bitbake git repository (git.openembedded.org/bitbake).
Also, this should be sent to [email protected]
Quoted 21 lines
1 file changed, 1 insertion(+)bitbake/lib/bb/fetch2/__init__.py +1
-0@@ -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',Signature · 1 line
2.37.2
Signature · 3 lines
Alexandre Belloni, co-owner and COO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com