Skip to content
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

add passphrase debugging option? #8496

Open
ThomasWaldmann opened this issue Oct 28, 2024 · 0 comments
Open

add passphrase debugging option? #8496

ThomasWaldmann opened this issue Oct 28, 2024 · 0 comments

Comments

@ThomasWaldmann
Copy link
Member

ThomasWaldmann commented Oct 28, 2024

Sometimes people have issues when trying to access a borg repo from a new or newly installed host with borg telling them that the passphrase is incorrect.

Besides the obvious root cause of the passphrase really being incorrect, there are also:

  • keyboard issues (kbd mapping, deadkey vs nodeadkey with accents in passphrases, ...)
  • differences in unicode normalisation between platforms
  • troubles correctly setting BORG_PASSPHRASE, BORG_PASSCOMMAND, ... env vars

borg init (borg 1.x) and borg repo-create (borg 2) show the utf-8 hex bytes sequence of the encoded passphrase IF the passphrase is non-ascii.

We could:

  • init: display the hex bytes in any case (the deadkey issue can also happen within ascii, e.g. if the original passphrase has ^a and the wrong one happens to have â).
  • add an option to display the password and/or hex bytes when the password is USED and is determined to be incorrect.
  • show which env vars were used
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant