Giter Site home page Giter Site logo

vault-casc's Introduction

Vault Configuration-as-Code

Simple CLI utility that enables managing Hashicorp Vault configuration as files outside of Vault.

Global Configuration Flags

Name Default Value Description
vault-address http://localhost:8200 The address of Vault instance
vault-token Vault access token
dir ./ The local configuration folder

Creating Local Config Repository

First step in the process would be creating local configuration folder. The folder will contain all Vault configuration files structures according to Vault internal layout. You'd need a running Vault instance for this step since by default it already has some default configs that will be copied to local folder on the initialization.

Example command:

vault-casc init --dir ./casc --vault-address http://localhost:8200 --vault-token=TOKEN

Which will create new local configuration repository within ./casc folder. Valid vault address and token must be provided

Applying Local Config to Vault

Run the 'apply' command to copy local configuration into specified vault instance, for example:

vault-casc apply --dir ./casc --vault-address http://localhost:8200 --vault-token=TOKEN

Valid vault address and token must be provided The command will traverse through all configuration files and apply them to the corresponding Vault endpoints. Please note that any existing changes in Vault will be overwritten without any warning

Supported Vault Configuration

The following Vault configuration items are currently supported by the tool:

Name Location Details
Policy /sys/policy One 'hcl' file created per policy

TODOs:

  • Support for LDAP configuration
  • Support for LDAP login
  • Removal of missing policies from Vault

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.