Kyoso-Team / kyoso

A web application that takes osu! tournaments beyonds spreadsheets.
http://kyoso.sh
GNU Affero General Public License v3.0
2 stars 1 forks source link

Implement cron endpoint for deleting old sessions #85

Closed L-Mario564 closed 1 month ago

L-Mario564 commented 1 month ago

Addresses #72.

This endpoint is only meant to be used in cron jobs. For that reason, I've added an authorization header with the format Cron {CRON_SECRET}.

The endpoint itself deletes expired sessions older than 7 days. This was implemented for greater compliance with GDPR.

ArtemOsuskyi commented 1 month ago

I suppose the cron itself that triggers this endpoint isn't implemented yet? Otherwise looks good to me

L-Mario564 commented 1 month ago

I suppose the cron itself that triggers this endpoint isn't implemented yet? Otherwise looks good to me

That's correct, I'll be setting up any cron jobs closer to production.