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

Update the Behaviour of Indexer api/v1/stats endpoint.

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • Cheshire-Cat
    • Cheshire-Cat
    • gsi
    • DOC-2021-May23-S10
    • 1

    Description

      As of today
      api/v1/stats endpoint (without any bucket or scope or collection specified) will return stats for all the indexes only if user has "Query System Catalog" privileges. Else will not return any stats.

      After change MB-45446
      api/v1/stats endpoint (without any bucket or scope or collection specified) will return stats for all the indexes in Bucket, Scope, Collection for which user has "Query Manage Index" Permissions for even if he does not have "Query System Catalog" privileges to get stats for all indexes.

      curl -u user1:asdasd http://localhost:9102/api/v1/stats
      Will now return stats for the indexes which user1 has "Query Manage Index" Permissions for. It will return stats for all the indexes if user1 has "Query System Catalog" permission.

      Attachments

        Issue Links

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

          Activity

            People

              simon.dew Simon Dew
              sai.teja Sai Krishna Teja
              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