-
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
Server-side encryption: issue after moving key storage root, validation missing #27660
Comments
You can't move keys outside of the data folder, only into another subdir of the data folder. Not sure why... Maybe the bug is that command shouldn't allow that, but you somehow tricked it using "..". @pako81 Can you retest with "data/keys" ? The idea is that the admin can do a |
looks like the doc is wrong https://doc.owncloud.org/server/10.0/admin_manual/configuration_server/occ_command.html#encryption |
raised https://github.com/owncloud/documentation/issues/3007 would still be good to confirm that it does work inside the data dir |
Argh... ok, thanks for testing. |
My steps:
Then:
Then uploading a file and inspecting its contents on the data folder shows that it's encrypted. @pako81 seems you caught some invalid use case that isn't properly caught by the command ? |
yes, I meant the OC data folder. Don't know..I did exactly what you did with the exception to enable encryption over WebUI and not with |
Ok following your steps everything works fine. Probably using |
I'll reopen this to have improved path validation, but not critical. |
I guess however the occ command should return an error instead of saying "key storage root successfully changed" |
Hey, this issue has been closed because the label |
Hey, this issue has been closed because the label (This is an automated comment from GitMate.io.) |
PR #30222 |
Hey, this issue has been closed because the label (This is an automated comment from GitMate.io.) |
Fixed in #30222 |
Steps to reproduce
/etc/keys
folder is empty (?)Expected behaviour
Existing files should be accessible after moving the key storage root
Actual behaviour
See above
Server configuration
Operating system:
Ubuntu 16.04
Web server:
Apache 2.4
Database:
MariaDB 5.5
PHP version:
7.0.8
ownCloud version: (see ownCloud admin page)
10.0.0 beta2 (daily)
Updated from an older ownCloud or fresh install:
Fresh install
Are you using encryption: yes/no
yes
ownCloud log (data/owncloud.log)
The text was updated successfully, but these errors were encountered: