Add the change passphrase feature#2224
Conversation
|
This is the design I thought to got with, I have considered a way to logically group this in a new drop down button.
I have read the requirements mentioned in #303 by everyone and will try to do this the best way possible. Any suggestions regarding the UI design or functionality are always welcome! |
|
How about moving more lesser-used features (like unlink) into the submenu? and I'd use 3 dots as the submenu icon. I feel it's more widely used. The cog icon usually means Settings. |
I can do that.
Yeah, so I was actually stuck with these two, I feel like the horizontal one looks a bit better. But if we want to go with vertical one then there's already a 3 dot present ellipse-v.svg we can reuse that icon, and I can't find a horizontal version of that, I'll have to rotate and make an new svg in that case. Icons used were sourced from Google Material Icons |
|
I would either do a button for both or none. |
|
@m3nu I'd like your opinion on a few things. The current implementation changes the passphrase for the currently selected repo (same behavior as how unlink works).
I am thinking of going with the 1st option, to avoid the need for too many dialogs popping up. |
Can you change the passphrase without knowing the existing one? I doubt it. Still better to run only one command in total for this and throw an error if it fails for any reason (issue with connecting to repo or wrong passphrase or anything else).
This one is probably better because the user isn't left with an open dialog. |
ssr-2025-05-03_09.33.02.mp4 |
|
Added passphrase change only for encryption type = repokey, as mentioned in the comment. |
|
The UI part I made some adjustments for the bottom label property and overall widget layout was changed from
Now about the error, could you tell me how to reproduce this? because I couldn't. These are the steps I tried:
Is this maybe a remote repo specific issue? Could you test it out with a local repo and let me know if it works? |
|
It's not due to the remote repo. I check the macOS keychain and it still had the old password after the change. After changing the password manually, it worked again. So it might be macOS-specific. Could also be with keychain permissions. |
|
I might have missed the part to update the keyring since it worked properly in linux during testing (for some reason). I have updated the PR, can you verify? Thanks |
|
Nope. Password is still unchanged in keyring. Quite possible that our current macos code doesn't allow overwriting an existing item. The method we use is Does it work on Linux? How did it work on Linux without this code? I guess we need to add a |
Yeah sorry, my mistake, I had the keyring code written in the
I've added some changes to consider this. It works ok in Linux (I've tested it out). I've added the macOS code as well in |
|
I've added the appropriate info and warning icon properties to the message boxes. The icons should now display correctly. |
|
Recent changes include:
The changes has been tested in MX Linux 22 (XFCE). |
|
This new feature works as expected locally and could be merged right away. I would just add 2 things (which could be in a separate PR, if this one is getting too big or blocking something):
|
|
Great! Will test one more time and then merge. |













Description
This PR intends to add the much requested and discussed functionality to change passphrase in vorta UI.
Related Issue
Closes #303
Motivation and Context
This change adds the ability to change the passphrase directly within the Vorta backup client through a user-friendly interface. Previously, users had to rely on manual borg command-line operations to update their passphrase. This simplifies the process, improving usability by allowing users to easily update their passphrase without leaving the Vorta interface.
How Has This Been Tested?
Manual testing and unit testing.
Types of changes
Checklist:
I provide my contribution under the terms of the license of this repository and I affirm the Developer Certificate of Origin.