-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Missing "Enable recovery key" field in the admin settings #8283
Comments
cc @schiessle |
I also have this problem; and typing the command: sudo -u www-data php occ encryption:disable-master-key done this I found the item to set the recovery key |
@tigernero79 thank you for the tip. Still I am not comfortable running the
|
go to the nextcloud folder and run that command Next Log in via the web and you'll find the option to insert the Master Key |
@tigernero79 @CamZie I haven't tried the command either for the same reason. The docs state it is specifically only for new installations. Although, once they state new installation and once an "installation with no existing encrypted data". |
do you have encrypted data? what does it have to do with new installation I have tested on my nextcloud because even I had no voice of the net after deactivation I appeared and I could create net from the web. I had no problems with data. then do what you feel but there are no problems. I did not have any. I deactivate the net, not the encrypted data. the net fill you from the web then. |
@tigernero79 I am not sure if I understood you correctly. I understand you ran the command and had no problems afterwards with your data. Like @CamZie, I hesitate to run a command which does not exist according to the documentation. In fact the documentation says the |
you must enter from the terminal in your nextcloud folder type that command that you disability the Master Key done this you can enter through browser in your nextcloud and in the settings in the encryption section you will find again the possibility to re-enter the master key |
If I run |
since they are people who do not like to experiment, I have everything for them. Twice that the command to be launched via shell was with that command
appeared the voice in the web interfaces of nextcloud to set recovery password. only they are afraid of doing anything. what do you want to do with it? |
Nextcloud 13 uses a master-key setup by default. Therefore no recovery key is needed. As long as the user can login they can access their files. Also password recovery, etc works because you encryption keys are no longer bound to the login password. If a admin needs to access the files of a user they also don't need the recovery key. They can just use the impersonate app (https://apps.nextcloud.com/apps/impersonate) to access the users files. If you really want to go back the the old behavior, which I really don't recommend, you can do so by running |
@schiessle having I reintroduced in that nextcloud 13 this entry and entered the recovery key with one created by me now I have deactivated option from the encryption panel enough so or to delete the voice do I have to do anything else? |
is not it a violation of your privacy that you can access your data even without your consent? to be able to see the files of a non-administrator user without his consent? with impersona? |
The recovery key makes sense if you use per-user keys. If you use the master key (a system wide key) it doesn't make sense. That's why we don't offer it in the master key setup which is the default from Nextcloud 13 on. If you upgrade from a older version with per-user keys nothing will change. The default only affects people who activate encryption in Nextcloud >= 13 for the first time.
It is not the master key but the recovery key. That's a huge difference:
It all depends on your threat model. Server side encryption was developed for the use case that you use a external storage provider you don't trust. Let's say Amazon S3 as a primary storage, mount your Dropbox, a random ftp server, etc to your Nextcloud. You trust your Nextcloud admin but not the storage provider. In this case you can do server side encryption. As the Nextcloud server handles the encryption/decryption you always have to trust the Nextcloud admin because he could intercept this always. There is no difference if you use per-user keys or the master key. If you use per-user keys and enable the recovery key you allow your admin to decrypt your files even without hacking their own Nextcloud server. So in this case it is even more similar to the master key, if you look at the potential risk. Keeping the threat model in mind: Trust your Nextcloud admin but not your Storage admin the master key is as secure as per-user keys but it adds significant benefits:
That's why we decided to make the master key the default and strongly recommend to use the default. If you don't trust your Nextcloud admin, then end-to-end encryption is the only thing which will help. |
I get it, but then the master key is a key generated by nextcloud you can not change it right? while for the recovery key, |
If the user disable the recovery key again all recovery keys for their files should be deleted and the admin can no longer recover them |
if you want to switch back to the master key, this isn't possible if you already have encrypted files. You could first try to decrypt app with Or setup a new Nextcloud and move all files over. Depending of the size of your setup this might be the easiest solution |
ok ok thank's |
you disabled the master key, so you are in a "per-user key" setup and there you have the option to set a recovery key |
thanks |
I have another nextcloud installation where I do not have access to the shell to be able to enable the master key through a site where I do not have access to the shell, I know that I can use a different shell with a curl command. can I know which command to run curl to do this? something similar?
|
Are there plans to update the official NextCloud documentation for this large functionality change? The bit i'm still not clear on, is that if the enablement of the encryption modules now uses a self-generated master key stored within the database, how do we backup/change that key? Any clearer guidance planned? |
SO vor NC 13 > /// Whats the Master Key? Where is it stored? How can i be save with this Key? |
Why is this issue labelled as closed? |
@schiessle wrote about the closing reason, though he mentioned the app impersonate which states:
|
@rotanid I’m sorry but that’s not correct. Remember, I am not talking about tigernero79‘s situation, but NextCloud in general. New users, existing users, etc; This needs documenting correctly and/or the app updating to show the changes. |
@boomam I totally agree with you as a user of Nextcloud since now a few years. As a bitter example yesterday I lost almost a whole day with another software which had an installation issue which was only "documented" in a github issue. This info could have easily gone into the the install readme... |
Bump. Stumbled upon this while trying to figure out why I couldn't find the option for recovery keys. It's still not update in the docs: https://docs.nextcloud.com/server/13/admin_manual/configuration_files/encryption_configuration.html |
It seems like I have it disabled. So what am I supposed to do to be able to change my users's passwords again? This is totally confusing. I read multiple threads and this bug, I am still not sure about what I am supposed to do. This was no isse in 13 :( sudo -u www-data php occ encryption:status
Nextcloud 14.0.3 on Debian Testing Mysql Apache2 Can someone provide me where to look and what to do about this please? |
in nextcloud 14 the recovery key is no longer used. if problems from 13 will still exist the voice that you can disable. in nextcloud 14 Just log in as admin and in the users section you can change them there. |
Thanks for the reply I logged in as admin, I still do not see a way to add a new user or a way to change passwords. I cant even change user password in the terminal
|
if you access via the web and not from the terminal, can you do it? why do you want to change password from ssh? If you access your nextcloud via the web, do you have a user section? did you update from 13 to 14 of nextcloud? |
In the Tab password insert new password. Is simple |
I do not understand it, there is no password area to insert any new password. Did you check my screen that I included? See the image, no places to enter any password, there is a password column there but it is useless since no boxes appears for password underneath. https://user-images.githubusercontent.com/8519469/47809563-2e8c6180-dd0f-11e8-8e04-cbe495360d85.jpg Trust me I used to be able to do this before, so I actually know where and how to change the passwords and that is not possible now. Also see this message at the top of the users screen " As you see the passwords cant be change in the ui. |
Thanks here are the results
I still get this in user panel
And I still do not have password boxes to change, so I cant change it. I think this is a bug |
try now sudo -u www-data php occ encryption:enable-master-key |
@tigernero79
I have manu users and alot of data. Will I loose my existing data? I so not want to mess up my setup for myself and for my users. |
So I made a backup and ifred the command you mentioned above. It seems to work now, I did not loose any data. Thanks for the help. I wil report any other I hit regarding this issue here. thanks |
Came here, too, because I couldnt figure out the situation. Running a fresh installation of NC15. Wholeheartedly upvoting a documentation update 👍 |
I followed the steps provided in this solution and they do not work for me. I'm on Centos7 using NC15.0.4. I have tried various ways from decrypting/disabling then encrypting/enabling but nothing seems to get my recovery keys up. Any other methods I should try? |
I have created a recovery key but as @gerroon mentioned I do not see password recovery option on the users page. Am I missing something? I am looking in the right place? Please help! Thank you. |
Does anyone have more information on where it is, so i can back it up? |
This should find its way to the Nextcould encryption manual. Thanks! |
I have been looking for an explanation of the encryption configuration as given by @schiessle in #8283 (comment) for the past two years! Why isn't it part of the official documentation? It should definitely be there, as proposed by @Dakavon. |
Feeling lucky i found this issue thread, b/c i was following https://docs.nextcloud.com/server/24/admin_manual/configuration_files/encryption_configuration.html#enabling-users-file-recovery-keys, which is the page for nextcloud:latest but doesn't mention anywhere that the whole section only applies to Nextcloud <13 – while beginning with v13 the whole "enable recovery key"-section will not be displayed as it is not needed with the master key setup (if i understand this thread correctly). Since v13 a lot of time has passed, shouldn't this have been added to the docs all along? |
hey i made then i have put a recovery key and recovery key settings gones again is this normal ? |
Steps to reproduce
Expected behaviour
The fields to enable recovery key should appear in the admin settings under "Encryption".
Actual behaviour
The fields to enable recovery key does not appear, hence we can not create the recovery key.
Server configuration
Operating system: Debian 9.3 (stretch)
Web server: NGINX 1.10
Database: Maria-DB 10.1.26
PHP version: PHP 7
Nextcloud version: 13
Updated from an older Nextcloud/ownCloud or fresh install: Fresh install
Signing status:
Signing status
List of activated apps:
App list
Nextcloud configuration:
Config report
Are you using encryption: yes
Client configuration
Browser: Firefox, Vivaldi and Chrome
Operating system: Linux
Logs
The text was updated successfully, but these errors were encountered: