From matt at matthewjosephtaylor.com Sun Aug 1 23:54:13 2021 From: matt at matthewjosephtaylor.com (Matt Taylor) Date: Sun, 1 Aug 2021 18:54:13 -0500 Subject: [PATCH] to fix non-root install issue Message-ID: New user, just getting setup and discovered this issue while attempting to install via the latest master to a non-root directory. Don't think it matters but FYI I'm on a Mac. I ran: ```console $ DESTDIR=~/local make install ``` which lead to a an error: ```console $ pass init /Users/user-name/local/usr/bin/pass: line 249: /usr/lib/password-store/platform.sh: No such file or directory Password store initialized for p:, -l, path:, -n, pass, -- ``` Because line 249 contained: ```shell source "/usr/lib/password-store/platform.sh" ``` I patched the file as so: ```patch diff --git a/Makefile b/Makefile index eac2291..51602c0 100644 --- a/Makefile +++ b/Makefile @@ -46,7 +46,7 @@ install: install-common @install -v -d "$(DESTDIR)$(LIBDIR)/password-store" && install -m 0644 -v "$(PLATFORMFILE)" "$(DESTDIR)$(LIBDIR)/password-store/platform.sh" @install -v -d "$(DESTDIR)$(LIBDIR)/password-store/extensions" @install -v -d "$(DESTDIR)$(BINDIR)/" - @trap 'rm -f src/.pass' EXIT; sed 's:.*PLATFORM_FUNCTION_FILE.*:source "$(LIBDIR)/password-store/platform.sh":;s:^SYSTEM_EXTENSION_DIR=.*:SYSTEM_EXTENSION_DIR="$(LIBDIR)/password-store/extensions":' src/password-store.sh > src/.pass && \ + @trap 'rm -f src/.pass' EXIT; sed 's:.*PLATFORM_FUNCTION_FILE.*:source "$(DESTDIR)$(LIBDIR)/password-store/platform.sh":;s:^SYSTEM_EXTENSION_DIR=.*:SYSTEM_EXTENSION_DIR="$(DESTDIR)$(LIBDIR)/password-store/extensions":' src/password-store.sh > src/.pass && \ install -v -d "$(DESTDIR)$(BINDIR)/" && install -m 0755 -v src/.pass "$(DESTDIR)$(BINDIR)/pass" else install: install-common ``` A simple miss of prefixing `$(DESTDIR)` before `$(LIBDIR)` Re-ran the `make install` which fixed the sourcing from the wrong lib directory issue. I'm quite surprised that this wasn't found earlier, I guess most people install from packages? Thanks for creating such an awesome tool. :) Matt https://mjt.dev From matt at matthewjosephtaylor.com Mon Aug 2 02:15:01 2021 From: matt at matthewjosephtaylor.com (Matt Taylor) Date: Sun, 1 Aug 2021 21:15:01 -0500 Subject: Question: What is best practice for storing binary file attachments? Message-ID: I'm a 1Password refugee, and over the course of time I've come to like the ability of 1Password to be able to store small binary files, and so I've got several entries with files attached. I'm creating an importer for 1Password(prior to v7) -> pass (the existing ruby one is good for simple user/pass but kind of falls down on more complex cases, and the URL parser is a bit brutal in how it constructs file paths) I'm liking the passff/browserpass directory structure and will be using that as most of my passwords do in fact belong to websites. I _think_ it might be as simple as example.com/ personal/ attachments/ foo.xls.gpg bar.db.gpg The problem is that the file is going to be a lot of 'binary junk', and I don't want to confuse any 3rd party apps that might want to read the password-store, or the pass command itself. I could base64 encode the files, but that might be unnecessary, and I'd like to keep things as simple as possible. Perhaps it is a non-issue and I'm over-thinking it, but if there is any helpful advice it would be much appreciated. Thanks, Matt https://mjt.dev From tgyurci at gmail.com Mon Aug 2 07:27:12 2021 From: tgyurci at gmail.com (=?UTF-8?Q?Teubel_Gy=C3=B6rgy?=) Date: Mon, 2 Aug 2021 09:27:12 +0200 Subject: [PATCH] to fix non-root install issue In-Reply-To: References: Message-ID: Hi! Use PREFIX instead of DESTDIR: make PREFIX=~/.local install PREFIX is the variable which is for setting the path where the application files are expected to be and LIBDIR uses it alerady. The purpose of DESTDIR is to specify an alternative root path for the installation step for package creation etc. Best regards Gy?rgy Matt Taylor ezt ?rta (id?pont: 2021. aug. 2., H, 1:56): > > New user, just getting setup and discovered this issue while > attempting to install via the latest master to a non-root directory. > > Don't think it matters but FYI I'm on a Mac. > > I ran: > > ```console > $ DESTDIR=~/local make install > ``` > > which lead to a an error: > > ```console > $ pass init > /Users/user-name/local/usr/bin/pass: line 249: > /usr/lib/password-store/platform.sh: No such file or directory > Password store initialized for p:, -l, path:, -n, pass, -- > > ``` > > Because line 249 contained: > > ```shell > source "/usr/lib/password-store/platform.sh" > > ``` > > I patched the file as so: > ```patch > diff --git a/Makefile b/Makefile > index eac2291..51602c0 100644 > --- a/Makefile > +++ b/Makefile > @@ -46,7 +46,7 @@ install: install-common > @install -v -d "$(DESTDIR)$(LIBDIR)/password-store" && install > -m 0644 -v "$(PLATFORMFILE)" > "$(DESTDIR)$(LIBDIR)/password-store/platform.sh" > @install -v -d "$(DESTDIR)$(LIBDIR)/password-store/extensions" > @install -v -d "$(DESTDIR)$(BINDIR)/" > - @trap 'rm -f src/.pass' EXIT; sed > 's:.*PLATFORM_FUNCTION_FILE.*:source > "$(LIBDIR)/password-store/platform.sh":;s:^SYSTEM_EXTENSION_DIR=.*:SYSTEM_EXTENSION_DIR="$(LIBDIR)/password-store/extensions":' > src/password-store.sh > src/.pass && \ > + @trap 'rm -f src/.pass' EXIT; sed > 's:.*PLATFORM_FUNCTION_FILE.*:source > "$(DESTDIR)$(LIBDIR)/password-store/platform.sh":;s:^SYSTEM_EXTENSION_DIR=.*:SYSTEM_EXTENSION_DIR="$(DESTDIR)$(LIBDIR)/password-store/extensions":' > src/password-store.sh > src/.pass && \ > install -v -d "$(DESTDIR)$(BINDIR)/" && install -m 0755 -v > src/.pass "$(DESTDIR)$(BINDIR)/pass" > else > install: install-common > ``` > > A simple miss of prefixing `$(DESTDIR)` before `$(LIBDIR)` > > Re-ran the `make install` which fixed the sourcing from the wrong lib > directory issue. > > I'm quite surprised that this wasn't found earlier, I guess most > people install from packages? > > Thanks for creating such an awesome tool. :) > > Matt > https://mjt.dev From hugo at heagren.com Mon Aug 2 20:02:39 2021 From: hugo at heagren.com (Hugo Heagren) Date: Mon, 02 Aug 2021 21:02:39 +0100 Subject: [PATCH] emacs: Add Custom Variable to Exclude Fields from Minibuffer Read Message-ID: <8735rrboo0.fsf@heagren.com> An embedded and charset-unspecified text was scrubbed... Name: not available URL: From nils at nilsand.re Fri Aug 6 16:26:01 2021 From: nils at nilsand.re (Nils Andre) Date: Fri, 6 Aug 2021 17:26:01 +0100 Subject: Introducing pass-fxa, a {pass,firefox} client for {pass,firefox} Message-ID: <20210806161506.vf3vldw4ee7cyx22@nixos> Hello everyone, Recently I've been working on `pass-fxa`, a tool that uploads your password store to FxA (Firefox Accounts). It is meant as a replacement of traditional browser extensions for pass (e.g. passff and browserpass) with a few advantages (see README). It can be found on GitHub: https://github.com/NilsIrl/pass-fxa/ I hope you guys find it useful! Thanks, Nils PS: In July I asked for some feedback here. I think most of it can be addressed by the fact that I didn't explain well enough how it would work and how it's supposed to be used (The answer being, as an alternative to traditional browser extensions). Chiraag mentioned copying passwords. To be clear, pass-fxa is less secure than doing that because ultimately your passwords are available to Firefox (although E2E encrypted in the FxA "cloud"). Also, I'd love for it to be added to the list of compatible clients. From tino.calancha at gmail.com Sun Aug 8 09:49:43 2021 From: tino.calancha at gmail.com (Tino Calancha) Date: Sun, 8 Aug 2021 11:49:43 +0200 (CEST) Subject: [PATCH] emacs: Add Custom Variable to Exclude Fields from Minibuffer Read In-Reply-To: <8735rrboo0.fsf@heagren.com> References: <8735rrboo0.fsf@heagren.com> Message-ID: On Mon, 2 Aug 2021, Hugo Heagren wrote: > Given the way the function is written, leveraging the > password-store.el library, this would have to be a change to that > library. This patch is that change: add a customizable variable > `password-store-read-ignore-fields', which is a list of strings, and > possibly the symbol `secret'. Defaults to an empty list. > > Accordingly, modify `password-store-read-field' such that it does not > present any of the fields with names in this list as candidates. If > `secret' appears then it does not present the password. The use of > this is explained in a docstring. Thank you for the patch, IMHO, `password-store-read-field' should _always_ read all the fields. Users with a strong need to access often to one particular field, are better served with a new specific command (possibly, with a new keybinding for it). I don't think this is the responsability of `password-store': it should be implemented on top of it. This is what you've proposed with `ivy-pass--username-action', and I think is TRTTD. That is also the way that pass.el follows. Best regards, Tino From hugo at heagren.com Mon Aug 9 18:07:31 2021 From: hugo at heagren.com (Hugo Heagren) Date: Mon, 09 Aug 2021 19:07:31 +0100 Subject: [PATCH] emacs: Add Custom Variable to Exclude Fields from Minibuffer Read References: <8735rrboo0.fsf@heagren.com> Message-ID: <87lf5a8pb0.fsf@heagren.com> An embedded and charset-unspecified text was scrubbed... Name: not available URL: From z at zagdul.de Fri Aug 20 12:00:12 2021 From: z at zagdul.de (Zack) Date: Fri, 20 Aug 2021 14:00:12 +0200 Subject: import from 1password7 Message-ID: Hi, I am really glad I found this tool, all others are moving to subscription models and so I am more than happy to have found pass. So, I wanted to move from 1password7 to pass, but I did not find an import script for it. So I created my own. It is completely written in bash, only json_pp and sed need to be available. Of course, using python or any other tool would make it a bit easier, but this is working so far so good. So I thought I'd share it, maybe some others need it or have something to share. to use it, you need to export your 1Password data to a 1pif "directory". On the shell, start the import like this: ./import1password.sh 1PasswordExport.1pif/data.1pif This should import all Data. Or is there a better way? Cheers, Stephan -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: import1password.sh URL: From z at zagdul.de Fri Aug 20 12:11:55 2021 From: z at zagdul.de (Zack) Date: Fri, 20 Aug 2021 14:11:55 +0200 Subject: import from 1password7 In-Reply-To: References: Message-ID: Sorry, was hitting send to early, this version of the script is better, here is the help output: Usage: ./import1password.sh [--list | --test] [--skip NUM] [--amount NUM] [--importType TYPE] data.1pif test: testMode, do not actually store data list: just list elements skip: skip NUM entries before actually doing anything, 0 is default amount: amount of entries to process, 0 means all importType: only import this type, e.g. securenotes.SecureNote it creates sub directories for each type. This might not be everybodys best choice - could be easily changed... On 20 Aug 2021, at 14:00, Zack wrote: > Hi, > > I am really glad I found this tool, all others are moving to > subscription models and so I am more than happy to have found pass. > So, I wanted to move from 1password7 to pass, but I did not find an > import script for it. So I created my own. It is completely written in > bash, only json_pp and sed need to be available. > > Of course, using python or any other tool would make it a bit easier, > but this is working so far so good. So I thought I'd share it, maybe > some others need it or have something to share. > > to use it, you need to export your 1Password data to a 1pif > "directory". On the shell, start the import like this: > > ./import1password.sh 1PasswordExport.1pif/data.1pif > > > This should import all Data. > > Or is there a better way? > > Cheers, > > Stephan -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: import1password.sh URL: