After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 754213 - g-i-s should NOT hard enforce password strength checks
g-i-s should NOT hard enforce password strength checks
Status: RESOLVED FIXED
Product: gnome-initial-setup
Classification: Applications
Component: general
3.17.x
Other Linux
: Normal normal
: ---
Assigned To: GNOME Initial Setup maintainer(s)
GNOME Initial Setup maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2015-08-28 01:31 UTC by Michael Catanzaro
Modified: 2018-04-12 03:43 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Revert "password: don't set a checkmark in the first password entry" (1.66 KB, patch)
2015-08-28 02:07 UTC, Michael Catanzaro
committed Details | Review
Revert "Don't hard-enforce strong passwords" (979 bytes, patch)
2015-08-28 02:07 UTC, Michael Catanzaro
committed Details | Review
Revert "Revert "password: visibly warn the user when the password is bad"" (6.45 KB, patch)
2018-04-12 03:36 UTC, Michael Catanzaro
committed Details | Review
Revert "Revert "Don't hard-enforce strong passwords"" (1.06 KB, patch)
2018-04-12 03:36 UTC, Michael Catanzaro
committed Details | Review

Description Michael Catanzaro 2015-08-28 01:31:50 UTC
The Fedora Workstation WG has agreed to enforce password strength in g-i-s. FESCo is about to mandate the same thing, with the system password policy. What is left undefined is the rules for password strength. Those we do not bother with here: they are left up to pwquality and specifically pwquality.conf. Distros can choose to make the policy extremely lenient, fairly lenient (the upstream default), or fairly strict by modifying this file.

This will unify the behavior of g-i-s and g-c-c.
Comment 1 Michael Catanzaro 2015-08-28 02:07:41 UTC
Created attachment 310148 [details] [review]
Revert "password: don't set a checkmark in the first password entry"

This reverts commit b7f05cf285c0809563b51a0f9981c53d62c2f0bb.
Comment 2 Michael Catanzaro 2015-08-28 02:07:45 UTC
Created attachment 310149 [details] [review]
Revert "Don't hard-enforce strong passwords"

This reverts commit 2587b774490718c962a5da73beec9e060ab202b6.
Comment 3 Matthias Clasen 2015-08-31 15:18:44 UTC
(In reply to Michael Catanzaro from comment #0)
> Those we do not
> bother with here: they are left up to pwquality and specifically
> pwquality.conf. 

But you do realize that this is exactly the problem that leads to the terrible user experience, right ?

These rules basically define the user exerience of setting passwords. Either it is ok, or it is just broken. And leaving this up whoever maintains some deep-in-the-stack library or some committee is just a recipe for bad UX.
Comment 4 Matthias Clasen 2015-08-31 15:49:00 UTC
Attachment 310148 [details] pushed as 55774e2 - Revert "password: don't set a checkmark in the first password entry"
Attachment 310149 [details] pushed as 0c67a98 - Revert "Don't hard-enforce strong passwords"
Comment 5 Michael Catanzaro 2015-08-31 17:53:55 UTC
At least now, we can have a centralized policy that will be consistently respected by GNOME. If you are running an enterprise and want employees to have 20 character passwords, or if you're building a distro and want there to be no enforcement at all, now you can change pwquality and GNOME will obey. Well, g-c-c already obeyed, but now g-i-s does too.

Or, is that exactly what you did not want?

Anyway, if you want to change the default policy in Workstation to be "allow everything," we can still do that!
Comment 6 Michael Catanzaro 2015-09-23 20:00:38 UTC
Reopened because we need to revert the revert (of the revert?), at least in Fedora, as FESCo has ruled we must not enforce the password strength, which I somehow missed.

I haven't done the revert for g-i-s yet because we need to change g-c-c as well, and that requires changes in Fedora's PAM stack.
Comment 7 Michael Catanzaro 2015-09-23 20:12:34 UTC
Closing because I totally misunderstood the policy... we're doing the "right" thing (for Fedora) now.

For reference: https://fedoraproject.org/wiki/Passphrase_policy
Comment 8 Michael Catanzaro 2015-09-23 20:20:44 UTC
Well, maybe we don't know what it means.

"root / admin users should be able to override quality checks (for purposes of this, the installing user is root/admin)"

I think that means g-i-s and g-c-c must enforce password strength for non-admin user accounts but not for admin accounts (so it would never be enforced when installing a system). That probably makes sense....
Comment 9 Michael Catanzaro 2018-04-08 19:16:04 UTC
(In reply to Michael Catanzaro from comment #8)
> Well, maybe we don't know what it means.
> 
> "root / admin users should be able to override quality checks (for purposes
> of this, the installing user is root/admin)"
> 
> I think that means g-i-s and g-c-c must enforce password strength for
> non-admin user accounts but not for admin accounts (so it would never be
> enforced when installing a system). That probably makes sense....

Ooops, I forgot about this. The required behavior is to never enforce the password strength check in new user mode, because in that mode the user is an administrator. And we do not set password in existing user mode. So g-i-s must never enforce password strength. Some reverts will be needed.

The behavior required by FESCo for gnome-control-center is to not enforce the password strength check when the password is being set by an administrator, but to continue enforcing it when the password is being set by a standard user. That's a wholly-separate bug. The gnome-control-center maintainers will have to decide whether we implement that upstream or downstream.
Comment 10 Michael Catanzaro 2018-04-08 19:17:02 UTC
BTW this is somewhat urgent, we need to fix it before fedora-devel notices :)
Comment 11 Michael Catanzaro 2018-04-12 03:36:00 UTC
The following fixes have been pushed:
98c4adc Revert "Revert "password: visibly warn the user when the password is bad""
985f2a0 Revert "Revert "Don't hard-enforce strong passwords""
Comment 12 Michael Catanzaro 2018-04-12 03:36:12 UTC
Created attachment 370829 [details] [review]
Revert "Revert "password: visibly warn the user when the password is bad""

This reverts commit 0c62c71b5754ded5557b759783084bdb7b40176b.

With some changes to account for the fact that pw_strength() of 1 is
considered weak now.
Comment 13 Michael Catanzaro 2018-04-12 03:36:16 UTC
Created attachment 370830 [details] [review]
Revert "Revert "Don't hard-enforce strong passwords""

This reverts commit 0c67a9800c7832dd55c046adc372833a96a96cf0.

This is a requirement for Fedora, but I suspect few distros want to
irritate users right off the bat by dictating which passwords may be
used.