Git Product home page Git Product logo

chest's Introduction

chest

Motivation

ejson is a brilliant command-line utility. But generating new keys, or grabbing existing key pairs, can be burdensome. chest attempts to ease the pain.

WARNING

admin-public-keys.asc and all-public-keys.asc are copies of the author's PGP key! Replace them with your own. (For this utility to be useful, you need to replace each of these public keys with a group of recipients' keys.)

Usage

  chest (-h | --version)
  chest -s
  chest [-df] -n <ejson_document> ...
  chest [-df] -g <ejson_document> ...
  chest [-df] -k <ejson_public_key> <ejson_document> ...

Description

To Hold Precious Secret Bits

  * Generates new EJSON key pair, ${EJSON_KEYDIR}/_PUBLIC_KEY; and
    adds EJSON public key to documents, ["_public_key"];
  * Grabs existing EJSON public keys from documents, ["_public_key"];
    puts plaintext pairs in ${EJSON_KEYDIR}/_PUBLIC_KEY; and
    puts cyphertext pairs in CWD;
  * Updates EJSON public key in documents, ["_public_key"];
  * Generates sample documents, --samples.

Arguments

  <ejson_document>    optional EJSON document
  <ejson_public_key>  existing public-key, needs -k and <ejson_document>

Options

  -d, --debug
  -f, --force              use the force to exec gpg decrypt PUBLIC_KEY.gpg
  -g, --grab               grab public keys from ejson documents
  -h, --help
  -k, --update-public-key  use existing ejson key pair to encrypt documents
  -n, --new-key-pair       generate new ejson key pair to use and gpg-encrypt them
  -s, --samples            generate sample secret yaml documents,
                           sample.json and samples.yaml
  --version

Installation

  go get -u -v -ldflags="-s -w" github.com/tanakapayam/chest

DOCKER

BUILD

make docker-build

PULL

docker pull tanakapayam/chest

RUN

docker run --tty --volume ${HOME}/.ejson:/ejson --volume ${PWD}:/chest tanakapayam/chest:latest --help

chest's People

Stargazers

Payam Tanaka avatar

Watchers

Payam Tanaka avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.