Shopify / ejson

EJSON is a small library to manage encrypted secrets using asymmetric encryption.
MIT License
1.34k stars 62 forks source link

Public key with repo #15

Closed yagnik closed 9 years ago

yagnik commented 9 years ago

hey @burke what do you think about saving the public key with the repo? It's pretty hard to ask ops give you public key from databag everytime we want to update keys.

burke commented 9 years ago

It's stored at the top of ejson files as of 1.0.0. For example: https://github.com/Shopify/shopify/blob/master/config/secrets.production.ejson#L2

This way, you don't need the key to add secrets, you just ejson encrypt <file>.

yagnik commented 9 years ago

I did not notice that! THAT IS GENIUS! thank you