Coder Social home page Coder Social logo

sourcec0de / gvault Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 1.0 70 KB

Manage secrets for your project using Google Cloud KMS

Home Page: https://www.gvault.io

License: Apache License 2.0

Go 100.00%
google googlecloudplatform google-cloud-kms googlecloudkms secret-management encryption git google-cloud-platform google-cloud-container-builder ci

gvault's Introduction

GVAULT

Manage project secrets using Google Cloud KMS

This project is intended to allow Google Cloud Platform users to easily take advantage of Google Cloud KMS. GVault enables you to store and manage secrets right in source control. By storing your secrets in source control you can more easily package your application and it's required configuration for production. This also removes the need for sharing secrets in traditional ways. You can simply grant read / write access using Google existing IAM roles.

Demo

asciicast

Benefits

#1 - No Manual Key Management

Since GVault is built on top of Google Cloud KMS it's users simply need to be logged into the gcloud CLI or have the GOOGLE_APPLICATION_CREDENTIALS environmental variable pointing to a service account with access to KMS resources. Beyond that access to keys and keyrings is controlled via IAM. Key management is handled by Google Cloud KMS. Keys are automatically rotated on a regular basis. You can easily give any need to know personel access to your keys and therefore your vaults.

Simple

Gvault has a very small footprint and CLI surface that any developer will be able to easily command. Once the project is initialize adding a secret is as simple as gvault secrets add MYSQL_PASSWORD=s71Dbl01-Z

No servers

Gvault stores your encrypted secrets in your projects repository. You can use your SCM tool of choice to track changes to secrets without the worry of leaking them.

Integrates with Google Container Builder

GVault support generating configurations for your cloudbuild.yml

Integrates with Kubernetes

GVault can sync with kubernetes by creating versioned secrets that match your vaults contents. Once the secret is in kubernetes you are free to mount it however you like.

Getting Started

First install gvault

Initialize

This will prompt you to set defaults for your vault.

  • project
  • location
  • keyring
  • key
cd ~/project_dir
gvault init

Add a secret

gvault secrets add MYSQL_PASSWORD=s71Dbl01-Z

Remove a secret

gvault secrets remove MYSQL_PASSWORD

Retrieve a secret

gvault secrets get MYSQL_PASSWORD

Import all key value pairs from a .env file

gvault secrets import /path/to/.env

gvault's People

Contributors

sourcec0de avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

khorevaa

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.