summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRageLtMan <rageltman [at] sempervictus>2023-11-04 09:45:15 -0400
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2023-11-07 16:40:01 +0000
commit3e48e0cb95650b5fbd94e39fa78b002ebe468be3 (patch)
tree773f79210cd0f96674bbcc66fdecba5adcff723f
parent11ca0a12272a704ce5f04c0ff4c746f755a380f1 (diff)
downloadvyos-1x-3e48e0cb95650b5fbd94e39fa78b002ebe468be3.tar.gz
vyos-1x-3e48e0cb95650b5fbd94e39fa78b002ebe468be3.zip
T5713: Strip string after "secret" in IPSEC config
Make "strip-private" strip the string after "secret" (cherry picked from commit 30eb308149f24b7f15aa3e40ced6918a8a3a04b8)
-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