Git Product home page Git Product logo

vault-get's Introduction

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

vault-get's People

Contributors

joshdvir avatar omerxx 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.