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

User with "manage collections in scope" role can create scopes

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 7.0.0
    • Cheshire-Cat
    • ns_server
    • None
    • Untriaged
    • 1
    • Unknown

    Description

      Couchbase 7.0.0-4678

      A user with only the "Manage Collections in Scope" role can create scopes if the role uses a wildcard for the scope.

      To reproduce, create a "default" bucket and create a user with the only the "Manage Collections in Scope" role for that bucket, with wildcard for the scope:

          Manage Collections in Scope [default:*]

      Then create a scope:

      curl -X POST -v -u username:password http://localhost:8091/pools/default/buckets/default/collections -d name=newScope 

      The operation succeeds.

      If the role is for a specific scope (like "Manage Collections in Scope [default:someScope]") then scope creation fails with "Forbidden".

      Is this the expected behavior?

       

      Attachments

        Issue Links

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

          Activity

            People

              ritam.sharma Ritam Sharma
              david.nault David Nault
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty