← Back
Editing: aap_gateway.cpython-312.opt-1.pyc
� ܓ�i3 � �, � d dl mZmZ G d� dee� Zy)� )�Plugin�RedHatPluginc �0 � e Zd ZdZdZdZdZdZdZd� Z d� Z y ) �AAPGatewayPluginzAAP Gateway plugin�aap_gateway)�sysmgmt�ansible)�automation-gatewayzautomation-gateway-config)zaap-gateway-manage)r c � � | j g d�� | j g d�� | j g d�� | j dd�� y )N)z/var/log/supervisorz /etc/ansible-automation-platformz/etc/supervisord.d/z-/var/log/ansible-automation-platform/gateway/)z3/etc/ansible-automation-platform/gateway/SECRET_KEYz./etc/ansible-automation-platform/gateway/*.keyz//etc/ansible-automation-platform/gateway/*.cert)z!automation-gateway-service status�!aap-gateway-manage print_settingsz!aap-gateway-manage authenticatorsz!aap-gateway-manage showmigrationsz aap-gateway-manage list_servicesz'aap-gateway-manage feature_flags --listzaap-gateway-manage --versionz!/etc/ansible-automation-platform/T)� recursive)� add_copy_spec�add_forbidden_path�add_cmd_output�add_dir_listing)�selfs �C/usr/lib/python3.12/site-packages/sos/report/plugins/aap_gateway.py�setupzAAPGatewayPlugin.setup sZ � ���� � � ��� ! � � ��� � � ���@�'+� � -� c � � d}d}| j d||� d}| j d|d� d}| j d|d� y ) Nz(\s*'PASSWORD'\s*:\s*)('.*')z \1********z4/etc/ansible-automation-platform/gateway/settings.pyz8((["\']?PASSWORD["\']?\s*[:=]\s*)[rb]?["\'])(.*?)(["\'])r z\1**********\4z-((SECRET_KEY\s*=\s*)([rb]?["\']))(.*?)(["\'])z\1**********\5)�do_path_regex_sub�do_cmd_output_sub)r �jreg�repls r �postproczAAPGatewayPlugin.postproc3 sa � �.�������B��� � K�����/��� � @�����/��� r N)�__name__� __module__�__qualname__� short_desc�plugin_name�profiles�packages�commands�servicesr r � r r r r s, � �%�J��K�&�H�-�H�&�H�&�H�-�4r r N)�sos.report.pluginsr r r r% r r �<module>r'