ERROR: Frustration with API call for KV2 secret

694 views
Skip to first unread message

deking

unread,
Feb 28, 2019, 2:54:50 PM2/28/19
to Vault
Whats wrong with this really??
Whatever i type in the path not working.
curl \
--header "X-Vault-Token: <root token>" \
https://vault.example.net/v1/secret/metadata/bashcript

In your documentation:

$ curl \
--header "X-Vault-Token: ..." \
https://vault.example.net/v1/secret/data/my-secret


ERROR: {"errors":["no handler for route 'secret/data/bashscript'"]}

MP:project deking$ vault kv list kv/
Keys
----
bashscript
my-secret
MP:project deking$
MP:project deking$ vault kv get kv/bashscript
====== Metadata ======
Key Value
--- -----
created_time 2019-02-27T09:04:41.648334893Z
deletion_time n/a
destroyed false
version 1

====== Data ======
Key Value
--- -----
password secretpassword

deking

unread,
Feb 28, 2019, 3:11:43 PM2/28/19
to Vault
vault server version 1.0.2
client 1.0.2 also

vault status
Key Value
--- -----
Seal Type shamir
Initialized true
Sealed false
Total Shares 3
Threshold 2
Version 1.0.2
Cluster Name vault-cluster-febb8a5c
Cluster ID c8bfwer545-8y4d-c266-b451-321298497631
HA Enabled false

Brian Kassouf

unread,
Feb 28, 2019, 3:31:15 PM2/28/19
to vault...@googlegroups.com
Hi,

It looks like you don't have a kv backend mounted at the "secret/" location. Try changing the API path to kv/data/bashscript

Best,
Brian

--
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/a443273a-91d3-4111-9d5c-2fc7a9d0b05c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

deking

unread,
Feb 28, 2019, 3:54:07 PM2/28/19
to Vault
that didnt work, i've created the one with "secret/*" and its working. Jesus 3h on this...
Reply all
Reply to author
Forward
0 new messages