Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 667298 - app-crypt/keybase Please install kbnm and policy files for Chrome/Chromium/Firefox
Summary: app-crypt/keybase Please install kbnm and policy files for Chrome/Chromium/Fi...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Nicolas Bock
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-09-29 14:40 UTC by Andrew Udvare
Modified: 2022-09-29 07:49 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Udvare 2018-09-29 14:40:23 UTC
https://keybase.io/docs/extension

For the "Keybase Chat" button to work, it needs the kbnm binary to be installed on the machine. The kbnm source is here:

https://github.com/keybase/client/tree/master/go/kbnm

The build process is in this script:

https://github.com/keybase/client/blob/master/packaging/prerelease/build_kbnm.sh

The policy file that comes with the binary package looks like this:

{
    "name": "io.keybase.kbnm",
    "description": "Keybase Native Messaging API",
    "path": "/usr/bin/kbnm",
    "type": "stdio",
    "allowed_origins": [
        "chrome-extension://ognfafcpbkogffpmmdglhbjboeojlefj/",
        "chrome-extension://kockbbfoibcdfibclaojljblnhpnjndg/",
        "chrome-extension://gnjkbjlgkpiaehpibpdefaieklbfljjm/"
    ]
}


For chromium: /etc/chromium/native-messaging-hosts/io.keybase.kbnm.json
For google-chrome: /etc/opt/chrome/native-messaging-hosts/io.keybase.kbnm.json

For Firefox a similar file is placed at /usr/lib/mozilla/native-messaging-hosts/io.keybase.kbnm.json. Contents:

{
    "name": "io.keybase.kbnm",
    "description": "Keybase Native Messaging API",
    "path": "/usr/bin/kbnm",
    "type": "stdio",
    "allowed_extensions": [
        "keybase@keybase.io"
    ]
}

The GUI is not required for this to work. The only requirement is that the user service is running (systemd: systemctl --user start keybase.service).

Should probably add a note that this requires the various extensions to be installed in each browser, and that browser instances need to be restarted for the policy files to be read. And the keybase user service should be started.

https://chrome.google.com/webstore/detail/keybase/ognfafcpbkogffpmmdglhbjboeojlefj
https://addons.mozilla.org/en-US/firefox/addon/keybase-for-firefox/
Comment 1 Larry the Git Cow gentoo-dev 2022-09-29 07:49:19 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fa7c21416cd00b4093cdfc1348f12b0de816dd5d

commit fa7c21416cd00b4093cdfc1348f12b0de816dd5d
Author:     Jakov Smolić <jsmolic@gentoo.org>
AuthorDate: 2022-09-29 07:41:46 +0000
Commit:     Jakov Smolić <jsmolic@gentoo.org>
CommitDate: 2022-09-29 07:41:46 +0000

    app-crypt/keybase: treeclean
    
    Closes: https://bugs.gentoo.org/747811
    Closes: https://bugs.gentoo.org/844595
    Closes: https://bugs.gentoo.org/772209
    Closes: https://bugs.gentoo.org/682608
    Closes: https://bugs.gentoo.org/658676
    Closes: https://bugs.gentoo.org/667298
    Signed-off-by: Jakov Smolić <jsmolic@gentoo.org>

 app-crypt/keybase/Manifest             |  1 -
 app-crypt/keybase/keybase-5.1.1.ebuild | 52 ----------------------------------
 app-crypt/keybase/keybase-9999.ebuild  | 52 ----------------------------------
 app-crypt/keybase/metadata.xml         | 11 -------
 profiles/package.mask                  |  5 ----
 5 files changed, 121 deletions(-)