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

[Eventing RBAC][UI] Unable to modify function settings when user has only eventing_manage_functions role

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • Morpheus
    • 7.1.0
    • eventing
    • Enterprise Edition 7.1.0 build 2480
    • Untriaged
    • Centos 64-bit
    • 1
    • No

    Description

      Issue
      Any rbac user having eventing_manage_functions role with no data privileges is attached is unable to modify function settings for any given handler.

      steps to reproduce

      1. Create eventing handler abcd using full admin role.
      2. Create rbac user user1 having following role.

        Manage Scope Functions [*:*]
        

      3. Login as user1.
      4. User is unable to modify function settings, save button is disabled.
      5. No such issues observed in REST.

        curl -k -XPOST -d '{"deployment_status":true,"processing_status":true,"log_level":"TRACE"}' https://user1:asdasd@10.112.190.102:18096/api/v1/functions/abcd/settings
        {
         "code": 0
        }
        

      6. Add following data privileges for user1 in addition to manage scope functions role.

        Data Writer [*:*:*] , Data Reader [*:*:*] , Data DCP Reader [*:*:*]
        

      7. Login as user1, user is able to modify and save function settings.

      Attachments

        Issue Links

          For Gerrit Dashboard: MB-51442
          # Subject Branch Project Status CR V

          Activity

            People

              sujay.gad Sujay Gad
              sujay.gad Sujay Gad
              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