%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/sos/report/plugins/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/sos/report/plugins/__pycache__/vault.cpython-312.pyc

�

i��d��,�ddlmZmZGd�dee�Zy)�)�Plugin�UbuntuPluginc�0�eZdZdZdZdZdZdZdZd�Z	d�Z
y)	�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)�sysmgmt�security)rc��d}|j|�	t|d�5}|j�j�D]V}|s�|j	d�}|dj�dk(s�.|djd�}|j
dd	|i�
��X	ddd�y#1swYyxYw#t$r!}|jd|�d|���Yd}~yd}~wwxYw)
N� /var/snap/vault/common/vault.hcl�r�=r�api_addr�z" zvault status�
VAULT_ADDR)�envzCould not open conf file z: )	�
add_copy_spec�open�read�
splitlines�split�strip�add_cmd_output�IOError�
_log_error)�self�	vault_cfg�cf�line�wordsr�errors       �:/usr/lib/python3/dist-packages/sos/report/plugins/vault.py�setupzVault.setups���6�	����9�%�	0��i��%�
J���G�G�I�0�0�2�J�D�� � �J�J�s�O�E��Q�x�~�~�'�:�5�#(��8�>�>�%�#8���+�+�N�1=�x�0H�,�J�
J�
J�
J�
J���	0��O�O�&��/�
0�
0��	0�s;�B/�AB#�.+B#�B/�#B,�(B/�,B/�/	C�8C�Cc�*�|jddd�y)Nrz(password\s?=\s?).*z\1******)�do_file_sub)rs r!�postproczVault.postproc0s�����.�"��	
�N)�__name__�
__module__�__qualname__�__doc__�
short_desc�plugin_name�profiles�services�packager"r%�r&r!rrs-���G�J��K�&�H��H��G�0�(
r&rN)�sos.report.pluginsrrrr0r&r!�<module>r2s��4�'
�F�L�'
r&

Zerion Mini Shell 1.0