/ # vault write auth/approle/role/testrole period=20m
Success! Data written to: auth/approle/role/testrole
/ # vault write -f auth/approle/role/testrole/secret-id
Key Value
--- -----
secret_id 5fb77b62-6f13-6c47-71b6-0404d9374063
secret_id_accessor dba393e5-221b-8401-28e0-e806e49b07d1
/ # vault token-renew 5fb77b62-6f13-6c47-71b6-0404d9374063
Error renewing token: Error making API request.
URL: PUT http://127.0.0.1:8200/v1/auth/token/renew
Code: 400. Errors:
* token not found
/ #"...The main benefit [with secret-id's] you have over giving out tokens is that when a token
fetched with an approle secret-id expires, the secret-id (unless also
bound by an expiry or use-count) can be used to get a new token.
Otherwise you have to give your application a new token somehow."
secret_id_num_uses (int)
Number of times a SecretID can access the role, after which the SecretID
will expire. Defaults to 0 meaning that the the secret_id is of unlimited use.
secret_id_ttl (duration (sec))
Duration in seconds after which the issued SecretID should expire. Defaults
to 0, in which case the value will fall back to the system/mount defaults.
--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/hashicorp/vault/issues
IRC: #vault-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Vault" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vault-tool+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vault-tool/f9c4a6f1-5800-4cd5-be1f-76f48933590b%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vault-tool/CAD0f7BZ%2BjFA5MsBcifBKvRqvWS_rrE9-k7b7Zn%2BExdbi_1Y0rA%40mail.gmail.com.
// Revoke by secret-id
vault write auth/approle/role/my-role/secret-id/destroy secret_id=192142cf-3492-0178-016e-39baee71a7e2
// Revoke by secret-id accessor
vault write auth/approle/role/my-role/secret-id-accessor/destroy secret_id_accessor=44c302c9-2cf9-4bb6-c939-c5148c433e4f
Sai.
To unsubscribe from this group and stop receiving emails from it, send an email to vault...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vault-tool/f9c4a6f1-5800-4cd5-be1f-76f48933590b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/hashicorp/vault/issues
IRC: #vault-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Vault" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vault...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to vault-tool+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vault-tool/9e28f497-5239-485e-ad4e-d6d13ab81dd0%40googlegroups.com.
Is that expected behaviour ?
vault token revoke -mode="path" auth/approle/--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/hashicorp/vault/issues
IRC: #vault-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Vault" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vault-tool+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vault-tool/31f9eee1-5552-44e1-99e8-44aa823fcfe3%40googlegroups.com.