backrest icon indicating copy to clipboard operation
backrest copied to clipboard

Support --insecure-no-password

Open yushiyangk opened this issue 1 year ago • 8 comments

Is your feature request related to a problem? Please describe. I would like to create backups of non-confidential files without password encryption.

Describe the solution you'd like Since restic 0.17, the --insecure-no-password flag has been supported to allow creation of repos without password encryption. It would be great if Backrest could support this flag also.

Right now if I try to create a repo without a password, I get an error message saying

Missing repo password. Either provide a password or set one of the env variables RESTIC_PASSWORD, RESTIC_PASSWORD_COMMAND, RESTIC_PASSWORD_FILE.

Perhaps there can be a checkbox for disabling the password? Alternatively, if the goal is to discourage passwordless backups, could the error condition be updated to allow no password to be set when --insecure-no-password is added as a flag?

Thank you!

yushiyangk avatar Sep 25 '24 19:09 yushiyangk

Hey, very reasonable. The blocker here at the moment is just a UI validation: https://github.com/garethgeorge/backrest/blob/main/webui/src/views/AddRepoModal.tsx#L690-L738 . The existing validation should additionally check what flag overrides have been specified (I think a simple substring search for --insecure-no-password would be sufficient).

This should be supported out of the box by the daemon. I'm about to leave on vacation so I won't get to this for a few weeks, but it should be very straightforward.

garethgeorge avatar Sep 26 '24 19:09 garethgeorge

i'm also interested in this feature.

caiotizio avatar Dec 20 '24 14:12 caiotizio

@caiotizio as far as I can tell, this has already been implemented in the latest version. Perhaps @garethgeorge can confirm this?

yushiyangk avatar Jan 08 '25 18:01 yushiyangk

@caiotizio as far as I can tell, this has already been implemented in the latest version. Perhaps @garethgeorge can confirm this?

Just tested. On 1.7.1 this issue still persists

fabsau avatar Jan 27 '25 23:01 fabsau

I'd love to have this too!

Risinggoblin avatar Apr 02 '25 23:04 Risinggoblin

Exactly my situation here. Since I want to send backups from the cloud server to my home Synology (where nobody can read data except myself) - I don't want to specify any encryption string. Is there a way to initialise a repo using cli and then somehow import its settings to Backrest's config?

3apa3a-b-ta3e avatar May 08 '25 15:05 3apa3a-b-ta3e

is there any chance to add this feature in the future?

caiotizio avatar Aug 28 '25 12:08 caiotizio

Same here, I didn't assign a password to my repo....

bbtuxi avatar Oct 27 '25 17:10 bbtuxi