Uploaded image for project: 'Couchbase C client library libcouchbase'
  1. Couchbase C client library libcouchbase
  2. CCBC-1216

Add support for user impersonation

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 3.2.2
    • None
    • library

    Description

      Implement user impersonation as specified. See the parent ticket for more information and reference to the Go SDK which has already been completed.

      From internal discussions, note that we will need to perform the following:

      1. Review the User Impersonation SDK-RFC on this topic to be sure we're being consistent with the RFC and Go implementation.
      2. Refactor the framing extras (flexible extras) logic to support the new user impersonation framing extra.
      3. Also note that any services using HTTP will need to pass the new cb-on-behalf-of header value. See the Go SDK implementation for reference if needed.
      4. We will introduce internal functions (not shown on the public interface) for each of the affected command functions based on a consistent pattern using onbehalfof. For example, for a Query request command, it will be: lcb_cmdquery_onbehalfof(lcb_CMDQUERY *cmd, const char *user, size_t user_len) and for a KV store command it would be lcb_cmdstore_onbehalfof(lcb_CMDSTORE *cmd, const char *user, size_t user_len).

      Attachments

        Issue Links

          For Gerrit Dashboard: CCBC-1216
          # Subject Branch Project Status CR V

          Activity

            People

              avsej Sergey Avseyev
              brett19 Brett Lawson
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty