diff options
author | RageLtMan <rageltman [at] sempervictus> | 2023-11-04 09:45:15 -0400 |
---|---|---|
committer | RageLtMan <rageltman [at] sempervictus> | 2023-11-05 09:42:00 -0500 |
commit | 30eb308149f24b7f15aa3e40ced6918a8a3a04b8 (patch) | |
tree | 31b71b55d0a0a77381e1ed214b680d71e6ecd80f /src/helpers | |
parent | d8a71978b4628e30b25346f4ff690e8705020408 (diff) | |
download | vyos-1x-30eb308149f24b7f15aa3e40ced6918a8a3a04b8.tar.gz vyos-1x-30eb308149f24b7f15aa3e40ced6918a8a3a04b8.zip |
T5713: Strip string after "secret" in IPSEC config
Make "strip-private" strip the string after "secret"
Diffstat (limited to 'src/helpers')
-rwxr-xr-x | src/helpers/strip-private.py | 1 |
1 files changed, 1 insertions, 0 deletions
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 |