YunoHost-Apps / synapse_ynh

Matrix server (synapse) package for YunoHost
https://matrix.org/
GNU General Public License v3.0
79 stars 42 forks source link

Increased yunohost password policy prevents synapse from upgrading to 1.69 #345

Closed eauchat closed 3 months ago

eauchat commented 1 year ago

Describe the bug

As it appears in this forum post, if someone sets up higher password policies for it's users, synapse fails to upgrade because it is not able to match the password policy of the server.

It would be great if synapse was able to match yunohost higher password policies, to avoid having this bug and for better security.

Context

Steps to reproduce

On a server with synapse version 1.59, setup yunohost password policies to high: sudo yunohost settings set security.password.user.strength -v 3 Try to upgrade to version 1.69. You'll get the logs mentioned in the forum post linked above, synapse fails to upgrade.

Expected behavior

Synapse upgrades fine.

Josue-T commented 1 year ago

Well,

jukefr commented 1 year ago

In the meantime is it viable to simply change the password manually with sudo passwd synapse to not have this be a problem on updates or would that break things ?

utzer commented 9 months ago

Also blocks installation, the password generated during install is only 8 characters and if you have set 13 to be the minimum the installation fails. So the password generated during install needs to be longer anyway.

Solution for now, set the minimum Password requirement to 8 characters before installing Synapse and always decrease the setting when updating.

Josue-T commented 3 months ago

Bixy ba packaging v2