-
-
Notifications
You must be signed in to change notification settings - Fork 501
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automatically export creators key to the store (#2159)
* Automatically export creators key to the store Fixes #1919 RELEASE_NOTES=[ENHANCEMENT] Automatically export creators key to the store. Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org> * Fix config tests Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
- Loading branch information
1 parent
8b6768c
commit c47cb8f
Showing
7 changed files
with
69 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Hacking on gopass | ||
|
||
Note: See [CONTRIBUTING.md](../CONTRIBUTING.md) for an overview. | ||
|
||
This document provides an overview on how to develop on gopass. | ||
|
||
## Setting up an isolated development environment | ||
|
||
### With GPG | ||
|
||
`gopass` should fully respect `GOPASS_HOMEDIR` overriding all gopass internal paths. | ||
However it will still use your normal GPG keyring and configuration. To override this | ||
you will need to set `GNUPGHOME` as well and possibly generate a new keyring. | ||
|
||
```bash | ||
$ export GOPASS_DEBUG_LOG=/tmp/gp1.log | ||
$ export GOPASS_HOMEDIR=/tmp/gp1 | ||
$ mkdir -p $GOPASS_HOMEDIR | ||
$ export GNUPGHOME=$GOPASS_HOMEDIR/.gnupg | ||
# Make sure that you're using the correct keyring. | ||
$ gpg -K | ||
gpg: directory '/tmp/gp1/.gnupg' created | ||
gpg: keybox '/tmp/gp1/.gnupg/pubring.kbx' created | ||
gpg: /tmp/gp1/.gnupg/trustdb.gpg: trustdb created | ||
$ gpg --gen-key | ||
$ go build && ./gopass setup --crypto gpg --storage gitfs | ||
``` | ||
|
||
### With age | ||
|
||
Using `age` is recommended for development since it's easier to set up. Setting | ||
`GOPASS_HOMEDIR` should be sufficient to ensure an isolated environment. | ||
|
||
```bash | ||
$ export GOPASS_DEBUG_LOG=/tmp/gp1.log | ||
$ export GOPASS_HOMEDIR=/tmp/gp1 | ||
$ mkdir -p $GOPASS_HOMEDIR | ||
$ go build && ./gopass setup --crypto age --storage gitfs | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters