GithubHelp home page GithubHelp logo

classicvalues / vault-cci Goto Github PK

View Code? Open in Web Editor NEW

This project forked from circleci-archived/vault-cci

0.0 1.0 0.0 25 KB

Simple vault container for use in CircleCI 2.0

Shell 89.16% Dockerfile 10.84%

vault-cci's Introduction

vault-cci

CircleCI

Published Continuously on Dockerhub using CircleCI

Simple vault container for use in CircleCI 2.0

NOTE: This is not entirely recommended for use in a production environment. The only secure way to run vault is what's recommended by Hashicorp, which this is not. This container exists to simplify development workflows, CI testing, and to reduce code complexity for systems which wish to use a secure Vault instance, but are sometimes shipped in "demonstration" modes.

In using this container you can gain access to a client token from outside the container using curl:

curl localhost:8201/client-token

This allows you to do whatever initialization/testing against vault, essentially getting aroung the lack of default client tokens.

Example usage in CCI

version: 2.0
jobs:
  build:
    docker:
      - image: postgres:9.6
        environment:
          POSTGRES_USER: a-user
          POSTGRES_DB: a-secret
      - image: hopsoft/graphite-statsd
      - image: mannimal/vault-cci
        environment:
          SKIP_SETCAP: skip
  steps:
    - checkout
    - run:
        name: Setup Vault
        command: curl localhost:8201/client-token

Docker Compose

  vault:
    image: mannimal/vault-cci
    ports:
      - '8200:8200'
      - '8201:8201'
    volumes:
      - ./vault/file:/vault/file
    cap_add:
      - IPC_LOCK

Restarting

NOTE: When you mount a volume to /vault/file, the container used for this can reinitialize itself.

This means that any data you encrypt using vault can be retrieved even after shutting Vault down provided you remount the previous Volume.

vault-cci's People

Contributors

alexandermann avatar tito-villalobos avatar conormcd avatar mikeyyeahyeah avatar rodionovp avatar

Watchers

 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.