Server : Apache System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64 User : dh_edsupp ( 6597262) PHP Version : 8.2.26 Disable Function : NONE Directory : /lib/python3/dist-packages/uaclient/__pycache__/ |
Upload File : |
o ��Jh� � @ 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