Giter Club home page Giter Club logo

helm-taller's Introduction

helm-taller

Introducción a Helm

Links de interés

Documentación de Helm

Funciones internas de Helm

Secrets Management

Sops Git-crypt

git-crypt

This repo contains sensitive secrets that are encrypted using git-crypt.

Encrypting files is done using git filters via a .gitattributes file in the directory containing the sensitive files.

*.secrets.tf filter=git-crypt diff=git-crypt

If a file matching the .gitattributes glob is added to git afterwards, it will be encrypted.

repo-setup (one time)

git-crypt init

Add a new user via local keychain

If your local GPG keychain already trusts a user, we can add a user using an existing uid.

# See all keys in the local keychain
gpg --list-keys

# Add a user by uid
git-crypt add-gpg-user --trusted [email protected]

Add a new engineer

The user needs to already have or create a new GPG key.

Cloudkite recommends using Keybase for ease of use.

# Admin imports new user's GPG key
curl https://keybase.io/<KEYBASE ID>/pgp_keys.asc | gpg --import
# Or, if passed via file
gpg --import /path/to/gpg/file

# Add key to git-crypt
git-crypt add-gpg-user --trusted [email protected]

# Push git-crypt to master
git push origin

Removing a user

# See GPG file for all users
cd root/of/infrastructure/repo/
cd .git-crypt/keys/default/0
for file in *.gpg; do echo \"${file} : \" && git log -- ${file} | sed -n 9p; done;

git rm <GPG ID>.gpg
git commit -m 'Removing user <user>'
git push origin

As a user, unlocking a repo

Once your key has been added to the repo, clone it locally and unlock it using the following command:

git clone [...]
cd <new repo>
git-crypt unlock

It will prompt for your passphrase and once unlocked you can modify and commit secrets without needing to worry about manually encrypting and decrypting.

helm-taller's People

Contributors

eduartua avatar

Watchers

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