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

cbexport requires Full Admin

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Cheshire-Cat
    • 6.6.0, Cheshire-Cat
    • server-tools
    • None
    • 1

    Description

      https://docs.couchbase.com/server/7.0/tools/cbexport-json.html states
      "u,-username <username>
      The username for cluster authentication. The user must have the appropriate privileges to read the bucket in which data will be exported from."

      However, if all permission minus Full Admin are granted to a user:
      Data Reader [*:*:*] , Query Select [*:*:*] , Query CURL Access , Security Admin , Search Admin [*] , XDCR Inbound [*] , Manage Scope External Functions [*:*] , External Stats Reader , Sync Gateway [*] , Analytics Manager [*] , Data Writer [*:*:*] , Manage Global Functions , Execute Scope External Functions [*:*] , Analytics Reader , Query Update [*:*:*] , Cluster Admin , Data DCP Reader [*:*:*] , Search Reader [*:*:*] , Execute Scope Functions [*:*] , Views Reader [*] , Views Admin [*] , Manage Collections in Scope [*:*] , Execute Global Functions , Query Delete [*:*:*] , Query Insert [*:*:*] , XDCR Admin , Analytics Admin , Application Access [*] , Data Backup & Restore [*] , Query System Catalog , Data Monitor [*:*:*] , Analytics Select [*:*:*] , Bucket Admin [*] , Manage Scope Functions [*:*] , Manage Global External Functions , Execute Global External Functions , Query Manage Index [*:*:*] , Read-Only Admin

      cbexport will provide this error below in 7.0 Beta & the 6.6 error is attached :
      2021-02-25T22:05:53.167-05:00 WARN: (REST) (Attempt 1) (GET) Request to endpoint '/api/v1/export' failed with status code 403 – rest.(*Request).Execute() at request.go:142
      JSON export failed: failed to execute cluster operations: failed to transfer Eventing metadata: failed to get Eventing metadata: failed to get eventing metadata: failed to execute request:

      {"message":"Forbidden. User needs one of the following permissions","permissions":["cluster.eventing.functions!manage"]}

      Attachments

        Issue Links

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

          Activity

            People

              tony.hillman Tony Hillman (Inactive)
              richard.lewis Richard Lewis (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty