@contrast/reporter
Advanced tools
Comparing version 1.19.0 to 1.20.0
@@ -35,3 +35,3 @@ "use strict"; | ||
}), | ||
...this.core.getEffectiveConfig(true) | ||
...this.core.config.getReport({ redact: true }) | ||
}); | ||
@@ -38,0 +38,0 @@ } |
@@ -86,4 +86,14 @@ "use strict"; | ||
}); | ||
// NODE-3136 | ||
// this.reporter.subscribeWithLock(Event.ASSESS_SESSION_CONFIGURATION_FINDING, (msg) => {}); | ||
this.reporter.subscribeWithLock(common_1.Event.ASSESS_SESSION_CONFIGURATION_FINDING, (msg) => { | ||
const { ruleId, sinkEvent } = msg; | ||
const store = this.getStore(msg); | ||
if (!store) | ||
return; | ||
this.getAccum(store).messages.push({ | ||
events: tx.getTraceEvents(sinkEvent), | ||
properties: sinkEvent.properties, | ||
ruleId, | ||
time: Date.now(), | ||
}); | ||
}); | ||
this.reporter.subscribeWithLock(common_1.Event.RESPONSE_FINISH, (store) => { | ||
@@ -90,0 +100,0 @@ const { route } = store; |
@@ -79,9 +79,14 @@ "use strict"; | ||
this.version = core.protect?.version || ''; | ||
function setterFn(target, name, value) { | ||
(0, common_1.set)(target, name, value); | ||
target._flat[name] = value; | ||
target._sources[name] = 'CONTRAST_UI'; | ||
} | ||
core.messages.on(common_1.Event.SERVER_SETTINGS_UPDATE, (msg) => { | ||
Object.assign(this.loggerConfig.syslog, (0, common_1.mergeRemoteData)(this.config, msg, common_1.featureReaders, setterFn).agent.security_logger.syslog); | ||
core.messages?.on?.(common_1.Event.SERVER_SETTINGS_UPDATE, () => { | ||
[ | ||
'syslog.enable', | ||
'syslog.ip', | ||
'syslog.port', | ||
'syslog.facility', | ||
'syslog.severity_exploited', | ||
'syslog.severity_blocked', | ||
'syslog.severity_probed', | ||
].forEach((name) => { | ||
(0, common_1.set)(this.loggerConfig, name, core.config.getEffectiveValue(`agent.security_logger.${name}`)); | ||
}); | ||
}); | ||
@@ -88,0 +93,0 @@ } |
{ | ||
"name": "@contrast/reporter", | ||
"version": "1.19.0", | ||
"version": "1.20.0", | ||
"description": "Subscribes to agent messages and reports them", | ||
@@ -11,2 +11,3 @@ "license": "SEE LICENSE IN LICENSE", | ||
"main": "lib/index.js", | ||
"types": "lib/index.d.ts", | ||
"engines": { | ||
@@ -21,3 +22,3 @@ "npm": ">=6.13.7 <7 || >= 8.3.1", | ||
"dependencies": { | ||
"@contrast/common": "1.14.0", | ||
"@contrast/common": "1.15.0", | ||
"axios": "^0.27.2", | ||
@@ -29,2 +30,2 @@ "crc-32": "^1.2.2", | ||
} | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
202333
2839
+ Added@contrast/common@1.15.0(transitive)
- Removed@contrast/common@1.14.0(transitive)
Updated@contrast/common@1.15.0