Server IP : 15.235.198.142 / Your IP : 216.73.216.190 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ballsack 6.8.0-45-generic #45-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 30 12:02:04 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/sos/report/plugins/__pycache__/ |
Upload File : |
� i��d � �, � d dl mZmZ G d� dee� Zy)� )�Plugin�UbuntuPluginc �0 � e Zd ZdZdZdZdZdZdZd� 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)r c � � d}| j |� t |d� 5 }|j � j � D ]V }|s�|j d� }|d j � dk( s�.|d j d� }| j dd |i� � �X d d d � y # 1 sw Y y xY w# t $ r!}| j d|�d|��� Y d }~y d }~ww xY w) N� /var/snap/vault/common/vault.hcl�r�=r �api_addr� z" zvault 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.setup s� � �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/ �AB#�.+B#�B/ �#B,�(B/ �,B/ �/ C�8C�Cc �* � | j ddd� y )Nr z(password\s?=\s?).*z\1******)�do_file_sub)r s r! �postproczVault.postproc0 s � ����.�"�� � N)�__name__� __module__�__qualname__�__doc__� short_desc�plugin_name�profiles�services�packager"