a Ö>ïh ã@s&ddlmZmZGdd„deeƒZdS)é)ÚPluginÚ RedHatPluginc@s4eZdZdZdZdZdZdZdZdd„Z d d „Z d S) ÚAAPGatewayPluginzAAP Gateway pluginZ aap_gateway)ZsysmgmtZansible)úautomation-gatewayzautomation-gateway-config)zaap-gateway-manage)rcCs<| gd¢¡| gd¢¡| gd¢¡|jddddS)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_serviceszaap-gateway-manage --versionz!/etc/ansible-automation-platform/T)Ú recursive)Z add_copy_specZadd_forbidden_pathZadd_cmd_outputZadd_dir_listing)Úself©r úB/usr/lib/python3.9/site-packages/sos/report/plugins/aap_gateway.pyÚsetups ÿzAAPGatewayPlugin.setupcCs>d}d}| d||¡d}| d|d¡d}| d|d¡dS) Nz&(DATABASE_PASSWORD)(\s*)(=|:)(\s*)(.*)z\1\2\3\4********z4/etc/ansible-automation-platform/gateway/settings.pyz8((["\']?PASSWORD["\']?\s*[:=]\s*)[rb]?["\'])(.*?)(["\'])rz\1**********\4z-((SECRET_KEY\s*=\s*)([rb]?["\']))(.*?)(["\'])z\1**********\5)Zdo_path_regex_subZdo_cmd_output_sub)rZjregÚreplr r r Úpostproc2s&ýýýzAAPGatewayPlugin.postprocN) Ú__name__Ú __module__Ú __qualname__Z short_descZ plugin_nameZprofilesZpackagesZcommandsZservicesr r r r r r rsrN)Zsos.report.pluginsrrrr r r r Ú s