Add "cron" job to Kubernetes deloyment manifest for Sonador to automatically clear expired sessions
With the enhancements of the Sonador authentication/authorization session, it will be important that production deployments clear expired sessions (where resource authorization data will be stored) on a regular basis. While there are many ways to do this, one of the easiest is to use the Django clearsessions
management command.
For Sonador instances deployed to Kubernetes, a CronJob
task should be created which is able to call the command on a regular schedule. Once a day should probably be enough.