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

Ability to scope cookies to a given Path

    Details

    • Type: Wish
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.13.0
    • Component/s: None
    • Labels:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: