Skip to content

Latest commit

 

History

History
58 lines (46 loc) · 1.5 KB

backend_gpg.md

File metadata and controls

58 lines (46 loc) · 1.5 KB

GPG

image

Integrate gpg

Asymmetric mode

Asymmetric mode use public/private key system, you can use gpg-agent as daemon on your computer. Looks at how to documentation to understand how to add/remove recipients.

You can easily revoke an access to everybody and see who crypte and when file whas crypted.

{
    "backend": "gpg",
    "asymmetric": true,
    "files": [
        "app/config/parameters.yml"
    ],
    "recipients": [
        "John Doe <[email protected]>",
        "User 2 <[email protected]>"
    ]
}

List of recipients is autocompleted from your gpg --list-keys output.

Symmetric mode

Symetric ask you a passphrase to crypt files. You have to share this passphrase in your team.

{
    "backend": "gpg",
    "asymmetric": false,
    "files": [
        "app/config/parameters.yml"
    ]
}

GPG Usage

  1. Generate your key : gpg --gen-key
  2. Get your key ident: gpg --list-keys
  3. Send your key to dist server : gpg --keyserver pgp.mit.edu --send-keys YOURKEYIDENT
  4. Get the key from your friends : gpg --keyserver pgp.mit.edu --recv-keys FRIENDKEY
  5. Alternatively you can search all key verylastoom with : gpg --keyserver pgp.mit.edu --search-keys verylastroom
  6. Indicate you trust a key:
gpg --edit-key FRIENDKEY
# In shell gpg opened
trust
# Then choose 5th options (I trust ultimately)

Back to home