-
-
Notifications
You must be signed in to change notification settings - Fork 491
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
New recipients not syncing public keys #1980
Comments
I am having the exact same issue |
This should work. Might be a regression :/ |
I forgot about this issue, really. I have a workaround and I don't add devices that often. Reproduced it in version 1.13.0 (latest Gentoo version). I can bump it to 1.13.1 if you need me to provide debug data. |
What does Is And are the key properly located in their |
As described before, I had to manually add the key to .public-key to work around the issue. I did not see it in there when I reproduced it yesterday. My config:
Actually, this cluestick was hidden in the
But it still didn't import on the other system despite autoimport being set to true. On the other system...
|
I ran one more test, this time setting
I will still call this a bug for several reasons:
|
This is definitively a bug. We will need to discuss whether it makes sense to really have these two config options and make sure their behaviour is what we expect. Also, we usually try to have sane default settings and to import the previous config in a compatible way when we add or change the config. It's also a bug that the behaviour changed on your machine by changing the version. Do you know when it changed? With which version? |
I don't recall when the behavior changed, unfortunately. If I had to guess via git history it probably worked in September 2019 and failed in December 2020.. The various changes in copying to a clipboard were much more visible and confusing. Don't get me wrong, I really like this product. I've been using O.G. zx2c4 password-store since 2013 and replaced it with gopass in January 2019. It syncs over quite a few Linux, Windows, and Android devices. Thanks. |
You did make some good points in #1980 (comment).
Also I wonder if we (still) need both of |
This commit splits key import and export during sync. It will always attempt to import missing public keys if they are found in the store. Exporting is still controlled by exportkeys but that shouldn't affect importing anymore. Also some logging and missing config defaults are fixed. Fixes gopasspw#1980 Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
* Fix autoimport / exportkeys This commit splits key import and export during sync. It will always attempt to import missing public keys if they are found in the store. Exporting is still controlled by exportkeys but that shouldn't affect importing anymore. Also some logging and missing config defaults are fixed. Fixes #1980 Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org> * Update config tests Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
* Fix autoimport / exportkeys This commit splits key import and export during sync. It will always attempt to import missing public keys if they are found in the store. Exporting is still controlled by exportkeys but that shouldn't affect importing anymore. Also some logging and missing config defaults are fixed. Fixes gopasspw#1980 Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org> * Update config tests Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
Summary
Add recipients not adding new keys in .public-keys or importing them
Steps To Reproduce
gopass recipients add
gopass sync
second machine:
gopass sync
gopass recipients
output:
Don't really want to paste my recipients list but I get the last line:
└── XXXXXXXXXXXXXXXXXXXXXXXXXXXXX (missing public key)
Expected behavior
Automatic import of new keys
Environment
Observed on two machines:
OS: Gentoo on WSL
$ uname -a
Linux SurfacePro4 5.10.16.3-microsoft-standard-WSL2 #1 SMP Fri Apr 2 22:23:49 UTC 2021 x86_64 Intel(R) Core(TM) i5-6300U CPU @ 2.40GHz GenuineIntel GNU/Linux
$ gopass version
gopass 1.8.6-git+HEAD go1.12.13 linux amd64
- gpg 2.2.19 - git 2.24.1 - fs 0.1.0
Available Crypto Backends: gpgcli, openpgp, plain, xc
Available RCS Backends: gitcli, noop
Available Storage Backends: fs, inmem
OS: Gentoo on desktop
$ uname -a
Linux tobiko 5.10.52-gentoo #1 SMP Tue Aug 17 15:37:44 MDT 2021 x86_64 Intel(R) Core(TM) i5-3470 CPU @ 3.20GHz GenuineIntel GNU/Linux
$ gopass version
gopass 1.12.7 (2021-08-11 20:05:33) go1.16.7 linux amd64
- gpg 2.2.27 - git 2.31.1
Available Crypto Backends: age, gpgcli, plain
Available Storage Backends: fs, gitfs
Both versions installed from source via Gentoo ebuild
Additional context
I have been seeing this since the beginning of the year. My only resolution was to manually add the keys to .public-keys and importing them on the other machines with gpg. I have 11 keys spread across various devices.
The text was updated successfully, but these errors were encountered: