MCPcopy Create free account
hub / github.com/chartbrew/chartbrew / logOutboundSecurityEvent

Function logOutboundSecurityEvent

server/modules/outboundSecurityAudit.js:19–28  ·  view source on GitHub ↗
(payload)

Source from the content-addressed store, hash-verified

17}
18
19function logOutboundSecurityEvent(payload) {
20 const logPayload = {
21 event: "outbound_security_policy",
22 timestamp: new Date().toISOString(),
23 ...payload,
24 };
25
26 // Keep logs structured so they can be ingested in log pipelines.
27 console.warn(JSON.stringify(logPayload)); // oxlint-disable-line no-console
28}
29
30module.exports = {
31 incrementSecurityCounter,

Callers 1

createPolicyErrorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected