Files
VPNaaS-Migrator/ipsec_migrator/__pycache__/redact.cpython-311.pyc
T

29 lines
1.6 KiB
Plaintext
Raw Normal View History

2026-07-21 15:05:52 +03:00
§
Ð_jãó4dZddlmZddlmZdhZdZd d „Zd
S) aFPSK redaction for safe logging.
Walks any nested dict/list structure and blanks out the value of any dict
key literally named "psk" (Neutron's and Sprut's shared field name) when
that value is not null. Used only for logging -- the real value is always
used wherever the original object is read for actual API calls/storage.
é)Ú annotations)ÚAnyÚpskz***REDACTED***ÚvaluerÚreturncó®t|t¦«rd| ¦«D¦«St|t¦«r d|D¦«S|S)NcóXi|]'\}}||tvr |tnt|¦«Œ(S)N)Ú _PSK_KEYSÚ _REDACTEDÚ
redact_psk)Ú.0ÚkeyÚvals ú-/root/vkcloud/vpnaas/ipsec_migrator/redact.pyú
<dictcomp>zredact_psk.<locals>.<dictcomp>sGð
ð
ð
á
˜s¥iÐ/°C°O•)ÐTWÉÌð
ð
ð
ócó,g|]}t|¦«ŒS©)r )r
Úitems rú
<listcomp>zredact_psk.<locals>.<listcomp>s Ð3 T•
˜4Ñ Ô Ð3r)Ú
isinstanceÚdictÚitemsÚlist)rs rr r sjÝ%ÑÔð
ð
ð
à!ŸKšK™MœMð
ñ
ô
ð
õ%ÑÔð3¨UÐ €LrN)rrrr)Ú__doc__Ú