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

        Activity

          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:

              PagerDuty