chore: add log redaction test

This commit is contained in:
aclist committed 2026-07-04 13:18:44 +09:00
1 parent d75f87768e
commit 9fa7172056
2 files changed
+56

No files matched your search

+1
View File
@@ -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]