diff --git a/benchmark/mobilemem/_audit.py b/benchmark/mobilemem/_audit.py index 68e9509d..61d61635 100644 --- a/benchmark/mobilemem/_audit.py +++ b/benchmark/mobilemem/_audit.py @@ -13,7 +13,7 @@ USAGE_POLICY = { "means": "observed run cost amortized over scheduled users / expected questions, not successful samples", } _SENSITIVE = re.compile( - r"authorization|credential|secret|password|api.?key|cookie|headers|" + r"authorization|credential|secret|password|api.?key|private[_-]?key|cookie|headers|" r"(?:^|[_-])(?:access[_-]?token|refresh[_-]?token|id[_-]?token|token)$", re.I, ) @@ -38,7 +38,7 @@ def safe_text(value, limit: int = 1200) -> str: text = re.sub(r"(?