diff --git a/CHANGELOG.md b/CHANGELOG.md index 7b350fbc..b02e0129 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +### v0.0.6 +* Updated default fuzz host to 0.0.0.0 +* Handling to get custom certificate path from config instead of environment variable + ### v0.0.5 * Updated README file * Init logging update diff --git a/lib/nr-security-agent/lib/core/commonUtils.js b/lib/nr-security-agent/lib/core/commonUtils.js index bf8370a6..e5a3ed51 100644 --- a/lib/nr-security-agent/lib/core/commonUtils.js +++ b/lib/nr-security-agent/lib/core/commonUtils.js @@ -384,7 +384,7 @@ function getCSECmode(){ * @returns */ function getPathOfCACert(){ - const certPath = process.env.NEW_RELIC_SECURITY_CA_BUNDLE_PATH ? process.env.NEW_RELIC_SECURITY_CA_BUNDLE_PATH : path.resolve(__dirname, '../../resources/cert.pem'); + const certPath = NRAgent && NRAgent.config.security.ca_bundle_path ? NRAgent.config.security.ca_bundle_path : path.resolve(__dirname, '../../resources/cert.pem'); return certPath } diff --git a/lib/nr-security-agent/lib/core/connections/websocket/response/fuzz-request-handler.js b/lib/nr-security-agent/lib/core/connections/websocket/response/fuzz-request-handler.js index 23737da0..bc220c1a 100644 --- a/lib/nr-security-agent/lib/core/connections/websocket/response/fuzz-request-handler.js +++ b/lib/nr-security-agent/lib/core/connections/websocket/response/fuzz-request-handler.js @@ -11,7 +11,7 @@ const { Agent } = require('../../../agent'); const { FuzzFailEvent } = require('../../../FuzzFailEvent'); const { hasWorker: isWorkerSupported } = require('../../../commonUtils'); const { CSEC_HOME_TMP, COLON, NR_CSEC_FUZZ_REQUEST_ID } = require('../../../sec-agent-constants'); -const LOCALHOST = 'localhost'; +const LOCALHOST = '0.0.0.0'; const COLON_SLASH_SLASH = '://'; const http = require('http'); const https = require('https'); diff --git a/package-lock.json b/package-lock.json index f8cc4cb5..54e95bd0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@newrelic/security-agent", - "version": "0.0.4", + "version": "0.0.5", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@newrelic/security-agent", - "version": "0.0.4", + "version": "0.0.5", "license": "Apache-2.0", "dependencies": { "@aws-sdk/client-lambda": "3.276.0", @@ -29897,4 +29897,4 @@ "dev": true } } -} \ No newline at end of file +} diff --git a/package.json b/package.json index 361107a3..0e751c62 100755 --- a/package.json +++ b/package.json @@ -1,9 +1,9 @@ { "name": "@newrelic/security-agent", - "version": "0.0.4", + "version": "0.0.5", "description": "Newrelic Security Agent for Node.js", "main": "index.js", - "collectorVersion": "1.0.1-limited-preview", + "collectorVersion": "1.0.2-limited-preview", "jsonVersion": "1.0.1", "contributors": [ { @@ -97,4 +97,4 @@ "LICENSE", "lib/" ] -} \ No newline at end of file +}