@newrelic/security-agent 0.0.5 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ### v0.0.6
2
+ * Updated default fuzz host to 0.0.0.0
3
+ * Handling to get custom certificate path from config instead of environment variable
4
+
1
5
  ### v0.0.5
2
6
  * Updated README file
3
7
  * Init logging update
@@ -384,7 +384,7 @@ function getCSECmode(){
384
384
  * @returns
385
385
  */
386
386
  function getPathOfCACert(){
387
- const certPath = process.env.NEW_RELIC_SECURITY_CA_BUNDLE_PATH ? process.env.NEW_RELIC_SECURITY_CA_BUNDLE_PATH : path.resolve(__dirname, '../../resources/cert.pem');
387
+ const certPath = NRAgent && NRAgent.config.security.ca_bundle_path ? NRAgent.config.security.ca_bundle_path : path.resolve(__dirname, '../../resources/cert.pem');
388
388
  return certPath
389
389
  }
390
390
 
@@ -11,7 +11,7 @@ const { Agent } = require('../../../agent');
11
11
  const { FuzzFailEvent } = require('../../../FuzzFailEvent');
12
12
  const { hasWorker: isWorkerSupported } = require('../../../commonUtils');
13
13
  const { CSEC_HOME_TMP, COLON, NR_CSEC_FUZZ_REQUEST_ID } = require('../../../sec-agent-constants');
14
- const LOCALHOST = 'localhost';
14
+ const LOCALHOST = '0.0.0.0';
15
15
  const COLON_SLASH_SLASH = '://';
16
16
  const http = require('http');
17
17
  const https = require('https');
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@newrelic/security-agent",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "description": "Newrelic Security Agent for Node.js",
5
5
  "main": "index.js",
6
- "collectorVersion": "1.0.1-limited-preview",
6
+ "collectorVersion": "1.0.2-limited-preview",
7
7
  "jsonVersion": "1.0.1",
8
8
  "contributors": [
9
9
  {