Skip to contentSkip to conversation

bitbake: fetch2: Add NODE_EXTRA_CA_CERTS to the list of exports

GIT PULL George Kelly 2 participants 3 messages Feb 3, 2023

lore
Share & tools
lore
#0 lore raw

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
#1 lore raw

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
index 5a7a6024d1..747356dfa1 100644
@@ -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
#2 lore raw

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_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.

This commit message should be wrapped

Quoted 2 lines

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
index 5a7a6024d1..747356dfa1 100644
@@ -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