bascht / gopassbridge

A web extension for firefox and chrome to insert login credentials from gopass

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status MIT License codecov Maintainability

Firefox:

Mozilla Add-on Mozilla Add-on

Chrome:

Chrome Web Store Chrome Web Store

gopassbridge

A web extension for Firefox and Chrome to insert login credentials from gopass

Summary

Gopass is the awesome command line password manager. This plugin enables input of login credentials from gopass. To access gopass, a native app has to be configured in the browser in addition to this plugin. The native app is a wrapper that calls gopass with the jsonapi parameter to communicate via stdin/stdout.

Quick impression

Watch the video

Setup

Install browser extension

Firefox Extension

https://addons.mozilla.org/en-US/firefox/addon/gopass-bridge/

Chrome / Chromium Extension

https://chrome.google.com/webstore/detail/gopass-bridge/kkhfnlkhiapbiehimabddjbimfaijdhk

Build and install browser extension from source

See Makefile release target. For Firefox, the development plugin can be installed only temporarily while for Chrome, the extracted extension can be installed permanently.

Connect to gopass

The connection to gopass is achieved via the native messaging. For this a native messaging manifest is necessary.

It is recommended that you set up the manifests with gopass as described in the gopass documentation, "filling passwords from browser". In most cases it is enough to run gopass jsonapi configure and follow the tutorial.

If you prefer a manual setup, example manifest configurations and a wrapper for gopass can be found in the native-app directory of this repository. Adapt the wrapper and manifest and copy them to the correct locations.

More details about Native Messaging can be found in the Chrome and MDN documentation.

Change default shortcut

On firefox, you can change the shortcut via "manage extension shortcut" in the extension menu. In Chrome under "keyboard shortcuts" in the hamburger menu in extensions.

Development

Contributions to this project are welcome!

To start with development of this extension

  • clone the repo
  • run yarn to install the dependencies
  • run make develop to setup the development directories for Firefox and Chrome
  • run make package to setup the release directories for Firefox and Chrome
  • run yarn test to run all unit tests, linters and auto-formatters
  • run make run-firefox to start an empty Firefox profile with the extension loaded and a debugger open

About

A web extension for firefox and chrome to insert login credentials from gopass

License:MIT License


Languages

Language:JavaScript 61.9%Language:HTML 34.6%Language:CSS 2.4%Language:Makefile 0.8%Language:Shell 0.2%Language:Go 0.1%