-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
OC 9.2 / master random_bytes doesn't work with open_basedir #26076
Comments
also needs to set php.ini's "sys_temp_dir" to something inside that, for example "/var/www/tmp". |
|
This issue only exists on 9.2/master where we upgraded some libraries. Ref: paragonie/random_compat#99. If I understand correctly, it seems it's because the lib stopped trusting openssl so it's now throwing an exception instead of falling back. The workaround is to add the fallback ourselves as stated in the release notes: https://github.com/paragonie/random_compat/releases/tag/v1.3.0 @Peter-Prochaska any thoughts on that ? |
One thing that we might want to do at least is to replace usages of But that one seems to default to base64 chars, not sure if that's enough. |
@Peter-Prochaska let me know if this is an acceptable approach |
it should work with https://github.com/paragonie/random_compat/releases/tag/v1.4.0 |
We have random_compat in 9.1 - see https://github.com/owncloud/3rdparty/tree/master/paragonie/random_compat I guess it got lost as we remove some polyfills .... |
@DeepDiver1975 can we add it back then ? |
From what I see we still have "symfony/polyfill-php70" on master and this package indirectly requires "random_compat" in version v2.0.3: https://github.com/owncloud/core/blob/master/composer.lock#L1398 On stable9.1 we had version "v1.4.1". I suppose that if we did a Should we add an entry to our composer.json/lock to require random_compat < 2 ? |
@DeepDiver1975 @Peter-Prochaska please tell me if this is the correct approach and I'll adjust composer then |
Please make a decision regarding the library situation, thanks. |
Any update ? If we don't do anything this will break setups that use open_basedir with 10.0 |
@Peter-Prochaska @DeepDiver1975 any update ? Time is running out and I don't like having to update or switch libraries that late... If we don't fix this then any install using open_basedir will fail to work with 10.0. However I don't see any mention of it in the admin documentation, so not sure about official support... |
@PVince81 That's too much for 10.0. You have to set a temp dir for composer, a temp dir for php and install an random_compat version < 2.0, if you set open_basedir to /var/www. |
Thanks for the feedback. In the light of this, I'm moving this to 10.0.1 to discuss. |
@Peter-Prochaska will you have time to work on this for 10.0.1 ? |
@PVince81 When is the release of 10.0.1 planned? |
@Peter-Prochaska https://github.com/owncloud/core/wiki/Maintenance-and-Release-Schedule May 23rd but we need to be done one week earlier before because of RC |
@PVince81 Then, this should be no problem. Has this worked with 9.x versions? |
Hey, this issue has been closed because the label (This is an automated comment from GitMate.io. |
Interestingly no one complained about this yet since 10.0 is out... We still need to decide whether using open_basedir is officially supported. |
@settermjd thoughts on this ? |
Can we address this with additional documentation? Just tell people that open_basedir needs to include /dev/urandom. |
Hey, this issue has been closed because the label (This is an automated comment from GitMate.io.) |
sounds good |
@mmattel are you familiar with this ? |
No I am not... |
This issue has been automatically closed. |
Steps
make
Expected
Works
Actual
White page. To see the actual error, needs this PR: #26075
I think the reason is because with open_basedir, ownCloud cannot access /dev/urandom any more.
Not sure why it worked before, maybe an update of the libraries made it more strict.
@DeepDiver1975 @butonic
The text was updated successfully, but these errors were encountered: