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

Eventing RBAC: Delete operations are failing with LCB_ERR_AUTHENTICATION_FAILURE even though user has required set of permissions

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Blocker
    • 7.1.0
    • 7.1.0
    • eventing
    • Enterprise Edition 7.1.0 build 1545

    Description

      STEPS
      Create an rbac user john having following permissions.

      Manage Scope Functions [src_bucket:_default] , Data Writer [metadata:*:*] , Data Writer [dst_bucket:*:*] , Data Reader [metadata:*:*] , Data DCP Reader [src_bucket:*:*] , Data DCP Reader [dst_bucket:*:*]
      

      Login as user John.

      CASE A
      Import and deploy advanced_bucket_op handler (https://issues.couchbase.com/secure/attachment/165359/advance_bucket_op.json).
      Add docs into src_bucket, mutations are processed as expected.
      Remove docs from src_bucket, mutations are processed as expected.

      CASE B
      Import and deploy bucket_op handler (https://issues.couchbase.com/secure/attachment/165360/bucket_op-2.json).
      Add docs into src_bucket, mutations are processed as expected.
      Remove docs from src_bucket, mutations are failing with LCB_ERR_AUTHENTICATION_FAILURE (206) even though user has required set of permissions.

      2021-10-22T17:11:25.043+05:30 [INFO] {"exception":"{\n  \"message\": {\n    \"code\": 16,\n    \"desc\": \"LCB_ERR_AUTHENTICATION_FAILURE (206): Authentication error\",\n    \"name\": \"LCB_ERR_AUTHENTICATION_FAILURE\"\n  },\n  \"stack\": \"Error\\n    at OnDelete (bucket_op.js:9:28)\"\n}","file":"bucket_op.js","line":8,"srcLine":"delete dst_bucket[meta.id];","stack":"Error\n    at OnDelete (bucket_op.js:9:28)"}
      2021-10-22T17:11:24.173+05:30 [INFO] "Doc deleted/expired" "pymc1"
      2021-10-22T17:11:22.813+05:30 [INFO] {"exception":"{\n  \"message\": {\n    \"code\": 16,\n    \"desc\": \"LCB_ERR_AUTHENTICATION_FAILURE (206): Authentication error\",\n    \"name\": \"LCB_ERR_AUTHENTICATION_FAILURE\"\n  },\n  \"stack\": \"Error\\n    at OnDelete (bucket_op.js:9:28)\"\n}","file":"bucket_op.js","line":8,"srcLine":"delete dst_bucket[meta.id];","stack":"Error\n    at OnDelete (bucket_op.js:9:28)"}
      

       

      Attachments

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

        Activity

          People

            ankit.prabhu Ankit Prabhu
            sujay.gad Sujay Gad
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty