Code Monkey home page Code Monkey logo

crit's Introduction

Crit

Compilation

  • clone repo
  • cd into repo
  • make
  • mv ./crit /usr/local/bin

Usage

Defining a .secrets file

.secrets files are just yaml. By default the .secrets file is looked for at /home/{user}/.secrets. To define a raw secret you'd use the following format:

secrets:
    - key: KEY
      value: VALUE

Environment variable KEY will be equal to VALUE. We can verify this by running:

crit start printenv

Which should output (amongst others):

KEY=VALUE

In the future, the goal is to support pulling from Vault, AWS Secrets Manager, and GCP Secrets Manager. You'll need to provide authentication to each service.

Running

start

to run: crit start <command>

example: crit start yarn start

This will call yarn start and inject any secrets defined at /home/{usr}/.secrets.

Start is used to exec a program with injected variable.

out

to run: crit out [--file]

example: export $(crit out)

This will load your secret file and output the keys that will be injected into your process. If you use the --file option, it will output your current .secrets file.

Supported Backends

  • Google Secrets Manager

Planned

  • Kubernetes
  • Gitlab CI
  • AWS Secrets Manager
  • Hashicorp Vault

crit's People

Contributors

cbrintnall avatar

Stargazers

Andrew Johnson avatar

Watchers

 avatar

crit's Issues

Child process crashing doesn't recover

Currently when the child process started with crit start crashes, the parent process loses track of it. Crit should stay the parent process and handle restarting it.

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.