Ë
    i©¹d  ã                   ó,   — d dl mZmZ  G d„ dee«      Zy)é    )ÚPluginÚUbuntuPluginc                   ó0   — e Zd ZdZdZdZdZdZdZd„ 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                  «       dk(  sŒ.|d   j                  d«      }| j                  dd	|i¬
«       ŒX 	 d d d «       y # 1 sw Y   y xY w# t        $ r!}| j                  d|›d|›�«       Y d }~y d }~ww xY w)Nú /var/snap/vault/common/vault.hclÚrú=r   Úapi_addré   z" zvault statusÚ
VAULT_ADDR)ÚenvzCould 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ÚsetupzVault.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/ ¡AB#Á.+B#ÂB/ Â#B,Â(B/ Â,B/ Â/	CÂ8CÃCc                 ó*   — | j                  ddd«       y )Nr   z(password\s?=\s?).*z\1******)Údo_file_sub)r   s    r!   ÚpostproczVault.postproc0   s   € Ø×ÑØ.Ø"Øõ	
ó    N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú
short_descÚplugin_nameÚprofilesÚservicesÚpackager"   r%   © r&   r!   r   r      s-   „ ñð G€Jà€KØ&€HØ€HØ€Gò0ó(
r&   r   N)Úsos.report.pluginsr   r   r   r0   r&   r!   ú<module>r2      s   ð÷ 4ô'
ˆF�Lõ '
r&   