MCPcopy
hub / github.com/simstudioai/sim / isSensitiveKey

Function isSensitiveKey

apps/sim/lib/core/security/redaction.ts:72–78  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

70]
71
72export function isSensitiveKey(key: string): boolean {
73 if (BYPASS_REDACTION_KEYS.has(key)) {
74 return false
75 }
76 const lowerKey = key.toLowerCase()
77 return SENSITIVE_KEY_PATTERNS.some((pattern) => pattern.test(lowerKey))
78}
79
80/**
81 * Redacts sensitive patterns from a string value

Callers 4

redaction.test.tsFile · 0.90
route.tsFile · 0.90
redactApiKeysFunction · 0.85
sanitizeEventDataFunction · 0.85

Calls 1

testMethod · 0.80

Tested by

no test coverage detected