Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Validator] feat : add password strength estimator related documentation#19910

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

@yalit
Copy link
Contributor

This PRfixes#19903

@yalityalit requested a review fromxabbuh as acode ownerMay 21, 2024 21:55
@carsonbotcarsonbot added this to the7.2 milestoneMay 21, 2024
Comment on lines 9 to 10
In case of need to retrieve the actual strength of a password (e.a. display it in a frontend live next to the password field), the ``estimateStrength`` `dedicated function`_ of the :class:`Symfony\\Component\\Validator\\Constraints\\PasswordStrengthValidator` is a public static function, therefore this function can be retrieved directly from the `PasswordStrengthValidator` class.::

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Should this data be considered as a sensitive data ?

By analysing the successive scores after each keystroke, is this not much much easier to break a password ?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I would not consider it as sensitive data as the strength is not linked to the user and is not encrypted => so the only information that any one would get is how the strength of a password is constructed (which is anyway public as this code is public) but maybe I miss a part of the analysis (I'm not a security expert)

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

but I see indeed that it's defined as a Sensitive Parameter in the code =>@smnandre how should we mention it in the documentation?
The change in the code was done to render public the estimateStrength function from the Validator heresymfony/symfony#54881

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I think we could replace

(e.a. display it in a frontend live next to the password field)

with

(e.g. compute the score and display it when the user has defined a password)

Just removing the "live" part from the documentation feels better to me... wdyt ?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I understand what you mean and it feels right indeed => text updated

smnandre reacted with thumbs up emoji
@carsonbotcarsonbot changed the titlefeat : add password strength estimator related documentation[Validator] feat : add password strength estimator related documentationMay 28, 2024
@javiereguiluzjaviereguiluzforce-pushed thefix_19903_password_strength_get_or_override branch from5c45fca to92d1b5aCompareMay 28, 2024 08:18
@javiereguiluzjaviereguiluz merged commit6d7db6e intosymfony:7.2May 28, 2024
@javiereguiluz
Copy link
Member

Yannick, thanks for this contribution!

Your original PR was perfectly fine but, to avoid having to browse many small pages when reading Symfony Docs, we lately avoid creating short articles. That's why, while merging this, I moved the new docs to the constraint article and removed the new doc page. Seef6b6991

yalit reacted with thumbs up emoji

@yalityalit deleted the fix_19903_password_strength_get_or_override branchMay 28, 2024 09:52
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@xabbuhxabbuhAwaiting requested review from xabbuhxabbuh is a code owner

1 more reviewer

@smnandresmnandresmnandre left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

7.2

Development

Successfully merging this pull request may close these issues.

4 participants

@yalit@javiereguiluz@smnandre@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp