]> git.proxmox.com Git - pve-storage.git/commitdiff
pbs: die if master key is missing
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Tue, 16 Aug 2022 11:55:43 +0000 (13:55 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Tue, 16 Aug 2022 11:55:43 +0000 (13:55 +0200)
while the resulting backups are encrypted, they would not be restorable
using the master key (only) if the original PVE system is lost.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
PVE/Storage/PBSPlugin.pm

index 21a2a0aada9d47d21ed33634ec4c15d665674aef..afc6ea408d282a6fbc4c4375b4c219bef24f4688 100644 (file)
@@ -211,7 +211,7 @@ sub pbs_open_master_pubkey {
     my $keyfd;
     if (!open($keyfd, '<', $master_pubkey_file)) {
        if ($! == ENOENT) {
-           warn "master public key configured but no key file found!\n"
+           die "master public key configured but no key file found!\n"
                if $scfg->{'master-pubkey'};
            return undef;
        }