Giter Club home page Giter Club logo

ukgovdatascience.data-science-accelerator-config's Introduction

data-science-accelerator-config

Encrypted configuration

Git-crypt

This repo contains secrets stored with git-crypt. These need decrypting before use. You need to have your GPG key added to this repo before you are able to do this.

Adding someone's gpg key to this repo

  1. Ask the person to export their GPG public key like this:

    gpg --armor --export [email protected]
    
  2. Once you receive the file, save it on your disk e.g. /tmp/alice.asc

  3. Import it into your GPG keyring:

    gpg --import /tmp/alice.asc
    
  4. Tell GPG that you trust the key and sign it:

    gpg --edit-key "[email protected]" trust
      # 4
      # save
      # quit
    gpg --edit-key "[email protected]" sign
      # you will need to type your own passphrase
      # save
    
  5. Confirm that '[ full ]' is shown when you list it:

    gpg --list-keys
    pub   rsa4096 2015-02-05 [SC]
          17818CFB47FFFC384F0CC
    uid           [  full  ] alice  <[email protected]>
    sub   rsa4096 2015-02-05 [E]
    
  6. In this repo, make sure you're on a master branch, with no outstanding changes, and add the key to the .git-crypt directory:

    cd analytics-platform-config
    git status
    git-crypt add-gpg-user [email protected]
    
  7. The change is already committed, so simply:

    git push
    

Decrypting the secrets

  1. Get your gpg key added to this repo - see above.

  2. Install git-crypt. On MacOS:

    brew install git-crypt
    
  3. Get the commit with your gpg key that has been added.

    cd data-science-sandbox-infrastucture
    git pull
    
  4. Decrypt the files

    git-crypt unlock
    

    If this fails, it might be because your gpg key requires a pass-phrase, but there is a problem with the pinentry-program. Check your gpg-agent daemon. I had to correct ~/.gnupg/gpg-agent.conf to point to the correct pinentry binary, then killed the gpg-agent process and restarted it with: gpg-agent --daemon /bin/sh.

ukgovdatascience.data-science-accelerator-config's People

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.