Remove temporary SSH keys after session expires
Testing
- edit file
cfg/env.localdev
, changing the value ofSESSION_COOKIE_AGE
to 15 (session expires after 15 seconds of inactivity). - build and deploy the local environment with
make startdev
. - point the browser to
localhost
. - login with your UCAMS account.
- refresh the page, nothing should change.
- wait for about 20 seconds, then refresh the page. Now you should be sent back to the login page, since your session has expired.
Work Done
- Ignore Dockerfile for localdev environment
- define task to clean sessions and related SSH keys
- add periodic task for cleaning sessions
- invoke celery daemon for periodic tasks and crontab jobs
- display Session model in the admin website
- Dockefile for building the app in CI
- bind mount the source directory only for local environment
- make targets meant to be run in the containers should go on its own Makefile
Edited by Borreguero Calvo, Jose