HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
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