Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(desktop): use system CAs for bundled server requests #23424

Openjuliusmarmingewants to merge 3 commits intomain fromrefs/pull/23424/headopened View on GitHub

Showing 2 changed files with 4 additions and 1 deletion.

x
0 of 2 viewed, 2 left
2 additions and 1 deletionapps/desktop/src/backend/DesktopBackendConfiguration.test.tsModified
View file
@@ -228,7 +228,8 @@
const second = yield* configuration.resolvePrimary;
​
assert.equal(first.executablePath, process.execPath);
- assert.deepEqual(first.args.slice(0, 3), [
+ assert.deepEqual(first.args.slice(0, 4), [
+ "--use-system-ca",
"--require",
environment.compileCachePath,
environment.backendEntryPath,
2 additions and 0 deletionsapps/desktop/src/backend/DesktopBackendConfiguration.tsModified
View file
@@ -523,7 +523,9 @@
return {
executablePath: process.execPath,
// Packaged builds have a separate cache; --require prevents cache settings leaking to provider subprocesses.
+ // --use-system-ca also stays off the env: Electron's CA bundle rejects chains the OS trusts.
args: [
+ "--use-system-ca",
...(environment.isPackaged ? ["--require", environment.compileCachePath] : []),
environment.backendEntryPath,
"--bootstrap-fd",