mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Catch more secrets not redacted
This commit is contained in:
parent
d763247df4
commit
01058aca28
1 changed files with 1 additions and 1 deletions
|
@ -415,7 +415,7 @@ class RedactingFormatter(Formatter):
|
|||
# (the secret part being at least 3 chars to avoid catching some lines like just "db_pwd=")
|
||||
# Some names like "key" or "manifest_key" are ignored, used in helpers like ynh_app_setting_set or ynh_read_manifest
|
||||
match = re.search(
|
||||
r"(pwd|pass|password|secret|\w+key|token)=(\S{3,})$", record.strip()
|
||||
r"(pwd|pass|password|secret\w*|\w+key|token)=(\S{3,})$", record.strip()
|
||||
)
|
||||
if (
|
||||
match
|
||||
|
|
Loading…
Add table
Reference in a new issue