debian: use argon2 as default hasher (#77111)
gitea/authentic/pipeline/head This commit looks good Details

This commit is contained in:
Frédéric Péters 2023-04-28 13:28:36 +02:00
parent 49e7583f04
commit 7be93251e4
2 changed files with 9 additions and 0 deletions

1
debian/control vendored
View File

@ -81,6 +81,7 @@ Package: authentic2-multitenant
Architecture: all
Depends: adduser,
debconf | debconf-2.0,
python3-argon2,
python3-authentic2 (= ${binary:Version}),
python3-django-tenant-schemas (>= 1.5.2.1),
python3-hobo,

View File

@ -22,6 +22,14 @@ TENANT_SETTINGS_LOADERS = ('hobo.multitenant.settings_loaders.Authentic',) + TEN
# Add authentic2 hobo agent
INSTALLED_APPS = ('hobo.agent.authentic2',) + INSTALLED_APPS
# Configure argon2 to be preferred for password hashes
PASSWORD_HASHERS = [
'django.contrib.auth.hashers.Argon2PasswordHasher',
'django.contrib.auth.hashers.PBKDF2PasswordHasher',
'django.contrib.auth.hashers.PBKDF2SHA1PasswordHasher',
'django.contrib.auth.hashers.BCryptSHA256PasswordHasher',
]
LOGGING['filters'].update(
{
'cleaning': {