From 30eb308149f24b7f15aa3e40ced6918a8a3a04b8 Mon Sep 17 00:00:00 2001 From: RageLtMan Date: Sat, 4 Nov 2023 09:45:15 -0400 Subject: T5713: Strip string after "secret" in IPSEC config Make "strip-private" strip the string after "secret" --- src/helpers/strip-private.py | 1 + 1 file changed, 1 insertion(+) (limited to 'src/helpers') diff --git a/src/helpers/strip-private.py b/src/helpers/strip-private.py index eb584edaf..9b2019817 100755 --- a/src/helpers/strip-private.py +++ b/src/helpers/strip-private.py @@ -119,6 +119,7 @@ if __name__ == "__main__": (True, re.compile(r'(shared-secret-key-file|ca-cert-file|cert-file|dh-file|key-file|client) (\S+)'), r'\1 xxxxxx'), # Strip IPSEC secrets (True, re.compile(r'pre-shared-secret \S+'), 'pre-shared-secret xxxxxx'), + (True, re.compile(r'\ssecret \S+'), ' secret xxxxxx'), # Strip OSPF md5-key (True, re.compile(r'md5-key \S+'), 'md5-key xxxxxx'), # Strip WireGuard private-key -- cgit v1.2.3