--
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/dee5f212-03aa-4db7-af37-ff348c0fbcd8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
$ ./vault auth enable approleSuccess! Enabled approle auth method at: approle/$ ./vault policy write jenkins jenkins-pol.hclSuccess! Uploaded policy: jenkins$ ./vault write auth/approle/role/jenkins policies="jenkins"Success! Data written to: auth/approle/role/jenkins$ ./vault read auth/approle/role/jenkins/role-idKey Value--- -----role_id 1d451fe0-cfd2-49df-74a9-1c69acd7db80$ ./vault write -f auth/approle/role/jenkins/secret-idKey Value--- -----secret_id 9ac9e3f1-7cff-cbf4-3bf1-183385bbe01asecret_id_accessor 0541b0db-0bae-721d-3381-b5567ccda5cd$ ./vault auth listPath Type Accessor Description---- ---- -------- -----------approle/ approle auth_approle_e6a2edda n/atoken/ token auth_token_1395ef55 token based credentials
$ ls .vault-tokenls: cannot access .vault-token: No such file or directory$ /tmp/vault write -field=token auth/approle/login role_id=1d451fe0-cfd2-49df-74a9-1c69acd7db80 secret_id=9ac9e3f1-7cff-cbf4-3bf1-183385bbe01a439c4c6b-fcf2-3ed3-74f7-6b7d3fe41980$ ls .vault-tokenls: cannot access .vault-token: No such file or directory$ /tmp/vault login -method=approleUnknown auth method: approle. Use "vault auth list" to see the complete listof auth methods. Additionally, some auth methods are only available via theHTTP API.$ /tmp/vault auth listError listing enabled authentications: Error making API request.URL: GET http://127.0.0.1:8200/v1/sys/authCode: 400. Errors:* missing client token$ VAULT_TOKEN=439c4c6b-fcf2-3ed3-74f7-6b7d3fe41980 /tmp/vault auth listError listing enabled authentications: Error making API request.URL: GET http://127.0.0.1:8200/v1/sys/authCode: 403. Errors:* 1 error occurred:* permission denied
### with the root token:
$ VAULT_TOKEN=590b9070-5801-b76f-5363-b030c880020c /tmp/vault auth listPath Type Accessor Description---- ---- -------- -----------approle/ approle auth_approle_e6a2edda n/atoken/ token auth_token_1395ef55 token based credentials
The login command reference does not claim that approle is a supported
type for the command.