expire old SKPI hashes

This commit is contained in:
link2xt
2026-04-16 20:03:46 +02:00
parent 900cb7f7aa
commit 900d88c5eb
4 changed files with 19 additions and 4 deletions

View File

@@ -874,6 +874,17 @@ pub async fn housekeeping(context: &Context) -> Result<()> {
.log_err(context)
.ok();
context
.sql
.execute(
"DELETE FROM tls_spki WHERE ? > timestamp + ?",
(time(), 30 * 24 * 60 * 60),
)
.await
.context("Failed to prune SPKI store")
.log_err(context)
.ok();
// Cleanup `imap` and `imap_sync` entries for deleted transports.
//
// Transports may be deleted directly or via sync messages,