@contrast/config 1.23.0 → 1.24.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/index.d.ts CHANGED
@@ -264,11 +264,22 @@ export interface Config {
264
264
  */
265
265
  session_id: string | null;
266
266
 
267
+ /**
268
+ * How to report the application's group for auto-grouping
269
+ */
270
+ group: string | null;
271
+
272
+ /**
273
+ * Comma-separated list of key=value pairs that are applied to each application reported by the agent.
274
+ */
275
+ metadata: string | null;
276
+
267
277
  /**
268
278
  * Provide metadata used to create a new session within Contrast UI.
269
279
  * Default: `null`
270
280
  */
271
281
  session_metadata: string | null;
282
+
272
283
  };
273
284
 
274
285
  /** Reported server information overrides */
package/lib/options.js CHANGED
@@ -576,6 +576,16 @@ Example - \`label1, label2, label3\``,
576
576
  default: null,
577
577
  desc: 'Provide metadata which is used to create a new session ID in the Contrast UI. Vulnerabilities discovered by the agent are associated with this new session. This value should be formatted as `key=value` pairs (conforming to RFC 2253). Available key names for this configuration are branchName, buildNumber, commitHash, committer, gitTag, repository, testRun, and version. This option and `application.session_id` are mutually exclusive; if both are set the agent will be disabled.',
578
578
  },
579
+ {
580
+ name: 'application.group',
581
+ arg: '<tags>',
582
+ desc: "how to report the application's group for auto-grouping",
583
+ },
584
+ {
585
+ name: 'application.metadata',
586
+ args: '<metadata>',
587
+ desc: 'comma-separated list of key=value pairs that are applied to each application reported by the agent.',
588
+ },
579
589
  // server
580
590
  {
581
591
  name: 'server.name',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrast/config",
3
- "version": "1.23.0",
3
+ "version": "1.24.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)",
@@ -17,7 +17,7 @@
17
17
  "test": "../scripts/test.sh"
18
18
  },
19
19
  "dependencies": {
20
- "@contrast/common": "1.16.0",
20
+ "@contrast/common": "1.17.0",
21
21
  "yaml": "^2.2.2"
22
22
  }
23
23
  }