Skip to content

Instantly share code, notes, and snippets.

@DistortedBit
DistortedBit / PBSPlugin.pm
Last active August 16, 2022 10:35
Proxmox VE sends backup in clear text when the encryption key file is not found in place
sub pbs_encryption_key_file_name {
my ($scfg, $storeid) = @_;
return "/etc/pve/priv/storage/${storeid}.enc";
}
# Returns a file handle if there is an encryption key, or `undef` if there is not. Dies on error.
sub pbs_open_encryption_key {
my ($scfg, $storeid) = @_;