summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRageLtMan <rageltman [at] sempervictus>2023-11-04 09:45:15 -0400
committerRageLtMan <rageltman [at] sempervictus>2023-11-05 09:42:00 -0500
commit30eb308149f24b7f15aa3e40ced6918a8a3a04b8 (patch)
tree31b71b55d0a0a77381e1ed214b680d71e6ecd80f
parentd8a71978b4628e30b25346f4ff690e8705020408 (diff)
downloadvyos-1x-30eb308149f24b7f15aa3e40ced6918a8a3a04b8.tar.gz
vyos-1x-30eb308149f24b7f15aa3e40ced6918a8a3a04b8.zip
T5713: Strip string after "secret" in IPSEC config
Make "strip-private" strip the string after "secret"
-rwxr-xr-xsrc/helpers/strip-private.py1
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