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


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to