Cannot change repository passphrase (borg change-passphrase) #911
Labels
No labels
blocked
breaking
bug
data loss
design finalized
good first issue
new feature area
question / support
security
waiting for response
No milestone
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
borgmatic-collective/borgmatic#911
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What I'd like to do and why
I tried to change the passphrase of the backup repository via
borgmatic borg key:I took a look at the code: the above warning is really just a warning. The subcommand is executed anyway. This is good.
But the action seems to fail (or just do nothing). Maybe this is related to stdin / interactivity handling of borgmatic.
Then I tried to follow the advice of using borgmatic's integrated
keyaction:Thus, I see two issues:
keysubcommand does not take the chosen sub-sub-command into account. But I failed to come up with a better phrasing for this message. Thus, probably it is not worth being changed.borg key change-passphraseaction does not seem to work while being wrapped intoborgmatic.I am not sure, whether password changes are within the desired scope of borgmatic. Thus, you may feel free to close this issue if this is not the case.
Thank you for your time!
Other notes / implementation ideas
No response
Thanks for taking the time to file this! I can confirm both of the issues you've identified. The not taking the sub-sub-command into account in the warning is unfortunate, but yeah, may or may not be worth attempting to fix. But the lack of borgmatic wrapping
change-passphraseseems like something pretty straightforward to implement and within the scope of what borgmatic can/should do.This is a likely cause. One of the downsides of the
borgmatic borgescape hatch is that the "wrapped" commands aren't truly wrapped, and so borgmatic isn't smart enough to know what to do with input/output.Wrapping of
key change-passphraseis implemented in main and will be part of the next release! Thanks again for the suggestion.Released in borgmatic 1.9.0!