Repository navigation
Warning: Browser Password Saving might break Git Backups #1567
chawl3y
started this conversation in
Show and tell
Replies: 1 comment 1 reply
|
Thanks for reporting this. Good catch. I think the better fix is on our side: the Git credential field shouldn’t get autofilled with the LeafWiki login password and then be saved unintentionally. We should adjust the field/autocomplete behavior and probably only show the credential input when explicitly replacing the stored value. Thanks for the detailed report! |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Saving your passwords in your browser is a bad practice anyway, but it's a huge convenience, so I do it, too.
In this case, my LeafWiki account name (chawley) is the same username for my (private) Git account to which I am backing up LeafWiki.
This is important. I found out the hard way after my Git Content Backup kept breaking.
After configuring Git backups initially, when you visit the Git Content Backup screen, the "Password or access token" box is blank (with the prompt "Leave blank to keep the stored value").
Since my LeafWiki password is saved in my browser, whenever I visited the page after my initial configuration (say to change the sync interval), my browser kept populating the "Password or access token" box with the password I'd saved for my LeafWiki account (since the username was the same)
(I should have noticed that the "Password or access token" box was populated with the dots of a masked password that was too short to be an API Token.)
When I clicked save to update whatever else I'd changed on the screen, I also changed my git password without noticing.
It wasn't until hours later that I noticed the red icon in the upper right corner warning me that the git backup was failing.
I'd go to the screen, re-input my password, test the connection and all was good.
Until I changed the sync interval again, and it happened all over again.
The takeaway? Don't use your browser to save your passwords.
All reactions