관리-도구
편집 파일: vault.cpython-39.opt-1.pyc
a ����-�_g�����������������������@���s&���d�dl�mZmZ�G�dd��dee�ZdS�)�����)�Plugin�UbuntuPluginc�������������������@���s4���e�Zd�ZdZdZdZdZdZdZdd��Z dd ��Z d S�)�Vaultz�The Vault plugin collects the current status of the vault snap on a Ubuntu machine. It will collect logs from journal, vault status and configuration z3Manage access to secrets and protect sensitive data�vault)ZsysmgmtZsecurity)r���c�������������� ���C���s����d}|���|��z�t|ddd��b}|������D�]D}|s6q,|�d�}|d����dkr,|d��d �}|�jd d|id��q,W�d�����n1�s�0����Y��W�n:�ty��}�z"|��d |��d|�����W�Y�d�}~n d�}~0�0�d�S�)N� /var/snap/vault/common/vault.hcl�rzUTF-8)�encoding�=r����api_addr����z" zvault statusZ VAULT_ADDR)�envzCould not open conf file z: ) Z add_copy_spec�open�read� splitlines�split�stripZadd_cmd_output�IOErrorZ _log_error)�selfZ vault_cfg�cfile�line�wordsr ����error��r����</usr/lib/python3.9/site-packages/sos/report/plugins/vault.py�setup���s���� �*zVault.setupc�����������������C���s���|���ddd��d�S�)Nr���z(password\s?=\s?).*z\1******)Zdo_file_sub)r���r���r���r����postproc/���s �����zVault.postprocN)�__name__� __module__�__qualname__�__doc__Z short_descZplugin_nameZprofilesZservices�packager���r���r���r���r���r���r������s���r���N)Zsos.report.pluginsr���r���r���r���r���r���r����<module>���s���