gopasspw / git-credential-gopass

Gopass git-credentials helper
MIT License
48 stars 9 forks source link

git clone failed with entry not in the password store #57

Open avoidik opened 1 year ago

avoidik commented 1 year ago

hello,

a plain simple clone attempt has failed with the following error

git clone https://x.y.z/abc.git
Cloning into 'abc'...

Error: failed to retrieve secret "get": entry is not in the password store
Username for 'https://x.y.z': abc
Password for 'https://abc@x.y.z': 

Error: failed to retrieve secret "store": entry is not in the password store
remote: Enumerating objects: 2733, done.
remote: Counting objects: 100% (2733/2733), done.
remote: Compressing objects: 100% (2440/2440), done.
remote: Total 2733 (delta 1767), reused 401 (delta 285), pack-reused 0
Receiving objects: 100% (2733/2733), 379.23 KiB | 2.30 MiB/s, done.
Resolving deltas: 100% (1767/1767), done.

gopass installation method

$ gopass setup --storage fs

relevant config

[credential]
    credentialStore = gpg
    helper =
    helper = /usr/bin/gopass
[gpg]
    program = /usr/bin/gpg
$ cat ~/.config/gopass/config.yml
autoclip: false
autoimport: false
cliptimeout: 45
exportkeys: true
nopager: false
notifications: true
parsing: true
path: /home/xyz/.password-store
safecontent: false
mounts: {}
keychain: false
$ /usr/bin/gopass ls
gopass

relevant trace log

$ GIT_CURL_VERBOSE=1 GIT_TRACE=1 git clone https://x.y.z/abc.git
...
09:51:09.618663 run-command.c:664       trace: run_command: '/usr/bin/gopass get'

Error: failed to retrieve secret "get": entry is not in the password store
Username for 'https://x.y.z': abc
Password for 'https://abc@x.y.z':
...
09:51:18.421130 run-command.c:664       trace: run_command: '/usr/bin/gopass store'

Error: failed to retrieve secret "store": entry is not in the password store
...

versions

$ /usr/bin/gopass -v
gopass 1.14.9 go1.19.1 linux arm64
$ git --version
git version 2.30.2
jmgilman commented 1 year ago

Same error. It feels like there's a configuration step getting missed. How are passwords initialized in the gopass database? I don't see anything in the README.