(value: string)
| 249 | : undefined; |
| 250 | |
| 251 | const redactAuthQueryParams = (value: string): string => |
| 252 | value |
| 253 | /** |
| 254 | * Fail closed for auth logs by replacing complete query strings. |
| 255 | * This avoids relying on an allowlist of sensitive key names. |
| 256 | */ |
| 257 | .replace(/\?[^#\s]*/g, "?[REDACTED_QUERY]"); |
| 258 | |
| 259 | const sanitizeProxyLogArgs = (args: unknown[]): unknown[] => |
| 260 | args.map((arg) => |
no test coverage detected