MCPcopy Create free account
hub / github.com/promptfoo/promptfoo / isSensitiveFetchCacheString

Function isSensitiveFetchCacheString

src/cache.ts:318–320  ·  view source on GitHub ↗
(value: string, fieldName?: string)

Source from the content-addressed store, hash-verified

316}
317
318function isSensitiveFetchCacheString(value: string, fieldName?: string) {
319 return (fieldName && isSecretField(fieldName)) || looksLikeSecret(value);
320}
321
322function getStringForFetchCacheKey(value: string, fieldName?: string): unknown {
323 if (isSensitiveFetchCacheString(value, fieldName)) {

Callers 3

hasSensitiveJsonValueFunction · 0.85
hasSensitiveSearchParamFunction · 0.85

Calls 2

isSecretFieldFunction · 0.90
looksLikeSecretFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…