| Server IP : 104.129.129.72 / Your IP : 216.73.216.229 Web Server : LiteSpeed System : Linux 123answers 5.15.0-143-generic #153-Ubuntu SMP Fri Jun 13 19:10:45 UTC 2025 x86_64 User : answe8064 ( 1002) PHP Version : 8.2.28 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/lib/python3/dist-packages/uaclient/__pycache__/ |
Upload File : |
o
Uٵg� � @ s$ d dl mZ G dd� d�Ze� ZdS )� )�Listc @ sX e Zd Zdd� Zdeddfdd�Zedee fdd ��Zdd
d�Z dedefd
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__�secret�returnNc C s |r
| j �|� d S d S r )r �append)r r r r r
�
add_secret s �zSecretManager.add_secretc 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_recordc C s |}| j D ]}|�|d�}q|S )Nz
<REDACTED>)r �replace)r r �redacted_recordr r r r
�redact_secrets s
zSecretManager.redact_secrets)r
N)�__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