From 117b27df76fe3d66802cc305154eb994c2acf6eb Mon Sep 17 00:00:00 2001 From: Amir Moualem Date: Tue, 16 Apr 2019 12:44:40 +0300 Subject: [PATCH] feat: new (overridable) config flag to allow unknown CAs --- lib/config.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/config.js b/lib/config.js index 4fc4d62..f18abaf 100644 --- a/lib/config.js +++ b/lib/config.js @@ -18,6 +18,7 @@ function initConfig(startingConfig) { config['snapshotIntervalMs'] = 60 * 60 * 1000; config['beaconUrl'] = 'https://homebase.snyk.io/api/v1/beacon'; config['snapshotUrl'] = `https://homebase.snyk.io/api/v2/snapshot/${startingConfig.projectId}/node`; + config['allowUnknownCA'] = false; config['functionPaths'] = { repo: { @@ -37,6 +38,7 @@ function initConfig(startingConfig) { const overrideables = [ 'snapshotUrl', 'snapshotIntervalMs', 'beaconIntervalMs', 'enable', 'flushOnExit', 'projectId', 'functionPaths', + 'allowUnknownCA', ]; for (const key of overrideables) { if (key in startingConfig) {