@newrelic/security-agent 2.3.0 → 2.3.2
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 +12 -0
- package/README.md +2 -0
- package/THIRD_PARTY_NOTICES.md +1 -50
- package/lib/nr-security-agent/lib/core/sec-util.js +1 -1
- package/package.json +2 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
### v2.3.2 (2025-03-11)
|
|
2
|
+
#### Bug fixes
|
|
3
|
+
* Updated axios to v1.8.2
|
|
4
|
+
#### Miscellaneous chores
|
|
5
|
+
* Updated readme
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### v2.3.1 (2025-02-04)
|
|
9
|
+
#### Bug fixes
|
|
10
|
+
* Removed docker-cli-js dependency and updated mongodb unit test case (#283)
|
|
11
|
+
* Added safety check for agentModule before accessing its properties (#284)
|
|
12
|
+
|
|
1
13
|
### v2.3.0 (2025-02-03)
|
|
2
14
|
#### Features
|
|
3
15
|
* Added Support for VM module
|
package/README.md
CHANGED
|
@@ -51,6 +51,7 @@ The [Developer docs](http://newrelic.github.io/node-newrelic/) for writing instr
|
|
|
51
51
|
- `https`
|
|
52
52
|
- `fs`
|
|
53
53
|
- `child_process`
|
|
54
|
+
- `vm`
|
|
54
55
|
- [mysql](https://www.npmjs.com/package/mysql)(2.16.x and above)
|
|
55
56
|
- [mysql2](https://www.npmjs.com/package/mysql2) (2.x and above)
|
|
56
57
|
- [pg](https://www.npmjs.com/package/pg)(7.x and above)
|
|
@@ -68,6 +69,7 @@ The [Developer docs](http://newrelic.github.io/node-newrelic/) for writing instr
|
|
|
68
69
|
- [xpath](https://www.npmjs.com/package/xpath)(0.0.20 and above)
|
|
69
70
|
- [xpath.js](https://www.npmjs.com/package/xpath.js)(0.0.1 and above)
|
|
70
71
|
- [undici](https://www.npmjs.com/package/undici)(4.7.0 and above)
|
|
72
|
+
- [next](https://www.npmjs.com/package/next)(13.4.19 and above)
|
|
71
73
|
|
|
72
74
|
For more information, please see New Relic Node.js agent [compatibility and requirements](https://docs.newrelic.com/docs/apm/agents/nodejs-agent/getting-started/compatibility-requirements-nodejs-agent/).
|
|
73
75
|
|
package/THIRD_PARTY_NOTICES.md
CHANGED
|
@@ -18,7 +18,6 @@ code, the source code can be found at [https://github.com/newrelic/csec-node-age
|
|
|
18
18
|
* [check-disk-space](#check-disk-space)
|
|
19
19
|
* [content-type](#content-type)
|
|
20
20
|
* [cron](#cron)
|
|
21
|
-
* [docker-cli-js](#docker-cli-js)
|
|
22
21
|
* [fast-safe-stringify](#fast-safe-stringify)
|
|
23
22
|
* [find-package-json](#find-package-json)
|
|
24
23
|
* [hash.js](#hashjs)
|
|
@@ -60,7 +59,6 @@ code, the source code can be found at [https://github.com/newrelic/csec-node-age
|
|
|
60
59
|
* [eslint-plugin-promise](#eslint-plugin-promise)
|
|
61
60
|
* [eslint-plugin-sonarjs](#eslint-plugin-sonarjs)
|
|
62
61
|
* [koa](#koa)
|
|
63
|
-
* [mongodb-memory-server](#mongodb-memory-server)
|
|
64
62
|
* [mongodb](#mongodb)
|
|
65
63
|
* [mongodb](#mongodb)
|
|
66
64
|
* [mongodb](#mongodb)
|
|
@@ -80,7 +78,7 @@ code, the source code can be found at [https://github.com/newrelic/csec-node-age
|
|
|
80
78
|
|
|
81
79
|
### axios
|
|
82
80
|
|
|
83
|
-
This product includes source derived from [axios](https://github.com/axios/axios) ([v1.
|
|
81
|
+
This product includes source derived from [axios](https://github.com/axios/axios) ([v1.8.2](https://github.com/axios/axios/tree/v1.8.2)), distributed under the [MIT License](https://github.com/axios/axios/blob/v1.8.2/LICENSE):
|
|
84
82
|
|
|
85
83
|
```
|
|
86
84
|
# Copyright (c) 2014-present Matt Zabriskie & Collaborators
|
|
@@ -166,36 +164,6 @@ The above copyright notice and this permission notice shall be included in all c
|
|
|
166
164
|
|
|
167
165
|
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
168
166
|
|
|
169
|
-
```
|
|
170
|
-
|
|
171
|
-
### docker-cli-js
|
|
172
|
-
|
|
173
|
-
This product includes source derived from [docker-cli-js](https://github.com/Quobject/docker-cli-js) ([v2.10.0](https://github.com/Quobject/docker-cli-js/tree/v2.10.0)), distributed under the [MIT License](https://github.com/Quobject/docker-cli-js/blob/v2.10.0/LICENSE):
|
|
174
|
-
|
|
175
|
-
```
|
|
176
|
-
The MIT License (MIT)
|
|
177
|
-
|
|
178
|
-
Copyright (c) 2016 Matthias Ludwig (mludwig@quobject.io)
|
|
179
|
-
|
|
180
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
181
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
182
|
-
in the Software without restriction, including without limitation the rights
|
|
183
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
184
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
185
|
-
furnished to do so, subject to the following conditions:
|
|
186
|
-
|
|
187
|
-
The above copyright notice and this permission notice shall be included in
|
|
188
|
-
all copies or substantial portions of the Software.
|
|
189
|
-
|
|
190
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
191
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
192
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
193
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
194
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
195
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
196
|
-
THE SOFTWARE.
|
|
197
|
-
|
|
198
|
-
|
|
199
167
|
```
|
|
200
168
|
|
|
201
169
|
### fast-safe-stringify
|
|
@@ -1905,23 +1873,6 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
1905
1873
|
|
|
1906
1874
|
```
|
|
1907
1875
|
|
|
1908
|
-
### mongodb-memory-server
|
|
1909
|
-
|
|
1910
|
-
This product includes source derived from [mongodb-memory-server](https://github.com/nodkz/mongodb-memory-server) ([v8.11.2](https://github.com/nodkz/mongodb-memory-server/tree/v8.11.2)), distributed under the [MIT License](https://github.com/nodkz/mongodb-memory-server/blob/v8.11.2/LICENSE.md):
|
|
1911
|
-
|
|
1912
|
-
```
|
|
1913
|
-
The MIT License (MIT)
|
|
1914
|
-
|
|
1915
|
-
Copyright (c) 2017-present Pavel Chertorogov
|
|
1916
|
-
|
|
1917
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
1918
|
-
|
|
1919
|
-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
1920
|
-
|
|
1921
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
1922
|
-
|
|
1923
|
-
```
|
|
1924
|
-
|
|
1925
1876
|
### mongodb
|
|
1926
1877
|
|
|
1927
1878
|
This product includes source derived from [mongodb](https://github.com/mongodb/node-mongodb-native) ([v2.2.36](https://github.com/mongodb/node-mongodb-native/tree/v2.2.36)), distributed under the [Apache-2.0 License](undefined):
|
|
@@ -196,7 +196,7 @@ function generateExitEvent(secEvent) {
|
|
|
196
196
|
|
|
197
197
|
function sendEvent(secEvent) {
|
|
198
198
|
const agentModule = Agent.getAgent();
|
|
199
|
-
if (agentModule.status.getStatus() != 'connecting' && NRAgent.config.security.enabled && agentModule.status.getStatus() == 'active') {
|
|
199
|
+
if (agentModule && agentModule.status.getStatus() != 'connecting' && NRAgent.config.security.enabled && agentModule.status.getStatus() == 'active') {
|
|
200
200
|
agentModule.client.dispatcher(secEvent);
|
|
201
201
|
if (!firstEventSent && agentModule.status.getStatus() === 'active') {
|
|
202
202
|
if(commonUtils.trafficStartedTime == 0){
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@newrelic/security-agent",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.2",
|
|
4
4
|
"description": "New Relic Security Agent for Node.js",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"jsonVersion": "1.2.9",
|
|
@@ -39,11 +39,10 @@
|
|
|
39
39
|
"url": "https://github.com/newrelic/csec-node-agent.git"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"axios": "^1.
|
|
42
|
+
"axios": "^1.8.2",
|
|
43
43
|
"check-disk-space": "^3.4.0",
|
|
44
44
|
"content-type": "^1.0.5",
|
|
45
45
|
"cron": "^3.1.7",
|
|
46
|
-
"docker-cli-js": "^2.10.0",
|
|
47
46
|
"fast-safe-stringify": "^2.1.1",
|
|
48
47
|
"find-package-json": "^1.2.0",
|
|
49
48
|
"hash.js": "^1.1.7",
|
|
@@ -85,7 +84,6 @@
|
|
|
85
84
|
"eslint-plugin-sonarjs": "^0.15.0",
|
|
86
85
|
"koa": "^2.14.1",
|
|
87
86
|
"mongodb": "^4.13.0",
|
|
88
|
-
"mongodb-memory-server": "^8.11.2",
|
|
89
87
|
"mongodb2": "npm:mongodb@^2.2.36",
|
|
90
88
|
"mongodb3": "npm:mongodb@^3.7.3",
|
|
91
89
|
"newrelic": "^10.3.1",
|