Re: [PATCH proxmox-backup v3 29/30] api: encryption keys: allow to toggle the archived state for keys

Thomas Lamprecht
2026-04-19T21:08:26Z

Am 14.04.26 um 14:59 schrieb Christian Ebner:
> diff --git a/src/api2/config/encryption_keys.rs b/src/api2/config/encryption_keys.rs
> @@ -122,8 +126,8 @@
>
> +pub fn toggle_key_archive_state(

When toggling to archived, shouldn't this also check whether the key is
currently set as active_encryption_key on any push job? delete_key does this
check via encryption_key_in_use(). As-is, archiving a key that's the active
encryption key for a push job silently breaks that job at runtime FWICT,
which would be rather confusing for the admin.