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

Function createPolicyLogPayload

server/modules/outboundTargetPolicy.js:210–220  ·  view source on GitHub ↗
(url, context, reason, extra = {})

Source from the content-addressed store, hash-verified

208}
209
210function createPolicyLogPayload(url, context, reason, extra = {}) {
211 return {
212 reason,
213 targetUrl: url,
214 source: context.source || "api_request",
215 teamId: context.teamId || null,
216 connectionId: context.connectionId || null,
217 userId: context.userId || null,
218 ...extra,
219 };
220}
221
222function createPolicyError(reason, message, url, context, extra = {}) {
223 incrementSecurityCounter("ssrf_blocked_total");

Callers 1

createPolicyErrorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected