Skip to content
A tool to keep passwords and other secrets out of automation scripts.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
cmd/secrethub Move the import path to github.com/secrethub Mar 28, 2019
internals Merge pull request #66 from secrethub/feature/golint Apr 26, 2019
.golangci.yml
.goreleaser.yml Rephrase snapcraft description Apr 25, 2019
.travis.yml Add Makefile and CI Mar 21, 2019
CONTRIBUTING.md
CONTRIBUTORS.md
Dockerfile
LICENSE Create LICENSE Mar 22, 2019
Makefile Add make commands to build and install from source Mar 27, 2019
README.md
go.mod
go.sum Update secrethub-go to v0.18.0 Mar 29, 2019

README.md

SecretHub

CLI

GoDoc Travis CI GolangCI Go Report Card Version Discord

The SecretHub CLI provides the command-line interface to interact with SecretHub.

SecretHub is a developer tool to help you keep database passwords, API tokens, and other secrets out of IT automation scripts.

Usage

$ secrethub write path/to/secret
Type in your secret: ************************  

$ cat config.yml.tpl
db_user: myapp
db_password: ${path/to/secret:latest}

$ cat config.yml.tpl | secrethub inject
db_user: myapp
db_password: LEYkTdMCksCVMc4X3gpYN0fk

See the reference docs for a detailed overview of all commands.

Get started

1. Download the CLI.

Official distributions are available for Linux, macOS, and Windows for both 386 (32-bit) and amd64 (64-bit) architectures.

Check out the installation guide for detailed instructions on how to install the SecretHub CLI on your platform of choice.

2. Run signup

Run signup to claim your free developer account:

secrethub signup

And you're done. Follow the getting started guide for a brief introduction into the basics of SecretHub.

Getting help

Come chat with us on Discord or email us at support@secrethub.io

Development

Pull requests from the community are welcome. If you'd like to contribute, please checkout the contributing guidelines.

Build

To build from source, having Golang installed is required. To build the binary in the current directory, run:

make build

Install

To install the binary in the GOBIN directory, run:

make install

Test

Run all tests:

make test

Run tests for one package:

go test ./internals/secrethub

Run a single test:

go test ./internals/secrethub -run TestWriteCommand_Run
You can’t perform that action at this time.