-
-
Notifications
You must be signed in to change notification settings - Fork 963
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: make the password policy more configurable #2118
feat: make the password policy more configurable #2118
Conversation
…o password policy config
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the late review! This looks great! I think we should still enforce a lower limit for password length (e.g. 6).
Also could you please add a guide that explains how to use this feature in the docs/docs/guide directory? :)
embedx/config.schema.json
Outdated
"title": "Minimum Password Length", | ||
"description": "Defines the minimum length of the password.", | ||
"type": "integer", | ||
"default": 6 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please make the default 8
. We changed the default to be 8 in #2009, and it had quite some implications especially for automated tests and the login UI, so I would like to keep that default value.
driver/config/config.go
Outdated
HaveIBeenPwnedEnabled: p.p.BoolF(ViperKeyPasswordHaveIBeenPwnedEnabled, true), | ||
MaxBreaches: uint(p.p.Int(ViperKeyPasswordMaxBreaches)), | ||
IgnoreNetworkErrors: p.p.BoolF(ViperKeyIgnoreNetworkErrors, true), | ||
MinPasswordLength: uint(p.p.IntF(ViperKeyPasswordMinLength, 6)), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MinPasswordLength: uint(p.p.IntF(ViperKeyPasswordMinLength, 6)), | |
MinPasswordLength: uint(p.p.IntF(ViperKeyPasswordMinLength, 8)), |
docs/docs/guides/password-policy.mdx
Outdated
enabled: true | ||
config: | ||
haveibeenpwned_enabled: true | ||
min_password_length: 6 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
min_password_length: 6 | |
min_password_length: 8 |
docs/docs/guides/password-policy.mdx
Outdated
|
||
#### `min_password_length` | ||
|
||
The minimum length of the password. The default value is `6`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The minimum length of the password. The default value is `6`. | |
The minimum length of the password. The default value is `8`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, thank you 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you so much!
Thanks from me, too ❤️. We were just discussing a need for this functionality internally. |
Hello @RamiBerm Edit: sorry tagged the wrong person the first time |
Closes ory#970 Co-authored-by: aeneasr <[email protected]> Conflicts: docs/sidebar.json
Closes ory#970 Co-authored-by: aeneasr <[email protected]>
Added two new password config fields:
min_password_length
andidentifier_similarity_check_enabled
.Related issue(s)
#970
Checklist
introduces a new feature.
contributing code guidelines.
vulnerability. If this pull request addresses a security. vulnerability, I
confirm that I got green light (please contact
[email protected]) from the maintainers to push
the changes.
works.
Further Comments