Skip to content

Instantly share code, notes, and snippets.

@cfebs
Created February 13, 2018 18:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cfebs/09a7667393d70bea284bdc4cfa4a786b to your computer and use it in GitHub Desktop.
Save cfebs/09a7667393d70bea284bdc4cfa4a786b to your computer and use it in GitHub Desktop.
curl \
--request PUT \
--header "X-Consul-Token: ${MASTERKEY}" \
--data \
'{
"Name": "vault-ge1",
"Type": "client",
"Rules": "{\"key\":{\"vault/\":{\"policy\":\"write\"}},\"node\":{\"\":{\"policy\":\"write\"}},\"service\":{\"vault\":{\"policy\":\"write\"}},\"agent\":{\"\":{\"policy\":\"write\"}},\"session\":{\"\":{\"policy\":\"write\"}}}"
}' http://127.0.0.1:8500/v1/acl/create
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment