-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Allow respecting PASSWORD_DEFAULT #19203
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
Conversation
makes sense for customization but what is the benefit? |
On some systems argon2 causes extremely high load. |
Usually, you can tune this with the options now exposed. Already enabling a few threads helps. Or even go down on memory on weaker machines. The core problem is rather to choose a configuration that flies. And admins might not be knowledgeable in the specifics or shy away from changing security related issues. Offering chossing hashing alghos between those to is rather a "turbo" button. Like this it might break with a wrong setting and if PHP is not built with bcrypt. Ain't it better to implement the Turbo button so that it takes into consideration the available threads and memory and sets the parameters accordingly? Or leave the button and do it in a repair step automatically. |
That doesn't really help with the load. It helps with speed. But if your machine 8 core machine is busy and gets a load of 13 then just having it run with more cores doesn't help.
sure. That is why it says only change if you know what you are doing. We can make the warning more explicit. We have plenty of things that break your nextcloud if you set them wrong.
As said I'm not sure I know how to set it in such a way that it helps if your machine is under heavy load already. |
|
Ok alternative suggestion. At the same time if php changes the default they willhave a good reason. |
|
If it hammers the server so much, the memory can be capped drastically, this should shorten the runtime and this load, if i got it right. Still, we cannot judge this on setup. +1 for PASSWORD_DEFAULT switch |
|
Moved it to a password default switch |
ChristophWurst
left a comment
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.
Looks good otherwise 👍
config/config.sample.php
Outdated
| * However if for whatever reason you want to stick with the PASSWORD_DEFAULT | ||
| * of your php version. Then set the setting to true. | ||
| */ | ||
| 'hashingDefaultPassword' => false, |
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.
| 'hashingDefaultPassword' => false, | |
| 'hashing_default_password' => false, |
we use snake_case for most config params
This comment has been minimized.
This comment has been minimized.
772b06a to
170c57d
Compare
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
170c57d to
0d651f1
Compare
|
/backport to stable18 |
|
/backport to stable17 |
|
/backport to stable16 |
|
The backport to stable17 failed. Please do this backport manually. |
|
backport to stable18 in #19292 |
|
The backport to stable16 failed. Please do this backport manually. |
|
@rullzer 18+ only I would say |
What do you think about this
@nickvergessen @blizzz @ChristophWurst @georgehrke @juliushaertl ?