[pbs-devel] applied: [PATCH proxmox-backup] proxmox-tape: api: restore_key-code moved to tape-encryption-keys

Thomas Lamprecht t.lamprecht at proxmox.com
Thu Apr 14 09:50:21 CEST 2022


On 13.04.22 11:30, Markus Frank wrote:
> The restore_key api-endpoint is tape/drive/{drive}/restore-key.
> Since I cannot set the url parameter for the drivename to null or
> undefined, when restoring by exported-key, I moved the 
> added restore_key-api-code to 
> "create_key aka POST api2/json/config/tape-encryption-keys" and
> added an ApiHandler call in the cli's "restore_key" to call
> "create_key" in the api.
> 
> Signed-off-by: Markus Frank <m.frank at proxmox.com>
> ---
>  src/api2/config/tape_encryption_keys.rs | 39 ++++++++++++++++---
>  src/api2/tape/drive.rs                  | 51 +++++++------------------
>  src/bin/proxmox_tape/encryption_key.rs  | 19 ++++++---
>  3 files changed, 61 insertions(+), 48 deletions(-)
> 
>

applied, thanks!

Fixed the falsely required KDF param if a key was passed in a followup, together with some
cleanups.





More information about the pbs-devel mailing list