3 ܓi3 @s&ddlmZmZGdddeeZdS))Plugin RedHatPluginc@s4eZdZdZdZd ZdZdZdZdd Z d d Z d S)AAPGatewayPluginzAAP Gateway pluginZ aap_gatewaysysmgmtansibleautomation-gatewayautomation-gateway-configaap-gateway-managecCsL|jddddg|jdddg|jdd d d d d dg|jddddS)Nz/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/*.certz!automation-gateway-service statusz!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)Z add_copy_specZadd_forbidden_pathZadd_cmd_outputZadd_dir_listing)selfr !/usr/lib/python3.6/aap_gateway.pysetups&zAAPGatewayPlugin.setupcCs>d}d}|jd||d}|jd|dd}|jd|ddS) Nz(\s*'PASSWORD'\s*:\s*)('.*')z \1********z4/etc/ansible-automation-platform/gateway/settings.pyz8((["\']?PASSWORD["\']?\s*[:=]\s*)[rb]?["\'])(.*?)(["\'])z!aap-gateway-manage print_settingsz\1**********\4z-((SECRET_KEY\s*=\s*)([rb]?["\']))(.*?)(["\'])z\1**********\5)Zdo_path_regex_subZdo_cmd_output_sub)r Zjregreplr r r postproc3s zAAPGatewayPlugin.postprocN)rr)rr)r )r) __name__ __module__ __qualname__Z short_descZ plugin_nameZprofilesZpackagesZcommandsZservicesrrr r r r rsrN)Zsos.report.pluginsrrrr r r r  s