(payload)
| 17 | } |
| 18 | |
| 19 | function 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 | |
| 30 | module.exports = { |
| 31 | incrementSecurityCounter, |