Add holder_name as PII to redact function

This commit is contained in:
Movses Aslanyan
2026-10-13 20:51:13 +03:30
parent 52a6d711a0
commit 560e3afa0e
+1 -1
View File
@@ -41,7 +41,7 @@ def _add_trace_context(logger, method_name, event_dict):
# Fragments match anywhere in the key (db_password, refresh_token); the exact
# names are too short or too specific to match as fragments ("pan" would
# catch "company").
_REDACT_FRAGMENTS = ("password", "passwd", "secret", "token", "authorization", "cookie", "api_key")
_REDACT_FRAGMENTS = ("password", "passwd", "secret", "token", "authorization", "cookie", "api_key", "holder_name")
_REDACT_EXACT = {"pan", "card_number", "cvv", "cvc", "holder_name"}
_REDACTED = "[REDACTED]"