-
Notifications
You must be signed in to change notification settings - Fork 187
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
change hashing algorithm from SHA-512 to bcrypt #638
Conversation
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 add the changelog in /docs /changelog on the top level of the repo. Extensions are not supposed to have their own changelog anymore. :-)
Ah thanks! Wasn't sure about that. 👍 |
20ada19
to
60dd048
Compare
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 rebase |
3f2ff17
to
c4d56ce
Compare
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 rebase again :-)
aede5ae
to
2ecd62c
Compare
2ecd62c
to
356d1cf
Compare
I rebased - CI might be kinder this time. |
I really don't get the error of phoenixWebUI2... It's a bit frustrating... I need to dig deeper on monday... |
ocis-server logs in drone look like you might have a wrong password for the reva user...
|
... which is weird, because when I delete my local accounts data dir and run ocis from your branch, I can login as |
356d1cf
to
8b36256
Compare
Seems like the requests from glauth to the accounts service timeout.
Maybe the accounts service crashes? But why is there no hint in the logs? |
4d4b1cf
to
231d354
Compare
I lowered the difficulty to 11 now which should half the hashing time. |
235ce51
to
01aae09
Compare
It looks better now but I'm still not happy about some tests taking 40+ minutes. |
I am putting together some run-time stats. Will post here when CI finishes... I changed the drone timeout from 1 to 2 hours for this repo - hopefully the currently running pipelines do not get killed after 1 hour. I want to see how long they run. |
And it got killed... |
@phil-davis, how hard would it be to make the api tests use OpenID? |
Comparison of any earlier "typical" CI run today vs this PR with
The tests are quite intensive with setup and teardown (creating/deleting users/groups...). So the API tests show a bigger slowdown because the UI tests already spend more of their time waiting for the browser to be ready. "the system" is a lot slower with this change. |
What we could do is to make the difficulty configurable and to lower it for the tests. |
This should have similar times to the master now. EDIT: I lowered the difficulty even more to 4. This is the lowest possible value and takes around 1.5ms to compute a hash value on my machine. Let's see if it makes any differences in the pipelines. |
363ce07
to
794eca1
Compare
Ok, looks better now. |
That was a good idea. And if someone wants to test with a bigger hash difficulty they can easily change (or remove) the environment variable |
There were some UI test fails - those are annoying. I restarted drone CI. |
Also needs to be used when updating ocis in phoenix CI. Good solution 👍 |
794eca1
to
fe9919d
Compare
The scenario
|
The UI tests are something for tomorrow... |
Waiting for owncloud/web#4297 |
Even though SHA-512 is currently considered a secure algorithm it is not the best choice for password hashing. As this change introduces a breaking change it is beast to introduce it as early as possible to prevent us from having to implement a migration strategy Signed-off-by: David Christofas <[email protected]>
fe9919d
to
1406350
Compare
owncloud/web#4297 has been merged in the phoenix repo. |
https://drone.owncloud.com/owncloud/ocis/1348/29/7 failed.
That's sad. Only one of the expected versions is displayed. There is likely some timing issue with the multiple uploads? I restarted drone. |
Kudos, SonarCloud Quality Gate passed! 0 Bugs |
@C0rby CI passed. IMO this PR is "a good thing" and does not make CI any less reliable. Feel free to merge if you agree. |
Even though SHA-512 is currently considered a secure algorithm it is not the best choice for password hashing. As this change introduces a breaking change it is beast to introduce it as early as possible to prevent us from having to implement a migration strategy
Closes: owncloud/product#195