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

Requests to /analytics/link fail with unauthorized user when using certificate authentication

    XMLWordPrintable

Details

    • Bug
    • Resolution: Not a Bug
    • Major
    • 7.1.0
    • 7.1.0
    • analytics
    • None
    • Untriaged
    • 1
    • Unknown

    Description

      Fails on all versions from 6.6 to 7.1

      Create a single node cluster with kv and cbas service and setup certificate authentication
      Any request to /analytics/link fails with

      {
              "errors": [{ 
                      "code": 20000,          "msg": "Unauthorized user."     } 
              ]}
      

      curl -v https://172.23.111.155:18095/analytics/link --cacert ca.pem --cert client.pem --key client.key
      

      Requests to /analytics/service with the same certs and keys succeed

      curl -v -X POST https://172.23.111.155:18095/analytics/service --cacert ca.pem --cert client.pem --key client.key --data '{"statement":"SELECT d.* FROM Metadata.`Dataset` d WHERE d.DataverseName <> \"Metadata\""}'  --header "Content-Type: application/json"
      

      {
              "requestID": "3d5332e4-8e42-46ee-8d42-9fd90ac5e8c9",
              "signature": {
                      "*": "*"
              },
              "results": [  ]
              ,
              "plans":{},
              "status": "success",
              "metrics": {
                      "elapsedTime": "127.448069ms",
                      "executionTime": "111.512198ms",
                      "resultCount": 0,
                      "resultSize": 0,
                      "processedObjects": 16
              }
      }
      

      Attachments

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

        Activity

          People

            jake.rawsthorne Jake Rawsthorne
            jake.rawsthorne Jake Rawsthorne
            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