Uploaded image for project: 'Data Collection, Analytics, and Events'
  1. Data Collection, Analytics, and Events
  2. DCAEGEN2-1541

VEScollector basic auth not working

    XMLWordPrintable

Details

    Description

      While testing DCAEGEN2-1539 (blueprint and steps provided under jira); VESCollector came up successfully and enabled for https, however basic-auth validation was not correct.

      Collector configuration
      
      auth.method=basicAuth## Combination of userid,hashPassword encoded pwd list to be supported
      ## userid and pwd comma separated; pipe delimitation between each pair
      ## Password is generated by crypt-password library using BCrypt algorithm stored in dcaegen2/sdk package
      ## or https://nexus.onap.org/#nexus-search;quick~crypt-password
      header.authlist=sample1,$2a$10$0buh.2WeYwN868YMwnNNEuNEAMNYVU9.FSMJGyIKV3dGET/7oGOi6

       

       

      Below are curl o/p from which it appears basic auth is not functioning as expected.

       

      VALID
      vv770d@pod-onap-01-vjhost:~$ curl -i -u 'sample1:sample1' -X POST -d @fault.txt --header "Content-Type: application/json" https://10.12.5.9:30417/eventListener/v5 -k
      HTTP/1.1 202
      Content-Type: application/json
      Content-Length: 8
      Date: Wed, 29 May 2019 19:42:18 GMT
      Accepted
      
      INVALID
      vv770d@pod-onap-01-vjhost:~$ curl -i -u 'sample1:sample' -X POST -d @fault.txt --header "Content-Type: application/json" https://10.12.5.9:30417/eventListener/v5 -k
      HTTP/1.1 202
      Content-Type: application/json
      Content-Length: 8
      Date: Wed, 29 May 2019 20:00:52 GMT
      Accepted
      
      INVALID
      vv770d@pod-onap-01-vjhost:~$ curl -i -u 'sample1:samp' -X POST -d @fault.txt --header "Content-Type: application/json" https://10.12.5.9:30417/eventListener/v5 -k
      HTTP/1.1 202
      Content-Type: application/json
      Content-Length: 8
      Date: Wed, 29 May 2019 20:01:12 GMT
      

      Attachments

        1. log.log
          26 kB
        2. basicAuth.png
          basicAuth.png
          1.35 MB
        3. basic-auth-dublin.png
          basic-auth-dublin.png
          1.28 MB
        4. image-2019-06-08-06-55-15-003.png
          image-2019-06-08-06-55-15-003.png
          24 kB
        5. image-2019-06-08-06-55-50-427.png
          image-2019-06-08-06-55-50-427.png
          15 kB

        Issue Links

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

          Activity

            People

              ZlatkoMurgoski Zlatko Murgoski
              vv770d Vijay Venkatesh Kumar
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: