Skip to contentSkip to conversation

Add NODE_EXTRA_CA_CERTS to export list

PATCH Superseded George Kelly 3 participants 3 messages Feb 7, 2023 – Feb 8, 2023

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 Add NODE_EXTRA_CA_CERTS to export list

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.

---
 lib/bb/fetch2/__init__.py | 1 +
 1 file changed, 1 insertion(+)
lib/bb/fetch2/__init__.py +1 -0
index 5a7a6024..747356df 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
#1 lore raw

Hello George,

Quoted 9 lines · On Tue, 7 Feb 2023 17:10:22 -0500 "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.

Your subject and commit message looks definitely good now, thanks! I added your patch to my testing branch.

Signature · 3 lines
Luca Ceresoli, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#2 lore raw
Quoted 8 lines

-----Original Message-----
From: [email protected] <bitbake- [email protected]> On Behalf Of Luca Ceresoli via lists.openembedded.org
Sent: den 8 februari 2023 11:15
To: George Kelly <[email protected]>
Cc: [email protected]
Subject: Re: [bitbake-devel] [bitbake][PATCHv2] Add NODE_EXTRA_CA_CERTS to export list

There should be a prefix for the subject, e.g., "fetch2: "

Quoted 16 lines

Hello George,

Quoted 9 lines · On Tue, 7 Feb 2023 17:10:22 -0500 "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.

Quoted 7 lines

Your subject and commit message looks definitely good now, thanks! I added your patch to my testing branch.

--
Luca Ceresoli, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

//Peter