Uploaded image for project: 'Couchbase Gateway'
  1. Couchbase Gateway
  2. CBG-3494

[3.1.2 Backport] Enforce "bucket" field match in DbConfig

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 3.1.2
    • 3.0
    • SyncGateway
    • Security Level: Public
    • None
    • CBG Sprint 137
    • 1

    Description

      Database configs store a "bucket" field - which in most cases points to the "owning" bucket of the config.

      This assumption falls apart when a bucket's contents (including dbconfig) are moved to another bucket (via backup/restore or XDCR)

       

      We should enforce the "bucket" field in the dbconfig matches on both insert (which we already do), and on load to prevent backed up/restored buckets from being used by SG unintentionally.

      Need to ensure that databases and config config overwrite is allowed for already existing and mismatched configs (e.g. a backup/restored bucket can be used after an explicit update to fix the bucket field)

      Attachments

        Issue Links

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

          Activity

            People

              ben.brooks Ben Brooks
              ben.brooks Ben Brooks
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty