greenriver / hmis-warehouse

The Open Path HMIS Warehouse (Warehouse) project was initiated by the City of Boston's Department of Neighborhood Development office to coordinate data across various HMIS installations and supply de-duplicated client information to the Boston CAS (https://github.com/greenriver/boston-cas).
http://openpath.host
GNU General Public License v3.0
30 stars 14 forks source link

Use a redis based session store #4774

Closed eanders closed 3 days ago

eanders commented 3 days ago

Please squash merge this PR

Description

This moves from a cookie session store to a redis session store. Of note:

  1. Sessions are capped at 12 hours (by the config)
  2. Sessions are not removed by calling Rails.cache.clear, which is good
  3. Sessions can be invalidated from the admin Sessions page
  4. Deploying this change WILL invalidate all logged in users, so it should be done off hours

Type of change

Checklist before requesting review

gigxz commented 3 days ago

I'm getting authentication error failures on the graphql tests locally for this branch @eanders. Those tests use LoginAndPermissionsSpecHelper. Let me know if you want me to poke at those (and the HMIS System Tests), happy to take a look!