mirror of
https://github.com/modoboa/modoboa.git
synced 2026-04-25 17:06:01 +03:00
[PR #2144] [MERGED] Prevent that password are stored in plain-text #2465
Labels
No labels
bug
bug
dependencies
design
documentation
duplicate
enhancement
enhancement
enhancement
feedback-needed
help-needed
help-needed
installer
invalid
looking-for-sponsors
modoboa-contacts
new-ui
new-ui
pr
pull-request
pyconfr
python
question
security
stale
webmail
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/modoboa-modoboa#2465
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/modoboa/modoboa/pull/2144
Author: @jeromelebleu
Created: 1/27/2021
Status: ✅ Merged
Merged: 2/9/2021
Merged by: @tonioo
Base:
master← Head:fix/default-password-scheme📝 Commits (5)
abd3ba5Add MD5-CRYPT to the fallback password schemes5cbbd46Allow one to define Dovecot's schemes in settings82ec811Add and document missing settings in templatea7ced66Document the settings related to Dovecot1a677d5Ignore E265 in settings.py template📊 Changes
5 files changed (+63 additions, -25 deletions)
View changed files
📝
doc/configuration.rst(+13 -2)📝
modoboa/core/commands/templates/settings.py.tpl(+13 -7)📝
modoboa/core/password_hashers/__init__.py(+17 -12)📝
modoboa/core/tests/test_authentication.py(+18 -4)📝
setup.cfg(+2 -0)📄 Description
Description of the issue/feature this PR addresses
Dovecot is not a hard-dependency of Modoboa, thus it could be installed and running on another host or container - i.e. for isolation reasons. This PR allows one to define - strong - password schemes to use in this case and document the related variables available in the settings.
Current behavior before PR
If
doveadmbinary is not found on the host, the only password scheme which will be available - and use - will be{PLAIN}- which means that password will be stored in clear. There is no alternative to define a fakedoveadmbinary - as it is done in tests - to mimic the output and tell Modoboa which schemes are supported - which I think it is not a real and clean solution since Modoboa is at least callingdoveadmwith other arguments.Desired behavior after PR is merged
Password must never be stored in clear, so MD5-CRYPT is added to the fallback list of supported password schemes. Moreover, to handle the case of an installation of Dovecot on another host, a new setting is added to specify which schemes are supported:
DOVECOT_SUPPORTED_SCHEMES.Is it conceivable to add a stronger scheme than MD5-CRYPT by default depending on the Dovecot documentation?
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.