vault-get

command module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 27, 2019 License: MIT Imports: 8 Imported by: 0

README

Vault-Get

A small application that connects to Vault and outputs the value of a path using user/password authentication.

Getting Started

The Application is packed as a single binary, just download and run.

Prerequisites

None.

Usage

The help section explains everything:

NAME:
   vault-get - Get a value from Vault

USAGE:
   vault-get [global options] command [command options] [arguments...]

VERSION:
   0.6.0

COMMANDS:
     help, h  Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --vault_host value      Vault host url [$VAULT_HOST]
   --vault_auth value      Vault auth: defaults to 'token' (can be set explicitly with vault_token) or 'userpass' with vault_username + vault_password (default: "token") [$VAULT_AUTH] 
   --vault_token value     Vault token (used if vault_auth is token) [$VAULT_TOKEN]
   --vault_username value  Vault username [$VAULT_USERNAME]
   --vault_password value  Vault password [$VAULT_PASSWORD]
   --vault_path value      Vault path of the secret. eg. secret/my-secret [$VAULT_PATH]
   --help, -h              show help
   --version, -v           print the version

Deployment

Download a release compatible to your OS and run the application.

Usage examples:

# Using a token auth (--vault_auth token does not need to be set explicitly):
eval "$(vault-get --vault_host https://vault.example.com --vault_token mytoken --vault_path secret/my-secret)"

# Doing the same with user and password authentication:
eval "$(vault-get --vault_host https://vault.example.com --vault_auth userpass --vault_username user --vault_password pass --vault_path secret/my-secret)"

Built With

  • Golang
  • Cli - A simple, fast, and fun package for building command line apps in Go.
  • Vault API

Contributing

Please read CONTRIBUTING.md

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL