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

cbexport doc is missing that Full Admin must be used

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Trivial
    • Cheshire-Cat
    • None
    • 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(in 7.0 Beta):
      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

          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:

                PagerDuty