Merge pull request #1088 from owncloud/encrypshun
update encryption app documentation
@@ -2,49 +2,56 @@
|
||||
Encryption Configuration
|
||||
========================
|
||||
|
||||
ownCloud includes a server-side encryption application. The Encryption app
|
||||
encrypts all files stored on the ownCloud server, and all files on remote
|
||||
storage that is connected to your ownCloud server. Encryption and decryption are
|
||||
performed on the ownCloud server. All files sent to remote storage (for example
|
||||
Dropbox and Google Drive) will be encrypted by the ownCloud server, and upon
|
||||
retrieval, decrypted before serving them to you and anyone you have shared them
|
||||
with.
|
||||
In ownCloud 8.1 the server-side encryption has a number of changes and
|
||||
improvements, including:
|
||||
|
||||
.. note:: Encrypting files increases their size by roughly 35%, so you must take
|
||||
this into account when you are provisioning storage and setting storage
|
||||
quotas. User's quotas are based on the unencrypted file size, and not the
|
||||
encrypted file size.
|
||||
* When encryption is enabled, all files are no longer encrypted at user's first
|
||||
logins because this caused timeouts on large installations. Instead, only
|
||||
files that are created or updated after encryption has been enabled are
|
||||
encrypted.
|
||||
|
||||
* The "decrypt all" option in the Personal settings has been removed, also for
|
||||
performance reasons.
|
||||
|
||||
* A new option for users to enable/disable encryption on a per mount-point
|
||||
basis.
|
||||
|
||||
* The option to choose from multiple encryption modules.
|
||||
|
||||
ownCloud server-side encryption encrypts files stored on the ownCloud server,
|
||||
and files on remote storage that is connected to your ownCloud server.
|
||||
Encryption and decryption are performed on the ownCloud server. All files sent
|
||||
to remote storage (for example Dropbox and Google Drive) will be encrypted by
|
||||
the ownCloud server, and upon retrieval, decrypted before serving them to you
|
||||
and anyone you have shared them with.
|
||||
|
||||
.. note:: Encrypting files increases their size by roughly 35%, so you must
|
||||
take this into account when you are provisioning storage and setting
|
||||
storage quotas. User's quotas are based on the unencrypted file size, and
|
||||
not the encrypted file size.
|
||||
|
||||
When files on external storage are encrypted in ownCloud, you cannot share them
|
||||
directly from the external storage services, but only through ownCloud sharing
|
||||
because the key to decrypt the data never leaves the ownCloud server.
|
||||
|
||||
The main purpose of the Encryption app is to protect users' files on remote
|
||||
storage, and to do it easily and seamlessly from within ownCloud.
|
||||
The main purpose of the ownCloud server-side encryption is to protect users'
|
||||
files on remote storage, and to do it easily and seamlessly from within
|
||||
ownCloud.
|
||||
|
||||
The Encryption app generates a strong encryption key, which is unlocked by
|
||||
user's passwords. So your users don't need to track an extra password, but
|
||||
simply log in as they normally do.
|
||||
|
||||
Encryption is applied server-wide; it cannot be applied to selected users or
|
||||
files.
|
||||
|
||||
The Encryption app encrypts only the contents of files, and not filenames and
|
||||
folder structures.
|
||||
ownCloud's server-side encryption generates a strong encryption key, which is
|
||||
unlocked by user's passwords. So your users don't need to track an extra
|
||||
password, but simply log in as they normally do. It encrypts only the contents
|
||||
of files, and not filenames and folder structures.
|
||||
|
||||
You should regularly backup all encryption keys to prevent permanent data loss.
|
||||
The encryption keys are stored in following folders:
|
||||
The encryption keys are stored in following directories:
|
||||
|
||||
``data/owncloud_private_key``
|
||||
Recovery key, if enabled, and public share key
|
||||
``data/public-keys``
|
||||
Public keys for all users
|
||||
``data/<user>/files_encryption``
|
||||
Users' private keys and all other keys necessary to decrypt the users' files
|
||||
``data/files_encryption``
|
||||
private keys and all other keys necessary to decrypt the files stored on a
|
||||
system wide external storage
|
||||
|
||||
|
||||
.. note:: Encryption keys are stored only on the ownCloud server, eliminating
|
||||
exposure of your data to third party storage providers. The encryption app
|
||||
does **not** protect your data if your ownCloud server is compromised, and it
|
||||
@@ -54,101 +61,145 @@ The encryption keys are stored in following folders:
|
||||
it is better to use other encryption tools, such as file-level or
|
||||
whole-disk encryption. Read
|
||||
`How ownCloud uses encryption to protect your data
|
||||
<https://owncloud.org/blog/how-owncloud-uses-encryption-to-protect-your-data/>`_
|
||||
for more information.
|
||||
<https://owncloud.org/blog/how-owncloud-uses-encryption-to-protect-your-
|
||||
data/>`_ for more information.
|
||||
|
||||
Before Enabling Encryption
|
||||
--------------------------
|
||||
|
||||
Enabling the Encryption App
|
||||
---------------------------
|
||||
Plan very carefully before enabling encryption. You have the option to disable
|
||||
encryption, but there are scenarios where it is possible that some files will
|
||||
not be recoverable. It is best to think of encryption as all-or-nothing: either
|
||||
you use it, or you don't, and once files are encrypted they must always be
|
||||
encrypted. Always have backups of your encryption keys stored in a safe
|
||||
location, and consider enabling all recovery options.
|
||||
|
||||
The Encryption app is bundled with ownCloud, so first go to your Apps page to
|
||||
enable it.
|
||||
Enabling Encryption
|
||||
-------------------
|
||||
|
||||
.. figure:: ../images/encryption1.png
|
||||
ownCloud encryption now consists of two parts. The base encryption system is
|
||||
enabled and disabled on your Admin page. First you must enable this, and then
|
||||
select an encryption module to load. Currently the only available encryption
|
||||
module is the ownCloud Default Encryption Module.
|
||||
|
||||
After you click the ``Enable`` button you must log out, and then log back in.
|
||||
If you continue to work without logging out, you'll see a yellow banner at
|
||||
the top of your Files page that warns you "Encryption App is enabled but your
|
||||
keys are not initialized, please log-out and log-in again."
|
||||
|
||||
.. figure:: ../images/encryption2.png
|
||||
|
||||
When you log out and then log back in, your encryption keys are initialized and
|
||||
your files are encrypted. This is a one-time process, and it will take a few
|
||||
minutes depending on how many files you have.
|
||||
|
||||
.. note:: The more files you have, the longer the initial encryption will take. It is
|
||||
better to activate the encryption app after a new ownCloud installation, to avoid
|
||||
possible timeouts.
|
||||
First go to the **Server-side encryption** section of your Admin page and check
|
||||
**Enable server-side encryption**.
|
||||
|
||||
.. figure:: ../images/encryption3.png
|
||||
|
||||
When the encryption process is complete you'll be returned to your default
|
||||
ownCloud page. Every user will go through this process when they log in after
|
||||
you enable encryption, and each user will get unique encryption keys. Users can change
|
||||
their passwords whenever they want on their Personal pages, and ownCloud will update
|
||||
their encryption keys automatically.
|
||||
There is no encryption module loaded yet, so go to your Apps page to enable the
|
||||
ownCloud Default Encryption Module.
|
||||
|
||||
.. figure:: ../images/encryption1.png
|
||||
|
||||
If you return to your Admin page you will see the ownCloud Default Encryption
|
||||
Module added to the module selector, and automatically selected. Now you must
|
||||
log out and then log back in to initialize your encryption keys.
|
||||
|
||||
.. figure:: ../images/encryption14.png
|
||||
|
||||
Sharing Encrypted Files
|
||||
-----------------------
|
||||
|
||||
Only users who have private encryption keys have access to shared encrypted files and
|
||||
folders. Users who have not yet created their private encryption keys will not have access
|
||||
to encrypted shared files; they will see folders and filenames, but will not be able to
|
||||
open or download the files. They will see a yellow warning banner that says "Encryption
|
||||
App is enabled but your keys are not initialized, please log-out and log-in again."
|
||||
Only users who have private encryption keys have access to shared encrypted
|
||||
files and folders. Users who have not yet created their private encryption keys
|
||||
will not have access to encrypted shared files; they will see folders and
|
||||
filenames, but will not be able to open or download the files. They will see a
|
||||
yellow warning banner that says "Encryption App is enabled but your keys are not
|
||||
initialized, please log-out and log-in again."
|
||||
|
||||
Share owners may need to re-share files after encryption is enabled; users trying to
|
||||
access the share will see a message advising them to ask the share owner to re-share the
|
||||
file with them. For individual shares, un-share and re-share the file. For group shares,
|
||||
share with any individuals who can't access the share. This updates the encryption, and
|
||||
then the share owner can remove the individual shares.
|
||||
Share owners may need to re-share files after encryption is enabled; users
|
||||
trying to access the share will see a message advising them to ask the share
|
||||
owner to re-share the file with them. For individual shares, un-share and
|
||||
re-share the file. For group shares, share with any individuals who can't access
|
||||
the share. This updates the encryption, and then the share owner can remove the
|
||||
individual shares.
|
||||
|
||||
.. figure:: ../images/encryption9.png
|
||||
|
||||
Decrypting Encrypted Files
|
||||
--------------------------
|
||||
Encrypting External Mountpoints
|
||||
-------------------------------
|
||||
|
||||
You have the option of changing your mind and disabling the Encryption app.
|
||||
Just click its Disable button on the Apps page, and when you go to your Files
|
||||
page you'll see the yellow banner warning "Encryption was disabled but your
|
||||
files are still encrypted. Please go to your personal settings to decrypt your
|
||||
files".
|
||||
You and your users can encrypt individual external mountpoints. You must have
|
||||
external storage enabled on your Admin page, and enabled for your users (see
|
||||
:doc:`external_storage_configuration_gui`).
|
||||
|
||||
.. figure:: ../images/encryption4.png
|
||||
After setting up the external storage mountpoint, click the little gear icon at
|
||||
the right to expose the encryption menu. Encryption is enabled by default.
|
||||
|
||||
Go to your Personal page and enter your password in the Encryption removal form, and your
|
||||
files will all be decrypted.
|
||||
.. figure:: ../images/encryption13.png
|
||||
|
||||
.. figure:: ../images/encryption5.png
|
||||
To disable encryption, click the gear icon and un-check **encryption**.
|
||||
|
||||
Your users will also have to follow this step to decrypt their files. If
|
||||
something goes wrong with decryption, click the ``Restore Encryption Keys``
|
||||
button to re-encrypt your files, and then review your logfile to see what
|
||||
happened.
|
||||
Enabling Users' File Recovery Key
|
||||
---------------------------------
|
||||
|
||||
Enabling a File Recovery Key
|
||||
----------------------------
|
||||
|
||||
If you lose your ownCloud password, then you lose access to your encrypted files. If one
|
||||
of your users loses their ownCloud password their files are unrecoverable. You cannot
|
||||
reset their password in the normal way; you'll see a yellow banner warning "Please provide
|
||||
an admin recovery password, otherwise all user data will be lost".
|
||||
If you lose your ownCloud password, then you lose access to your encrypted
|
||||
files. If one of your users loses their ownCloud password their files are
|
||||
unrecoverable. You cannot reset their password in the normal way; you'll see a
|
||||
yellow banner warning "Please provide an admin recovery password, otherwise all
|
||||
user data will be lost".
|
||||
|
||||
To avoid all this, create a Recovery Key. Go to the Encryption section of your
|
||||
Admin page and set a recovery key password.
|
||||
|
||||
.. figure:: ../images/encryption6.png
|
||||
.. figure:: ../images/encryption10.png
|
||||
|
||||
Then your users have the option of enabling password recovery on their Personal
|
||||
pages. If they do not do this, then the Recovery Key won't work for them.
|
||||
|
||||
.. figure:: ../images/encryption7.png
|
||||
|
||||
For users who have enabled password recovery, give them a new password and recover access
|
||||
to their encrypted files by supplying the Recovery Key on the Users page.
|
||||
For users who have enabled password recovery, give them a new password and
|
||||
recover access to their encrypted files by supplying the Recovery Key on the
|
||||
Users page.
|
||||
|
||||
.. figure:: ../images/encryption8.png
|
||||
|
||||
You may change your Recovery Key password.
|
||||
|
||||
.. figure:: ../images/encryption12.png
|
||||
|
||||
Or disable it.
|
||||
|
||||
.. figure:: ../images/encryption11.png
|
||||
|
||||
Disabling Encryption
|
||||
--------------------
|
||||
|
||||
You have the option of changing your mind and disabling the Encryption app by
|
||||
un-checking **Enable server-side encryption** on your Admin page. But remember,
|
||||
under certain conditions it is possible to create unrecoverable files, so make
|
||||
sure you have good backups first.
|
||||
|
||||
occ Encryption Commands
|
||||
-----------------------
|
||||
|
||||
You may also use the ``occ`` command to perform encryption operations.
|
||||
|
||||
This is equivalent to checking **Enable server-side encryption** on your Admin
|
||||
page::
|
||||
|
||||
occ encryption:enable
|
||||
|
||||
This is equivalent to un-checking **Enable server-side encryption** on your
|
||||
Admin page::
|
||||
|
||||
occ encryption:disable
|
||||
|
||||
List the available encryption modules::
|
||||
|
||||
occ encryption:list-modules
|
||||
|
||||
Select a different default Encryption module::
|
||||
|
||||
occ encryption:set-default-module [Module ID].
|
||||
|
||||
The [module ID] is taken from the ``encryption:list-modules`` command.
|
||||
|
||||
See :doc:`../configuration_server/occ_command` for detailed instructions on
|
||||
using ``occ``.
|
||||
|
||||
Files Not Encrypted
|
||||
-------------------
|
||||
|
||||
@@ -167,12 +218,13 @@ third-party storage providers are guaranteed to be encrypted.
|
||||
LDAP and Other External User Back-ends
|
||||
--------------------------------------
|
||||
|
||||
If you use an external user back-end, such as an LDAP or Samba server, and you change a
|
||||
user's password on the back-end, the user will be prompted to change their ownCloud login
|
||||
to match on their next ownCloud login. The user will need both their old and new passwords
|
||||
to do this. If you have enabled the Recovery Key then you can change a user's password in
|
||||
the ownCloud Users panel to match their back-end password, and then, of course, notify the
|
||||
user and give them their new password.
|
||||
If you use an external user back-end, such as an LDAP or Samba server, and you
|
||||
change a user's password on the back-end, the user will be prompted to change
|
||||
their ownCloud login to match on their next ownCloud login. The user will need
|
||||
both their old and new passwords to do this. If you have enabled the Recovery
|
||||
Key then you can change a user's password in the ownCloud Users panel to match
|
||||
their back-end password, and then, of course, notify the user and give them
|
||||
their new password.
|
||||
|
||||
.. This section commented out because there is no windows support
|
||||
.. in oC8; un-comment this if windows support is restored
|
||||
|
||||
@@ -9,10 +9,10 @@ File Sharing and Management
|
||||
file_sharing_configuration.rst
|
||||
big_file_upload_configuration.rst
|
||||
collaborative_documents_configuration
|
||||
default_files_configuration.rst
|
||||
encryption_configuration.rst
|
||||
default_files_configuration.rst
|
||||
external_storage_configuration_gui
|
||||
external_storage_configuration
|
||||
encryption_configuration.rst
|
||||
files_locking_enabling.rst
|
||||
federated_cloud_sharing_configuration.rst
|
||||
previews_configuration
|
||||
|
||||
|
Before Width: | Height: | Size: 85 KiB After Width: | Height: | Size: 12 KiB |
BIN
admin_manual/images/encryption10.png
Normal file
|
After Width: | Height: | Size: 20 KiB |
BIN
admin_manual/images/encryption11.png
Normal file
|
After Width: | Height: | Size: 19 KiB |
BIN
admin_manual/images/encryption12.png
Normal file
|
After Width: | Height: | Size: 14 KiB |
BIN
admin_manual/images/encryption13.png
Normal file
|
After Width: | Height: | Size: 15 KiB |
BIN
admin_manual/images/encryption14.png
Normal file
|
After Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 4.0 KiB After Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 8.8 KiB After Width: | Height: | Size: 8.8 KiB |