Skip to content

Remove temporary SSH keys after session expires

Borreguero Calvo, Jose requested to merge expiredsession into next

<img src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" decoding="async" class="lazy" data-src="https://img.shields.io/badge/reflectometry%20Task%20314%20-%20complete%20-%20grey">

Testing

  • edit file cfg/env.localdev, changing the value of SESSION_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

Merge request reports