setup_security
See :meth:@Celery.setup_security.
def setup_security(
allowed_serializers: list = None,
key: string = None,
key_password: string = None,
cert: string = None,
store: string = None,
digest: string = None,
serializer: string = 'json',
app: Celery = None
) - > null
See :meth:@Celery.setup_security.
Parameters
| Name | Type | Description |
|---|---|---|
| allowed_serializers | list = None | A list of serializer names to permit; if provided, insecure serializers not in this list will be disabled. |
| key | string = None | The file path to the private key used for signing messages. |
| key_password | string = None | The password or passphrase used to decrypt the private key file. |
| cert | string = None | The file path to the public certificate corresponding to the private key. |
| store | string = None | A directory path or glob pattern containing trusted public certificates used to verify incoming messages. |
| digest | string = None | The hashing algorithm used for message signatures, such as 'sha256'. |
| serializer | string = 'json' | The name of the inner serializer to use for the message payload before it is signed. |
| app | Celery = None | The Celery application instance to configure; defaults to the current_app if not specified. |
Returns
| Type | Description |
|---|---|
null | Nothing is returned; the function modifies the global Celery application state and serializer registry. |