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

Ability to scope cookies to a given Path

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.13.0
    • None
    • None

    Description

      If there are multiple individual Knox instances behind of a reverse proxy, then it would be very useful if the Cookies could be scoped to a given Path.

      If a reverse proxy is put at the font of multiple Knox instances then scoping the Cookies to domain is not sufficient since the /gateway1/... and /gateway2/... cookies will overwrite each other.

                                +---------------------------------+
                                |                                 |
                                |        Reverse Proxy            |
                                |                                 |
                                +---------------------------------+
                                        |            |
                     /gateway1/topology |            | /gateway2/topology
                                        |            |
           +----------------------------v----+    +--v------------------------------+
           |                                 |    |                                 |
           |  Knox 1 (/gateway1/topology)    |    |  Knox 2 (/gateway2/topology)    |
           |                                 |    |                                 |
           +---------------------------------+    +---------------------------------+
      
      

      Proposal:
      Cookies can be scoped with Set-Cookie: Path=/somepath header field.

      It would be very convenient if this scope path could be set in gateway-site.xml and Knox would return it in Set-Cookie header field to clients.

      Attachments

        1. knox-911.patch
          20 kB
          Attila Kanto

        Issue Links

          Activity

            People

              akanto Attila Kanto
              akanto Attila Kanto
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: