Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-40077

cbbackupmgr shouldn't be hitting collection aware endpoints

    XMLWordPrintable

Details

    Description

      What's the issue?
      Backup will fail when using RBAC roles to perform backups because cbbackupmgr is hitting the REST endpoint to fetch the collection manifest from the cluster even though in 6.6.0 it doesn't support collections. This is done in a BTAFTP approach, however, this doesn't take into account RBAC.

      When performing a backup with either the 'data_reader' or 'data_backup' role you will see an error similar to:

      Error backing up cluster: Forbidden. User needs one of the following permissions: cluster.bucket[default].collections!read
      

      What's the fix?
      The Couchbase Source/Sink should use the cluster version number to determine if the cluster supports collections. If it doesn't then we shouldn't hit this endpoint at all.

      Attachments

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

        Activity

          Build couchbase-server-6.6.0-7833 contains backup commit 21e40e2 with commit message:
          MB-40077 Do not hit collection aware endpoints when unsupported

          build-team Couchbase Build Team added a comment - Build couchbase-server-6.6.0-7833 contains backup commit 21e40e2 with commit message: MB-40077 Do not hit collection aware endpoints when unsupported

          Build couchbase-server-7.0.0-2464 contains backup commit 21e40e2 with commit message:
          MB-40077 Do not hit collection aware endpoints when unsupported

          build-team Couchbase Build Team added a comment - Build couchbase-server-7.0.0-2464 contains backup commit 21e40e2 with commit message: MB-40077 Do not hit collection aware endpoints when unsupported

          People

            james.lee James Lee
            james.lee James Lee
            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