@contrast/config 1.18.1 → 1.20.0
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/lib/common.js +2 -0
- package/lib/index.js +1 -1
- package/lib/options.js +33 -0
- package/package.json +1 -1
package/lib/common.js
CHANGED
|
@@ -75,6 +75,8 @@ const mappings = {
|
|
|
75
75
|
'agent.security_logger.syslog.severity_blocked': (remoteData) => remoteData.security_logger?.syslog?.severity_blocked?.toLowerCase(),
|
|
76
76
|
'agent.security_logger.syslog.severity_probed': (remoteData) => remoteData.security_logger?.syslog?.severity_probed?.toLowerCase(),
|
|
77
77
|
// application settings
|
|
78
|
+
'assess.enable': (remoteData) => remoteData.assess?.enable,
|
|
79
|
+
'protect.enable': (remoteData) => remoteData.protect?.enable,
|
|
78
80
|
'protect.rules.cmd-injection.mode': protectModeReader(CMD_INJECTION),
|
|
79
81
|
'protect.rules.cmd-injection-command-backdoors.mode': protectModeReader(CMD_INJECTION_COMMAND_BACKDOORS),
|
|
80
82
|
'protect.rules.cmd-injection-semantic-chained-commands.mode': protectModeReader(CMD_INJECTION_SEMANTIC_CHAINED_COMMANDS),
|
package/lib/index.js
CHANGED
package/lib/options.js
CHANGED
|
@@ -214,6 +214,39 @@ const options = [
|
|
|
214
214
|
fn: castBoolean,
|
|
215
215
|
desc: 'Defaults to `true`. Controls whether configuration setting reports are sent to the Contrast web interface.',
|
|
216
216
|
},
|
|
217
|
+
// agent.heap_dump
|
|
218
|
+
{
|
|
219
|
+
name: 'agent.heap_dump.enable',
|
|
220
|
+
arg: '[true]',
|
|
221
|
+
fn: castBoolean,
|
|
222
|
+
default: false,
|
|
223
|
+
desc: 'Set to \'true\' for the agent to automatically take heap dumps of the instrumented application.',
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
name: 'agent.heap_dump.path',
|
|
227
|
+
arg: '<path>',
|
|
228
|
+
default: 'contrast_heap_dumps',
|
|
229
|
+
desc: "Set the location to which to save the heap dump files. If relative, the path is determined based on the process' working directory.",
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
name: 'agent.heap_dump.delay_ms',
|
|
233
|
+
arg: '<time>',
|
|
234
|
+
default: 10000,
|
|
235
|
+
desc: 'Set the amount of time to wait, in milliseconds, after agent startup to begin taking heap dumps.',
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
name: 'agent.heap_dump.window_ms',
|
|
239
|
+
arg: '<number>',
|
|
240
|
+
default: 10000,
|
|
241
|
+
desc: 'Set the amount of time to wait, in milliseconds, between each heap dump.',
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
name: 'agent.heap_dump.count',
|
|
245
|
+
arg: '<number>',
|
|
246
|
+
default: 5,
|
|
247
|
+
desc: 'Set the number of heap dumps to take before disabling this feature.',
|
|
248
|
+
},
|
|
249
|
+
|
|
217
250
|
// agent.polling
|
|
218
251
|
{
|
|
219
252
|
name: 'agent.polling.app_activity_ms',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contrast/config",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.20.0",
|
|
4
4
|
"description": "An API for discovering Contrast agent configuration data",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"author": "Contrast Security <nodejs@contrastsecurity.com> (https://www.contrastsecurity.com)",
|