U
    -_g                     @   s&   d dl mZmZ G dd deeZdS )    )PluginIndependentPluginc                   @   s,   e Zd ZdZdZdZdZdd Zdd Zd	S )
	VectorDevz+A tool for building observability pipelinesZ	vectordev)Zobservability)/etc/vector/c                 C   s   |  dg d S )Nr   )Zadd_copy_spec)self r   >/usr/lib/python3/dist-packages/sos/report/plugins/vectordev.pysetup   s    zVectorDev.setupc                 C   s@   d}dddg}dd | d}d}| ||| | | d S )	Nz/etc/vector/*zauth.passwordz
auth.tokenztls.key_passz(^\s*(|z)\s*(:|=)\s*)(.*)z\1*********)joinZdo_path_regex_subZdo_file_private_sub)r   Zvector_config_pathZprotect_keysZ
keys_regexZ	sub_regexr   r   r   postproc   s    zVectorDev.postprocN)	__name__
__module____qualname__Z
short_descZplugin_nameZprofilesfilesr	   r   r   r   r   r   r      s   r   N)Zsos.report.pluginsr   r   r   r   r   r   r   <module>	   s   