MCPcopy Create free account
hub / github.com/anomalyco/opencode / isSensitiveHeaderName

Function isSensitiveHeaderName

packages/llm/src/route/executor.ts:56–56  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

54const REDACT_QUERY_FIELD = new RegExp(`((?:${SENSITIVE_BODY_FIELD.source})=)[^&\\s"]+`, "gi")
55
56const isSensitiveHeaderName = (name: string) => SENSITIVE_NAME.test(name)
57
58const isSensitiveQueryName = (name: string) => isSensitiveHeaderName(name) || SHORT_QUERY_NAME.test(name)
59

Callers 2

isSensitiveQueryNameFunction · 0.85
secretValuesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected