v0.2.2
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEE1MTdYA1m9lqO/FEeGPNoXAAiv/MFAltQ0fEACgkQGPNoXAAi
v/O6Dg/8D51VatsnoHIBTB3vfDoRya4Il2YlxCL0IBIVGTtqZcx7W6xWtx1TBCuh
20YvkPvk1MTVcOhwtoPGu+LYO7S2T1abA2CjS94OvUyeFzVvpspaPGySLpPQnJKC
qKxZHYCLX1fMacqD/R+CFY890+W4nTCmUjPQ9Dy4yhG8SslEhWnyJGCdxNnSiseY
f/ym5CtbXvK/vLvfkRf3yvSh+Gj37oP6dfF/4fEw3EBq5ZAg0I5A0ZSg+T5Ny8YB
CK5gx0HyJhLIAFOkcTZVQ9QD5+G0veHnx65CgBslsmqp8/Tx69Ta9r8pajLgHtJS
obLPlyqk7Z1cHM1M6iHswfmiEQX0C931euWPnYLy2g30XRboy16TkZ1QeVxVW6Ua
j9h30y+OWw6GjzIjXqxkCatG1pSqGU6xEy4uZwRDLjacPVjqbjW0fk8fATBjwk2Y
PVpacohQeDbo5aEaO8hVslATcUbXFQjFk67n+Uk8//3Y+DH0s2ZjLaOQvLC1xCh9
HXmUa0red0TkEvDsBzzoVyAwTD+X9RO4qcE8YMUECgtcSkIsGIC19AnbZV5CABR1
EbR6XFEATN76mUHVYmsYt33vJ0TSpqw9wU3/hHAVcCfzMnqk1o8iLx+DyOr4Ou88
mzPsenXQxQUTvdRDnQTB95wS28tUhlCdu4NqAOsxOdA19zjO2IU=
=pEbu
-----END PGP SIGNATURE-----
Bump version to v0.2.2

Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
1 file changed
tree: 3ada773b8baf924f0fb3c8fbf578a8b6063ccf35
  1. .gitignore
  2. .goosarch
  3. .travis.yml
  4. .traviskey
  5. Dockerfile
  6. Gopkg.lock
  7. Gopkg.toml
  8. LICENSE
  9. Makefile
  10. README.md
  11. VERSION.txt
  12. create.go
  13. get.go
  14. gpg/
  15. list.go
  16. main.go
  17. main_unix.go
  18. main_windows.go
  19. remove.go
  20. store.go
  21. vendor/
  22. version/
README.md

pony

Travis CI GoDoc

Local file-based password, API key, secret, recovery code store backed by GPG.

Installation

Binaries

For installation instructions from binaries please visit the Releases Page.

Via Go

$ go get github.com/jessfraz/pony

Usage

$ pony -h
pony -  Local File-Based Password, API Key, Secret, Recovery Code Store Backed By GPG.

Usage: pony <command>

Flags:

  -d, --debug  enable debug logging (default: false)
  --file       file to use for saving encrypted secrets (default: ~/.pony)
  --keyid      optionally set specific gpg keyid/fingerprint to use for encryption & decryption (or env var PONY_KEYID)

Commands:

  create   Create a secret.
  get      Get details for a secret.
  ls       List secrets.
  rm       Delete a secret.
  version  Show the version information.

Best Practices

HISTIGNORE

You should obviously add pony to your HISTIGNORE for example:

export HISTIGNORE="ls:cd:cd -:pwd:exit:date:* --help:pony:pony *";

Namespacing Keys

You should namespace the keys for your secrets like the following:

$ pony create com.twitter.frazelledazzell.token KJDHJKFHDSBJDF
# GPG Passphrase for key "Jess Frazelle <butts@systemd.lol>":

$ pony create com.github.jessfraz.token LKJHSDLFKJDHF
# GPG Passphrase for key "Jess Frazelle <butts@systemd.lol>":

# if a key ends with `.recovery`
# we assume it is a list of comma seperated
# strings that are recovery codes
$ pony add com.github.devnull@butts.com.recovery we0wk4,osdknew,4fd9kw,03jfn23,sduj39s
# GPG Passphrase for key "Jess Frazelle <butts@systemd.lol>":

$ pony ls
# GPG Passphrase for key "Jess Frazelle <butts@systemd.lol>":

KEY                                     VALUE
com.aws.amazon.prod.key                 KSUIIUEJDMSDBSDJFOFR
com.aws.amazon.prod.secret              skljdUYGjsndhfjjiosjdfgr/HKKSU
com.github.botaccount.recovery          we0wk4,osdknew,4fd9kw,03jfn23,sduj39s
com.github.jessfraz.token               LKJHSDLFKJDHF
com.twitter.frazelledazzell.token       KJDHJKFHDSBJDF

# you can also filter by a regular expression
$ pony ls --filter com.github*
# GPG Passphrase for key "Jess Frazelle <butts@systemd.lol>":

KEY                                     VALUE
com.github.botaccount.recovery          we0wk4,osdknew,4fd9kw,03jfn23,sduj39s
com.github.jessfraz.token               LKJHSDLFKJDHF