Re: my dumb mistake

2019-01-15 Thread Ben Oliver

On 2019-01-15 21:58:37, Aleksei Fedotov wrote:

Git would have not protected you from the case you described, but it
protects you from losing data and makes all changes traceable and
reversible.


I think it would have, because it makes the commit when you close the=20
editor.

So the password he wanted would have been stored in the second to last=20
commit.


signature.asc
Description: PGP signature
___
Password-Store mailing list
Password-Store@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/password-store


Re: my dumb mistake

2019-01-15 Thread Joshua N Pritikin
On Tue, Jan 15, 2019 at 09:58:37PM +0100, Aleksei Fedotov wrote:
> If you store your passwords in a Git repository, they are automatically
> tracked by pass. Any edits are committed to the repository and any
> accidental changes could be reverted.

Yeah, I use GIT all the time for software development, etc

> Git would have not protected you from the case you described,

Ah ha! So consider it a feature request to protect against this error.

> but it protects you from losing data and makes all changes traceable 
> and reversible.

Sure
___
Password-Store mailing list
Password-Store@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/password-store


Re: my dumb mistake

2019-01-15 Thread Reto Brunner
On Tue, Jan 15, 2019 at 03:26:52PM -0500, Joshua N Pritikin wrote:
> At the beginning of "pass edit foo", would it be possible to snapshot
> the previous version of the file? Then if the file didn't match it's
> snapshot, the user could be warned.

Do you have your password store under git?
Because that's what git does...

If not, now would be the time to read the man page :P
Should you use git, just revert the commit.

Cheers,
Reto
___
Password-Store mailing list
Password-Store@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/password-store


Re: my dumb mistake

2019-01-15 Thread Ian Eure



On January 15, 2019 12:41:37 PM PST, Joshua N Pritikin  
wrote:
>On Tue, Jan 15, 2019 at 09:34:14PM +0100, Tobias Girstmair wrote:
>> if you're using git there should* be a commit added for each change. 
>type
>> 'pass git log' to verify if there are two entries for 'foo' (i.e. 
>"Edit
>> password for foo using vim."), and if that's the case, undo the
>latest
>> commit with 'pass git revert HEAD~1'.
>
>I use pass without git. Is that crazy?
>
Yes.
___
Password-Store mailing list
Password-Store@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/password-store


Re: my dumb mistake

2019-01-15 Thread Joshua N Pritikin
On Tue, Jan 15, 2019 at 09:34:14PM +0100, Tobias Girstmair wrote:
> if you're using git there should* be a commit added for each change.  type
> 'pass git log' to verify if there are two entries for 'foo' (i.e.  "Edit
> password for foo using vim."), and if that's the case, undo the latest
> commit with 'pass git revert HEAD~1'.

I use pass without git. Is that crazy?
___
Password-Store mailing list
Password-Store@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/password-store


Re: my dumb mistake

2019-01-15 Thread Tobias Girstmair
if you're using git there should* be a commit added for each change.  
type 'pass git log' to verify if there are two entries for 'foo' (i.e.  
"Edit password for foo using vim."), and if that's the case, undo the 
latest commit with 'pass git revert HEAD~1'. 


lg

* famous last words


On Tue, Jan 15, 2019 at 03:26:52PM -0500, Joshua N Pritikin wrote:

To create a new password entry for "foo," I typed "pass edit foo" in one
terminal window. Then I forgot and entered the same thing in another
terminal window. I closed them in the wrong order and wiped out my
changes.

At the beginning of "pass edit foo", would it be possible to snapshot
the previous version of the file? Then if the file didn't match it's
snapshot, the user could be warned.

Maybe there is a race condition here, but better to have a safety check
that usually works than no safety check.

--
Joshua N. Pritikin, Ph.D.
Virginia Institute for Psychiatric and Behavioral Genetics
Virginia Commonwealth University
PO Box 980126
800 E Leigh St, Biotech One, Suite 1-133
Richmond, VA 23219
http://exuberant-island.surge.sh
___
Password-Store mailing list
Password-Store@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/password-store

___
Password-Store mailing list
Password-Store@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/password-store