acm-udayton / acm-udayton/ACM-Meeting-Records
[FEATURE] Add redis/celery task to regularly clear expired revoked tokens
- Vorherrschende Sprache
- Python
- Sterne
- 7
- Forks
- 2
- Ø Merge
- 4 T. 23 Std.
- Gemergte PRs (30 T.)
- 2
Beschreibung
## Feature Description
Each day, Redis & Celery should automatically remove any expired tokens from the `revoked_jwts` table in the database.
## Why It's Worth Implementing
Without an automated system, we will quickly generate a rather large `revoked_jwts` table in the database. Since the tokens will already be specified to expire after 10 days (specified in #154), we can remove tokens older than that from the `revoked_jwts` table in the database automatically.
---
## Acceptance Criteria & Solution Requirements
*To close this issue, the following must be met (can be finalized in the comments):*
- [ ] 1. Application runs as expected with the new feature integrated seamlessly.
- [ ] 2. Code quality metrics are maintained, and linting has been considered in development.
- [ ] 3. Testing metrics are maintained, and tests have been updated/added wherever relevant during development.
- [ ] 4. Documentation has been updated to reflect the changes made during development.
- [ ] 5. Add Redis and Celery to the docker-compose.yml stack for the application.
- [ ] 6. Implement Redis and Celery within flask to automatically delete expired entries in `revoked_jwts` from the revoked tokens list once per day.
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.