
    G%@i3
                     ,    d dl mZmZ  G d dee      Zy)    )PluginRedHatPluginc                   0    e Zd ZdZdZdZdZdZdZd Z	d Z
y	)
AAPGatewayPluginzAAP Gateway pluginaap_gateway)sysmgmtansible)automation-gatewayzautomation-gateway-config)zaap-gateway-manage)r
   c                     | j                  g d       | j                  g d       | j                  g d       | j                  dd       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 --listzaap-gateway-manage --versionz!/etc/ansible-automation-platform/T)	recursive)add_copy_specadd_forbidden_pathadd_cmd_outputadd_dir_listing)selfs    @/usr/lib/python3/dist-packages/sos/report/plugins/aap_gateway.pysetupzAAPGatewayPlugin.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   postproczAAPGatewayPlugin.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-4r   r   N)sos.report.pluginsr   r   r   r%   r   r   <module>r'      s    49v| 9r   