Skip to content

Instantly share code, notes, and snippets.

@kelseyhightower
Created June 10, 2014 17:44
Show Gist options
  • Save kelseyhightower/fdaf009d4c0ae027c1f5 to your computer and use it in GitHub Desktop.
Save kelseyhightower/fdaf009d4c0ae027c1f5 to your computer and use it in GitHub Desktop.

Etcd and encrypted values

echo "password" | gpg2 --symmetric --cipher-algo aes256 | base64
jA0ECQMCrK4yLqS7y37U0j4B/LOKb/ueWmr5wws2lNVwSOorICpWwTkHDadp2epK9r2geAnTbHkCWLleotj69tf6aYz/0GEuAQIzvaRPng==
curl -X PUT -L http://127.0.0.1:4001/v2/keys/password -d value='jA0ECQMCrK4yLqS7y37U0j4B/LOKb/ueWmr5wws2lNVwSOorICpWwTkHDadp2epK9r2geAnTbHkCWLleotj69tf6aYz/0GEuAQIzvaRPng=='
@bmizerany
Copy link

Would it be more clear to assign the first line to a var and use it on line 2?

This is nice and simple. Rad.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment