| Server IP : 138.197.176.125 / Your IP : 216.73.217.55 Web Server : Apache/2.4.41 (Ubuntu) System : Linux SuiteCRM-8 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.3.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /lib/python3/dist-packages/uaclient/__pycache__/ |
Upload File : |
U
Uٵg� � @ s$ d dl mZ G dd� d�Ze� ZdS )� )�Listc @ sX e Zd Zdd� Zedd�dd�Zeee d�dd ��Zdd�d
d�Z eed�d
d�Z
dS )�
SecretManagerc C s
g | _ d S �N��_secrets��self� r �9/usr/lib/python3/dist-packages/uaclient/secret_manager.py�__init__ s zSecretManager.__init__N)�secret�returnc C s |r| j �|� d S r )r �append)r r r r r
�
add_secret s zSecretManager.add_secret)r
c C s | j S r r r r r r
�secrets s zSecretManager.secretsc C s | j �� d S r )r �clearr r r r
�
clear_secrets s zSecretManager.clear_secrets)�
log_recordr
c C s |}| j D ]}|�|d�}q
|S )Nz
<REDACTED>)r �replace)r r Zredacted_recordr r r r
�redact_secrets s
zSecretManager.redact_secrets)�__name__�
__module__�__qualname__r �strr �propertyr r r r r r r r
r s r N)�typingr r r r r r r
�<module> s