mirror of
https://github.com/aclist/dztui.git
synced 2026-10-31 07:02:50 +01:00
chore: add log redaction test
This commit is contained in:
1 parent
d75f87768e
commit
9fa7172056
2 files changed
+56
No files matched your search
@@ -3,6 +3,7 @@ import re
|
||||
from typing import Literal
|
||||
|
||||
api_filter = r"(.*&key=)([^&]*)(.*)"
|
||||
# FIXME: handle whitespace after directory name ($HOME root)
|
||||
home_filter = r"(/home/)([^/]*)(.*)"
|
||||
REDACTED = r"\1REDACTED\3"
|
||||
REDACTION_PATTERNS = [api_filter, home_filter]
|
||||
|
||||
Reference in new issue
Block a user