-
-
Notifications
You must be signed in to change notification settings - Fork 496
[symfony/security-bundle] use lowest possible p/w hash "work factor" in test env #1026
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,3 +25,16 @@ security: | |
access_control: | ||
# - { path: ^/admin, roles: ROLE_ADMIN } | ||
# - { path: ^/profile, roles: ROLE_USER } | ||
|
||
when@test: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we use There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. that's not related to FrameworkBundle. That's related to the version of the DI and HttpKernel components. And for those, we have that guarantee |
||
security: | ||
password_hashers: | ||
# By default, password hashers are resource intensive and take time. This is | ||
# important to generate secure password hashes. In tests however, secure hashes | ||
# are not important, waste resources and increase test times. The following | ||
# reduces the work factor to the lowest possible values. | ||
Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface: | ||
algorithm: auto | ||
cost: 4 # Lowest possible value for bcrypt | ||
time_cost: 3 # Lowest possible value for argon | ||
memory_cost: 10 # Lowest possible value for argon |
Uh oh!
There was an error while loading. Please reload this page.