Create one-off scheduled task to delete old OTKs (#17934)
To work around the fact that, pre-https://github.com/element-hq/synapse/pull/17903, our database may have old one-time-keys that the clients have long thrown away the private keys for, we want to delete OTKs that look like they came from libolm. To spread the load a bit, without holding up other background database updates, we use a scheduled task to do the work.
Showing
- changelog.d/17934.feature 1 addition, 0 deletionschangelog.d/17934.feature
- synapse/handlers/e2e_keys.py 46 additions, 0 deletionssynapse/handlers/e2e_keys.py
- synapse/storage/databases/main/end_to_end_keys.py 48 additions, 0 deletionssynapse/storage/databases/main/end_to_end_keys.py
- synapse/storage/schema/main/delta/88/05_drop_old_otks.sql.postgres 19 additions, 0 deletions...torage/schema/main/delta/88/05_drop_old_otks.sql.postgres
- synapse/storage/schema/main/delta/88/05_drop_old_otks.sql.sqlite 19 additions, 0 deletions.../storage/schema/main/delta/88/05_drop_old_otks.sql.sqlite
- tests/handlers/test_e2e_keys.py 70 additions, 0 deletionstests/handlers/test_e2e_keys.py
Loading
Please register or sign in to comment