Check if a field/key name is sensitive and should be redacted.
Algorithm (4 steps):
The field name to check
true if the key should be redacted
isSensitiveKey('password') // trueisSensitiveKey('api_key') // trueisSensitiveKey('keyboard') // false (blocklisted)isSensitiveKey('monkey') // false (blocklisted)isSensitiveKey('monkey_password') // true ("password" is genuine) Copy
isSensitiveKey('password') // trueisSensitiveKey('api_key') // trueisSensitiveKey('keyboard') // false (blocklisted)isSensitiveKey('monkey') // false (blocklisted)isSensitiveKey('monkey_password') // true ("password" is genuine)
Check if a field/key name is sensitive and should be redacted.
Algorithm (4 steps):