403Webshell
Server IP : 77.50.203.18  /  Your IP : 192.168.0.10
Web Server : Apache/2.4.62 (CentOS Stream) OpenSSL/3.5.7 mpm-itk/2.4.7-04 PHP/8.4.23
System : Linux web2 5.14.0-722.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Jul 6 09:07:51 UTC 2026 x86_64
User : warsnews.ru ( 1001)
PHP Version : 8.4.23
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/python3.9/site-packages/sos/report/plugins/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3.9/site-packages/sos/report/plugins/__pycache__/openstack_keystone.cpython-39.pyc
a

ܓ�i�@s^ddlZddlmZmZmZmZmZGdd�de�ZGdd�deee�ZGdd�dee�Z	dS)	�N)�Plugin�RedHatPlugin�DebianPlugin�UbuntuPlugin�	PluginOptc@sLeZdZdZdZdZedddd�gZdZd	Z	d
Z
dd�Zd
d�Zdd�Z
d	S)�OpenStackKeystonezOpenStack KeystoneZopenstack_keystone)Z	openstackZopenstack_controllerZnopwTz!do not collect keystone passwords)�defaultZdescz./var/lib/config-data/puppet-generated/keystoneN�cCs&|�dddd|jd|jd|jd|jd|jd	|jd
|jdg�|�d�rn|�d
d|j�d�g�n|�dd|j�d�g�|�d�}|d|_|ddks�|�|j�s�d|_|�|j�dd�dD�}dd�dD�}t|�r�t|�s�|j	�
d�n|�d�|�d�|�dd d!��dS)"Nz'/etc/keystone/default_catalog.templatesz/etc/keystone/keystone.confz/etc/keystone/logging.confz/etc/keystone/policy.jsonz/etc/keystone/*.confz/etc/keystone/*.jsonz/etc/httpd/conf/�/etc/httpd/conf.d/z /etc/httpd/conf.modules.d/*.confz/var/spool/cron/z/etc/my.cnf.d/tripleo.cnfZall_logsz/var/log/keystone/z	/var/log/z*/keystone*z/var/log/keystone/*.logz*/keystone*.logzDcrudini --get /etc/keystone/keystone.conf identity domain_config_dir�output�statusrz/etc/keystone/domainscSsg|]}|tjv�qS���os�environ��.0�pr
r
�I/usr/lib/python3.9/site-packages/sos/report/plugins/openstack_keystone.py�
<listcomp>D�z+OpenStackKeystone.setup.<locals>.<listcomp>)ZOS_USERNAMEZOS_PASSWORDcSsg|]}|tjv�qSr
rrr
r
rrGr)ZOS_TENANT_NAMEZOS_PROJECT_NAMEz}Not all environment variables set. Source the environment file for the user intended to connect to the OpenStack environment.zopenstack endpoint listzopenstack catalog listZ
keystone_confZkeystone_log)z.*/etc/keystone/keystone.confz/var/log/keystone/keystone.log)
Z
add_copy_spec�var_puppet_genZ
get_option�	apachepkgZcollect_cmd_output�domain_config_dirZ
path_isdir�all�anyZsoslogZwarningZadd_cmd_outputZ
add_file_tags)�selfZexec_outZvars_allZvars_anyr
r
r�setupsR�
���

�

�zOpenStackKeystone.setupcCs:|�d||�|�|jd||�|�|jd||�dS)z Apply regex substitution z/etc/keystone/*r
N)�do_path_regex_subr)rZregexp�substr
r
r�apply_regex_subWs��z!OpenStackKeystone.apply_regex_subcCshgd�}dg}d�|�}|�dd�|��d�d�|�d|�d�d�|�|jdd�|��d	�d
�dS)N)z(.*_)?passwordZadmin_tokenZ
transport_urlZOIDCClientSecretZ
connection�|z(^\s*(z)\s*(=\s*)?)(.*)z\1*********z!)\s*=\s*(.*)://(\w*):)(.*)(@(.*))z
\1*********\6z
)\s*=\s*)(.*)z
\1********)�joinr rr)rZprotect_keysZconnection_keysZ
join_con_keysr
r
r�postproccs 
�
��zOpenStackKeystone.postproc)�__name__�
__module__�__qualname__Z
short_descZplugin_nameZprofilesrZoption_listrrrrr r#r
r
r
rrs��8rc@seZdZdZdZdS)�DebianKeystoneZapache2)Zkeystonezpython-keystonezpython3-keystoneN�r$r%r&rZpackagesr
r
r
rr'sr'c@seZdZdZdZdS)�RedHatKeystoneZhttpd)zopenstack-selinuxNr(r
r
r
rr)�sr))
rZsos.report.pluginsrrrrrrr'r)r
r
r
r�<module>sn

Youez - 2016 - github.com/yon3zu
LinuXploit