Uploaded image for project: 'Apache Knox'
  1. Apache Knox
  2. KNOX-1364

Cookie scoping path should contain the topology name

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.14.0
    • 1.3.0
    • None

    Description

      When using knox in PROXY only mode, cookies are set with the following domain and path.

      *https://sandbox-hdf.hortonworks.com:5443/gateway/local-hdf/ambari#/login*
      I login to ambari on this URL, and I get a cookie with
      domain: sandbox-hdf.hortonworks.com
      path: gateway

      If I try to access another ambari instance through the same knox in the following URL:
      *https://sandbox-hdf.hortonworks.com:5443/gateway/local-hdf2/ambari#/login*
      domain: sandbox-hdf.hortonworks.com
      path: gateway

      So basically this cookie will overwrite the previous one and will trigger a logout from the first ambari ui.

      Proposed solution:
      include the topology name in the cookie path:
      domain: sandbox-hdf.hortonworks.com
      path: gateway/local-hdf

      Attachments

        1. KNOX-1364.patch
          8 kB
          Laszlo Nardai
        2. Screen Shot 2018-12-07 at 9.19.39 AM.png
          118 kB
          Kevin Risden
        3. Screen Shot 2018-12-07 at 9.20.27 AM.png
          121 kB
          Kevin Risden
        4. KNOX-1364.patch
          7 kB
          Kevin Risden

        Issue Links

          Activity

            People

              krisden Kevin Risden
              lnardai Laszlo Nardai
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: