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

RBAC: Review error message for forbidden case (failed permissions checks)

    XMLWordPrintable

Details

    • Untriaged
    • Unknown

    Description

      Review this error message to see if this matches what you want:

      {"message":"Forbidden. User needs one of the following permissions","permissions":["cluster.bucket[travel-sample].fts!write"]}
      

      To reproduce, you'll need the travel-sample bucket installed and a user named marty with fts.searcher role assigned (only).

      curl -XPUT -H "Content-Type: application/json" http://marty:password@localhost:8094/api/index/hotels  -d '{
        "type": "fulltext-index",
        "name": "hotels",
        "sourceType": "couchbase",
        "sourceName": "travel-sample",
        "planParams": {
          "maxPartitionsPerPIndex": 171,
          "numReplicas": 0,
          "hierarchyRules": null,
          "nodePlanParams": null,
          "pindexWeights": null,
          "planFrozen": false
        },
        "params": {
          "doc_config": {
            "mode": "type_field",
            "type_field": "type"
          },
          "mapping": {
            "default_analyzer": "standard",
            "default_datetime_parser": "dateTimeOptional",
            "default_field": "_all",
            "default_mapping": {
              "display_order": "1",
              "dynamic": true,
              "enabled": false
            },
            "default_type": "_default",
            "index_dynamic": true,
            "store_dynamic": true,
            "type_field": "type",
            "types": {
              "hotel": {
                "display_order": "0",
                "dynamic": true,
                "enabled": true
              }
            }
          },
          "store": {
            "kvStoreName": "mossStore"
          }
        },
        "sourceParams": {
          "clusterManagerBackoffFactor": 0,
          "clusterManagerSleepInitMS": 0,
          "clusterManagerSleepMaxMS": 2000,
          "dataManagerBackoffFactor": 0,
          "dataManagerSleepInitMS": 0,
          "dataManagerSleepMaxMS": 2000,
          "feedBufferAckThreshold": 0,
          "feedBufferSizeBytes": 0
        }
      }'
      

      Attachments

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

        Activity

          People

            artem Artem Stemkovski
            will.gardella Will Gardella (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty