-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change password #303
Comments
Sounds reasonable and shouldn't be too hard to provide with https://borgbackup.readthedocs.io/en/stable/usage/key.html#borg-key-change-passphrase |
What do people think about something like this for the UI? I'd appreciate some input to refine this or brainstorm something else. The issue that come to mind with this is that it might be a little confusing to have a button next to encryption that only changes the passphrase and doesn't change the encryption type. It would also benefit from adding a title above the fields like "Change Passphrase" and from some sort of UI element saying whether the passwords match. |
Thinking a bit more about the 2x password design, the existing init new repository lacks a second prompt for the passphrase. That seems like an issue. If someone accidentally types the passphrase wrong and then the machine with vorta needs to be restored but the only copy of the passphrase was on that machine, the passphrase that was accidentally typed incorrectly on init is gone. |
@vapaavetehinen some thoughts:
|
I've started work on this in a fork under a branch 'change-password'. I will update here with questions and progress. So far I've added a UI component. Will work on adding the logic to pass down the borg command next. |
Great! |
May I add to the issue, since I think is related. The UI maybe should permit change anything about the repository (same UI as "Add existing repository"). |
Is there a workaround for this feature in the meantime? |
Changing the password with borg cli and removing and readding the repo on vorta |
Guess this somehow went off the radar and could get higher priority. @m3nu why is this "far away" milestone? |
Is there any update on it's status? I would like to work on Passphrase change. |
Feel free to pick it up. To my knowledge nobody is working on it. However, it would be good to discuss the intended changes with mockups first before you start implementing. |
@Hofer-Julian Thanks! For passphrase change dialog, I've designed a simple dialog. I'm considering this (realised after taking these screenshots):
|
The screenshots look good.
The action should only be enabled when the encryption is of type |
@real-yfprojects Would you prefer to hide the option or disable it? |
Disabling since this tells the user that the feature exists. |
@jetchirag please be more precise and consistent with wording:
borg itself does not have a minimum passphrase length requirement, not sure how vorta wants to deal with it. freedom vs. trying to keep users safe. |
@ThomasWaldmann Will do. For "password" wording, I've reused the password validator function which I think is in utils since "New Repository" also uses it. Should I update the function to use "passphrase"? It will impact this dialog as well. Lines 473 to 485 in c4d16e2
|
Do you think it would be worth having an option to disable this validation? |
A long time ago I tried to write a function that determines pw quality/strength. But I realized that isn't easily possible without a lot of world knowledge. BTW, changing this is not really in scope of this PR. Just use whatever vorta did until now. |
Why not instead of a completely new popup for only the password change, the UI be more like the "initialize new backup repository" and allow editing the repository itself? |
Which other things could be edited on a repo after adding it, @eSoares ? |
The path it self or the extra borg arguments. In the past I relied in a ssh host name that latter I wanted to rename, but that caused issues if I didn't edit the repo in vorta. |
That is a good point. |
You can always unlink and readd a repository. How is that different from what you propose?
Those a good ideas. However I think this would exceed the scope of this PR. Let's open a new issue for that. |
I'm thinking of different dialog for each edit or seperating passphrase and these two configs.
I'll send new mockups after finishing this issue. |
We can create a new menu and put config options there. I like the first option where we can keep passphrase change and edit repo options seperately but we can also create tab in edit dialog and put passphrase option there (image 2; ignore eye icon) as suggested by @eSoares . How does it look? |
Is your feature request related to a problem? Please describe.
A way to change the password I provided when the repo were created.
Describe the solution you'd like
A text field with password just like the other init parameters.
The text was updated successfully, but these errors were encountered: