Uploaded image for project: 'Couchbase Documentation'
  1. Couchbase Documentation
  2. DOC-9185

Provide information about copying encrypted database

    XMLWordPrintable

Details

    Description

      This is originated from https://issues.couchbase.com/browse/CBL-2319.

      We should provide an info to explain that the Database.copy(fromPath, toName, config) method will copy the database without changing the encryption key. The encryption key specified in the config is the encryption key used for both the original database and copied database. If the encryption key needs to be changed or set to the copied database, the Database's changeEncryptionKey(key) will need to be call after.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            Ian.bridge Ian Bridge added a comment - - edited

            IB –

            1. add note to prebuilt database section of docs https://ibsoln.github.io/stage/stage300/couchbase-lite/3.0/java/prebuilt-database.html.  include config to provide encryption key if copying an encrypted database ..
              if you want to copy an unencrypted db but then encrypt the target db you need to use the change encryption key (pt 2) – link to db section 

            2. Also encryption section – encryption key add note rekey  the database 

            https://docs.couchbase.com/couchbase-lite/3.0/android/database.html#database-encryption

            https://docs.couchbase.com/mobile/3.0.0-beta02/couchbase-lite-android/com/couchbase/lite/Database.html#changeEncryptionKey(com.couchbase.lite.EncryptionKey)

             

            all platforms

            Ian.bridge Ian Bridge added a comment - - edited IB – add note to prebuilt database section of docs https://ibsoln.github.io/stage/stage300/couchbase-lite/3.0/java/prebuilt-database.html.   include config to provide encryption key if copying an encrypted database .. if you want to copy an unencrypted db but then encrypt the target db you need to use the change encryption key (pt 2) – link to db section  2. Also encryption section – encryption key add note rekey  the database  https://docs.couchbase.com/couchbase-lite/3.0/android/database.html#database-encryption https://docs.couchbase.com/mobile/3.0.0-beta02/couchbase-lite-android/com/couchbase/lite/Database.html#changeEncryptionKey(com.couchbase.lite.EncryptionKey)   all platforms
            Ian.bridge Ian Bridge added a comment - - edited Priya Rajagopal Pasin Suriyentrakorn Please check the changes staged here: https://ibsoln.github.io/stage/3.0-GA/couchbase-lite/current/swift/prebuilt-database.html#database-encryption https://ibsoln.github.io/stage/3.0-GA/couchbase-lite/current/swift/database.html#database-encryption

            Ian Bridge   Looks good to me.  Once Pasin Suriyentrakorn  confirms, lets stage this

            priya.rajagopal Priya Rajagopal added a comment - Ian Bridge    Looks good to me.  Once  Pasin Suriyentrakorn   confirms, lets stage this

            Look good to me. 

            pasin Pasin Suriyentrakorn added a comment - Look good to me. 
            Ian.bridge Ian Bridge added a comment -

            ready to merge

            Ian.bridge Ian Bridge added a comment - ready to merge
            Ian.bridge Ian Bridge added a comment -

            needs merging to stage/3.0-ga - 4JAN2

            Ian.bridge Ian Bridge added a comment - needs merging to stage/3.0-ga - 4JAN2

            People

              Ian.bridge Ian Bridge
              pasin Pasin Suriyentrakorn
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty