MCPcopy Index your code
hub / github.com/simstudioai/sim / redactSensitiveValues

Function redactSensitiveValues

apps/sim/lib/core/security/redaction.ts:85–95  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

83 * @returns The string with sensitive patterns redacted
84 */
85export function redactSensitiveValues(value: string): string {
86 if (!value || typeof value !== 'string') {
87 return value
88 }
89
90 let result = value
91 for (const { pattern, replacement } of SENSITIVE_VALUE_PATTERNS) {
92 result = result.replace(pattern, replacement)
93 }
94 return result
95}
96
97export function isLargeDataKey(key: string): boolean {
98 return LARGE_DATA_KEYS.has(key)

Callers 3

redaction.test.tsFile · 0.90
sanitizeForLoggingFunction · 0.85
sanitizeEventDataFunction · 0.85

Calls 1

replaceMethod · 0.65

Tested by

no test coverage detected