HEX
Server: Apache
System: Linux 185.122.168.184.host.secureserver.net 5.14.0-570.60.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Nov 5 05:00:59 EST 2025 x86_64
User: barbeatleanalyti (1024)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //lib/python3.9/site-packages/sos/report/plugins/__pycache__/rhui_containerized.cpython-39.pyc
a

\��h��@s.ddlZddlmZmZGdd�dee�ZdS)�N)�Plugin�RedHatPluginc@s,eZdZdZdZdZdZdd�Zdd�Zd	S)
�
RhuiContainerz+Red Hat Update Infrastructure in ContainersZrhui_containerized)Z	rhui_rhua)�)/var/lib/rhui/config/rhua/rhui-tools.confc
Cs
|�gd��|�d�d}dD]2}d|�dd���}|j|�d|��dd	|d
�q |jddd
�d}|jd|��ddd�|jd|�d�dd�}|ddkr�|d��}t�|d�}t�|d�}|j|ddd�|j|ddd�dD]}	|j|�d|	��ddd�q�dS)N)rz7/var/lib/rhui/config/rhua/registered_subscriptions.confz/var/lib/rhui/pki/*z/var/lib/rhui/cache/*z/var/lib/rhui/root/.rhui/*z/var/lib/rhui/log/*z/var/lib/rhui/pki/**/*.keyz4podman exec rhui5-rhua rhui-manager --noninteractive)�statusz	cert infoz
rhui-manager_� �_Zrhuiz
/var/lib/rhui)�runasZrunatZsuggest_filenamez/var/lib/rhui/remote_shareT)�	recursivez/var/lib/pgsqlzdu -sh z
rhui5-rhua)�	containerr	zpodman exec rhui5-rhua find z/data)r	rr�outputz*.logz*.conf)Z
PG_VERSIONzpostmaster.optsz/data/)	Z
add_copy_specZadd_forbidden_path�replaceZadd_cmd_outputZadd_dir_listingZexec_cmd�
splitlines�fnmatch�filter)
�selfZ
rhui_cont_exeZsubcmdZ
suggest_fnameZpghomeZpodman_findZallfilesZlogfilesZconfigs�file�r�I/usr/lib/python3.9/site-packages/sos/report/plugins/rhui_containerized.py�setups<	
�����zRhuiContainer.setupcCs2|�ddd�dD]}|�dd|�d�d�qdS)	Nrz(.+_pass(word|):)\s*(.+)z\1 ********)Z	csrftokenZ	sessionidz(/var/lib/rhui/root/\.rhui/.*/cookies.txt�(z	\s+)(\S+)z
\1********)Zdo_path_regex_sub)rZcookierrr�postprocHs�
�zRhuiContainer.postprocN)	�__name__�
__module__�__qualname__Z
short_descZplugin_nameZservices�filesrrrrrrrs1r)rZsos.report.pluginsrrrrrrr�<module>s