Last active
December 22, 2015 22:27
-
-
Save wwalker/df9942ba19c99eee0827 to your computer and use it in GitHub Desktop.
Why can't I self renew in vault? Never mind. the feature doesn't exist in 0.3.1, time to upgrade.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl --tlsv1.2 -v -d @asdf.json -X POST -H "X-Vault-Token: $VAULT_TOKEN" https://127.0.0.1:8200/v1/sys/auth/token/renew-self |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"auth": { | |
"client_token": "SAME_AS_IN_VAULT_TOKEN", | |
"policies": ["pg_devops_secret_ro"], | |
"lease_duration": 2592000, | |
"renewable": true | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
path "sys/*" { | |
policy = "deny" | |
} | |
path "secret/ops/configs/properties/product_groups/*" { | |
policy = "read" | |
} | |
path "auth/token/lookup-self" { | |
policy = "read" | |
} | |
path "auth/token/renew-self" { | |
policy = "write" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
< HTTP/1.1 403 Forbidden | |
< Content-Type: application/json | |
< Date: Tue, 22 Dec 2015 18:59:55 GMT | |
< Content-Length: 33 | |
< | |
{"errors":["permission denied"]} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment