[ 
https://issues.apache.org/jira/browse/KNOX-3617?focusedWorklogId=1057066&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-1057066
 ]

ASF GitHub Bot logged work on KNOX-3617:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 25/Nov/26 10:08
            Start Date: 25/Nov/26 10:08
    Worklog Time Spent: 10m 
      Work Description: hanicz opened a new pull request, #1546:
URL: https://github.com/apache/knox/pull/1546

   [KNOX-3617](https://issues.apache.org/jira/browse/KNOX-3617) - Improve pac4j 
session cookie encryption
   
   ## What changes were proposed in this pull request?
   
   Rework how `KnoxSessionStore` encrypts pac4j session cookies:
   
   - Switch the cookie encryption to AES-GCM, with the cookie name included as 
associated data
   - Derive the key once at startup from the topology's existing 
`pac4j.password`, honoring `gateway.crypto.pbe.algorithm`, 
`gateway.crypto.iteration.count` and `gateway.crypto.key.length`
   - Treat cookies that can't be read as "no session" instead of throwing
   - Remove the unused `commons-codec` and `commons-io` dependencies from the 
module
   - Existing pac4j session cookies are no longer accepted, so users log in 
once after upgrading
   - `gateway.crypto.transformation` and `gateway.crypto.salt.size` no longer 
apply to pac4j cookies
   
   ## How was this patch tested?
   
   - New and updated unit tests in `KnoxSessionStoreTest`, including cookies 
read across separate store instances
   - Login tested manually on a local gateway with a pac4j topology




Issue Time Tracking
-------------------

            Worklog Id:     (was: 1057066)
    Remaining Estimate: 0h
            Time Spent: 10m

> Improve pac4j session cookie encryption
> ---------------------------------------
>
>                 Key: KNOX-3617
>                 URL: https://issues.apache.org/jira/browse/KNOX-3617
>             Project: Apache Knox
>          Issue Type: Task
>          Components: Server
>    Affects Versions: 3.0.0
>            Reporter: Tamás Hanicz
>            Assignee: Tamás Hanicz
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>




--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to