Aiven-Open/pghoard

local-tar encrypts the metadata file

Closed this issue · 1 comments

This means you need to provide the private key in pghoard.json to do backups. which is odd, because I thought the whole point of public key and private key, is you only need the private key when doing a restore. I think the metadata file should not be encrypted.

Does anyone have an idea why it is encrypted?

Ive closed the MR, because it might be pointless if there is a good reason for encrypting the .pghoard file. Perhaps the original contributor does not use encryption so it was never considered.

At the moment though if you want to use local-tar + encryption you must include the private key in the pghoard.json file. At least a doc change to highlight this would be good.