Skip to content

Commit

Permalink
Host fix (#28)
Browse files Browse the repository at this point in the history
* fix for fuzz host

* version update
  • Loading branch information
sumitsuthar committed May 18, 2023
1 parent e276734 commit 448b76b
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 8 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/nr-security-agent/lib/core/commonUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -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": [
{
Expand Down Expand Up @@ -97,4 +97,4 @@
"LICENSE",
"lib/"
]
}
}

0 comments on commit 448b76b

Please sign in to comment.