Add holder_name as PII to redact function
This commit is contained in:
@@ -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
|
# 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
|
# names are too short or too specific to match as fragments ("pan" would
|
||||||
# catch "company").
|
# 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"}
|
_REDACT_EXACT = {"pan", "card_number", "cvv", "cvc", "holder_name"}
|
||||||
_REDACTED = "[REDACTED]"
|
_REDACTED = "[REDACTED]"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user