generated from aboutcode-org/skeleton
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Altcha validation fails due to signature mismatch when running in wsgi deployment with multiple workers.
django-altcha/django_altcha/__init__.py
Line 30 in cd40299
ALTCHA_HMAC_KEY = getattr(settings, "ALTCHA_HMAC_KEY", secrets.token_hex(32)) |
Fallback key generation does not work reliably in wsgi deployments with multiple workers, since each worker loads
django_altcha
independently, and each one ends up generating a different ALTCHA_HMAC_KEY
key. And when challenge generation and validation happen in different workers, Altcha validation fails due to signature mismatch.
Possible fix would be to make ALTCHA_HMAC_KEY
mandatory.
Metadata
Metadata
Assignees
Labels
No labels