#1756: Prohibition on the use of compromised passwords
Отредактирована: 59 дней назадSymptoms
Is it possible to set a list of passwords that are forbidden for system users to use?
Is it possible to prohibit compromised passwords?
Solution
Yes, starting from version 6.0.x, it is possible to enable a check for passwords included in the list of compromised passwords and prohibit the use of such passwords.
Large lists of passwords can cause a significant decrease in system performance. To minimize the load, it is recommended to use a combination of password security policy settings and a list of compromised passwords that formally meet the required complexity.
To enable the check, follow these steps:
-
Log in to the Swarmica server and upload the file with compromised passwords to the Swarmica installation folder (usually
/root/swarmica), for example,/root/swarmica/password_blacklist. Each line in the file should contain one password. -
Create a backup copy of the
docker-compose.ymlfile:cp docker-compose.yml{,.backup} -
Edit the
docker-compose.ymlfile, adding the password file to thevolumessection of thedjangocontainer:django: ... volumes: ... - ./password_blacklist:/swarmica/swarmica/password_blacklist:ro ... -
Edit the
.envfile, adding the__password_blacklistfeature flag as a comma-separated value in theFEATURESvariable and specifying the location of the password file in thePASSWORD_BLACKLIST_PATHvariable:FEATURES=__password_blacklist,... ... PASSWORD_BLACKLIST_PATH=/swarmica/swarmica/password_blacklistThe file path must be specified relative to the file system of the django container, i.e., the mount point of the file inside the container (what comes after
:in thevolumessection). -
Restart the services:
docker compose down && docker compose up -d