{"action":"created","issue":{"url":"https://api.github.com/repos/keybase/client/issues/14897","repository_url":"https://api.github.com/repos/keybase/client","labels_url":"https://api.github.com/repos/keybase/client/issues/14897/labels{/name}","comments_url":"https://api.github.com/repos/keybase/client/issues/14897/comments","events_url":"https://api.github.com/repos/keybase/client/issues/14897/events","html_url":"https://github.com/keybase/client/issues/14897","id":386556438,"node_id":"MDU6SXNzdWUzODY1NTY0Mzg=","number":14897,"title":"keybase pgp select fails with qubes split gpg (undetected env variable?)","user":{"login":"mossy-nw","id":34462023,"node_id":"MDQ6VXNlcjM0NDYyMDIz","avatar_url":"https://avatars0.githubusercontent.com/u/34462023?v=4","gravatar_id":"","url":"https://api.github.com/users/mossy-nw","html_url":"https://github.com/mossy-nw","followers_url":"https://api.github.com/users/mossy-nw/followers","following_url":"https://api.github.com/users/mossy-nw/following{/other_user}","gists_url":"https://api.github.com/users/mossy-nw/gists{/gist_id}","starred_url":"https://api.github.com/users/mossy-nw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mossy-nw/subscriptions","organizations_url":"https://api.github.com/users/mossy-nw/orgs","repos_url":"https://api.github.com/users/mossy-nw/repos","events_url":"https://api.github.com/users/mossy-nw/events{/privacy}","received_events_url":"https://api.github.com/users/mossy-nw/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-12-02T12:45:33Z","updated_at":"2018-12-02T13:48:45Z","closed_at":null,"author_association":"NONE","body":"`keybase pgp select` fails unexpectedly using QubesOS split gpg configuration.\r\n\r\n**To reproduce**\r\n1. configure qubes-split-gpg environment: `export QUBES_GPG_DOMAIN=vault` \r\n2. set qubes-split-gpg as keybase gpg command: `keybase config set gpg.command /usr/bin/qubes-gpg-client`\r\n3. `keybase pgp select`\r\n\r\n**Expected behavior**\r\nqubes system prompt should appear asking to confirm `vault` as qubes appVM containing pgp keys\r\n\r\n**Actual behavior**\r\nno system prompt appears, keybase fails with `GPG error: exit status 1`\r\n\r\n**Troubleshooting**\r\n`keybase -d pgp select` gives the following relevant messages:\r\n~~~\r\nconfigured GPG w/ path: /usr/bin/qubes-gpg-client\r\nrunning Gpg: /usr/bin/qubes-gpg-client --no-tty --with-colons --fingerprint -K\r\nERROR: Destination domain not defined! Set it with QUBES_GPG_DOMAIN env variable.\r\n~~~\r\n`echo $QUBES_GPG_DOMAIN` returns `vault`\r\n`qubes-gpg-client --no-tty --with-colons --fingerprint -K` gives expected qubes-split-gpg system prompt, then lists secret key fingerprints. \r\n\r\nso keybase is simply not able to see the QUBES_GPG_DOMAIN variable?\r\n\r\n**Related issues**\r\n#4722 -- indicates qubes-split-gpg should be functional"},"comment":{"url":"https://api.github.com/repos/keybase/client/issues/comments/443508965","html_url":"https://github.com/keybase/client/issues/14897#issuecomment-443508965","issue_url":"https://api.github.com/repos/keybase/client/issues/14897","id":443508965,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MzUwODk2NQ==","user":{"login":"heronhaye","id":28712558,"node_id":"MDQ6VXNlcjI4NzEyNTU4","avatar_url":"https://avatars0.githubusercontent.com/u/28712558?v=4","gravatar_id":"","url":"https://api.github.com/users/heronhaye","html_url":"https://github.com/heronhaye","followers_url":"https://api.github.com/users/heronhaye/followers","following_url":"https://api.github.com/users/heronhaye/following{/other_user}","gists_url":"https://api.github.com/users/heronhaye/gists{/gist_id}","starred_url":"https://api.github.com/users/heronhaye/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heronhaye/subscriptions","organizations_url":"https://api.github.com/users/heronhaye/orgs","repos_url":"https://api.github.com/users/heronhaye/repos","events_url":"https://api.github.com/users/heronhaye/events{/privacy}","received_events_url":"https://api.github.com/users/heronhaye/received_events","type":"User","site_admin":false},"created_at":"2018-12-02T13:48:45Z","updated_at":"2018-12-02T13:48:45Z","author_association":"CONTRIBUTOR","body":"So there are two problems: systemd doesn't pass in environment variables by default to its processes, and we don't pass in any environment variables to the gpg client either. \r\n\r\nWe pass in optional command line arguments to the gpg client though. Do you know if `QUBES_GPG_DOMAIN` can be configured as a command line option in `qubes-gpg-client?"}}
{"actor":{"display_login":"heronhaye"}}