Skip to content
This repository has been archived by the owner on Mar 25, 2022. It is now read-only.

secrets: rework how we store secrets #60

Merged
merged 1 commit into from
Aug 13, 2015
Merged

secrets: rework how we store secrets #60

merged 1 commit into from
Aug 13, 2015

Conversation

ghost
Copy link

@ghost ghost commented Aug 13, 2015

From the updated readme:

IPFS and cjdns private keys, SSL certificates, and cjdns peering credentials,
are tracked by Git in a secret repository, in encrypted form.
We need to decrypt them for usage, and encrypt them for committing changes.

# initialize and decrypt
$ git clone https://example.net/secrets.git secrets/
$ echo "the-key" > ../solarnet.key
$ ./secrets.sh -d

# make changes and encrypt
$ vim secrets_plaintext/secrets.yml
$ ./secrets.sh -e
$ cd secrets/
$ git add secrets.yml
$ git commit -m 'Add some password or so'

You can also pipe the key instead of writing it to a file:

$ echo "the-key" | ./secrets.sh -d

License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
done
else
echo "usage: echo \$key | ./secrets.sh -e|-d"
fi
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pretty nice!

@jbenet
Copy link
Member

jbenet commented Aug 13, 2015

LGTM

jbenet added a commit that referenced this pull request Aug 13, 2015
secrets: rework how we store secrets
@jbenet jbenet merged commit 417c356 into master Aug 13, 2015
@jbenet jbenet deleted the secrets branch August 13, 2015 03:53
@daviddias daviddias mentioned this pull request Aug 17, 2015
28 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant