duplicity-talk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Duplicity-talk] backup from multiple devices with GPG asymetric key enc


From: Jonathan Dray
Subject: [Duplicity-talk] backup from multiple devices with GPG asymetric key encryption - best practices
Date: Tue, 11 Jan 2022 22:45:51 +0100

Hi,

I'm new to duplicity and to GPG.
To catch up I read multiple articles and documentation pages online on the subject and I came up with a first working solution that I'm not happy with yet ;)
And also a couple of questions.

What I have today :

I have successfully sent encrypted data to the remote storage and restored the backed up files from it.
As for the GPG setup I've imported on my test laptop the encryption and signing subkey pairs (public and private for both)


Now I struggle on 2 main points :

Unattended backups

I have to enter the key passphrase on each backup operation.

I suspect it is the case because my sign key is password protected
I tried to set up the gpg agent and to store the password in the cache for an unlimited amount of time. Which doesn't work and isn't maybe a wise thing to do anyway.
That limitation makes it really hard / impossible to setup unattended backups


Multiple devices setup

I was advised to create a new key pair specific to backup / storage vs my initial master key that was essentially targeted to be used in a web of trust context (email / git ...).
Also by design gpg won't let me have multiple encryption subkeys.

Now with that in mind I guess I would have to create a specific backup key pair for each server right ?

To sum up

  • If I want a different encryption key per device (seems to be the safest option), I have to generate a new keypair for each device right ?
    • or I should consider that as the encryption private will rarely be on a given server, the risk of that key being stolen is low so having only one key for encryption is reasonable ?
  • As for the signing key I'm still confused on how to proceed...
    • should it be managed as a subkey of a device specific keypair ?
    • or one single key for all devices ?
    • multiple signing keys as subkeys of a separate keypair ?
    • What about the passphrase protection ?


Does that make sense ?
Again, thanks for your help !


PS: I also asked that question on the superuser / stack exchange platform: https://superuser.com/questions/1692005/duplicity-gpg-key-encryption-with-multiple-devices


reply via email to

[Prev in Thread] Current Thread [Next in Thread]