AscendingCreations / AxumSession

Axum Session Management Libraries that use Sqlx
MIT License
136 stars 28 forks source link

Add Option to Generate Keys per SessionID. #40

Closed genusistimelord closed 1 year ago

genusistimelord commented 1 year ago

This is to increase Security to the max by enforcing a server side managed Key per Session Cookie that gets a keyID sent to the Browser to allow decryption of the Other SessionID and Storage Cookies. This allows use to do Key cycling to prevent more types of Attacks on the system.

Needed for this to work.

  1. Database Needs to support Saving KeyID separate from SessionID Storage.
  2. KeyID needs to be a UUID too and can be encrypted to increase reliability.
  3. Key Database side needs to be Encrypted for long term Storage and Security.
  4. Key is only accessible to the Server Side and is loaded via the KeyID.
  5. KeyID needs the capability to be Renewed like SessionID.
  6. Key needs the ability to be Renewed.
  7. System need to not break the current API config enabled.
genusistimelord commented 1 year ago

Completed with https://github.com/AscendingCreations/AxumSessions/commit/56d9a54de2d05acf51789fd896af9edbda0b9c1c