I have Vault configured with Consul as my backend.
I have tested Consul separately with no problem in all namespaces.
My problem is that I can't get/set values in Vault. I have tried a couple of different paths to no avail trying to experiment to find out which is the appropriate path for my REST calls. I can set/get using the /secret option, but I want to use consul.
Returns: "no handler for route 'content/email/'"
Returns: "unsupported path"
Returns: "unsupported path"
All the paths attempted were combinations trying to figure out which is the right one based on my configurations.
My Vault configuration is as follows:
Mounts:
{
"consul/": {
"config": {
"default_lease_ttl": 0,
"max_lease_ttl": 0
},
"description": "",
"type": "consul"
},
"cubbyhole/": {
"config": {
"default_lease_ttl": 0,
"max_lease_ttl": 0
},
"description": "per-token private secret storage",
"type": "cubbyhole"
},
"secret/": {
"config": {
"default_lease_ttl": 0,
"max_lease_ttl": 0
},
"description": "generic secret storage",
"type": "generic"
},
"sys/": {
"config": {
"default_lease_ttl": 0,
"max_lease_ttl": 0
},
"description": "system endpoints used for control, policy and debugging",
"type": "system"
}
}
Auth:
{
"app-id/": {
"description": "",
"type": "app-id"
},
"token/": {
"description": "token based credentials",
"type": "token"
}
}
Policy:
{
"policies": [
"root"
]
}
Vault initial configuration (vault.json):
{
"backend": {
"consul": {
"path": "mainline/encrypted",
"scheme": "http",
"token": "d54f4cbc-a459-3c04-552a-05cf45d2436b"
}
},
"listener": {
"tcp": {
"tls_disable":1
}
}
}
===============
Consul configurations:
ACLs:
[
{
"CreateIndex": 7,
"ModifyIndex": 7,
"ID": "2b2b052e-a632-bffd-4f14-67de1fcb95cd",
"Name": "Mainline",
"Type": "client",
"Rules": "{\"key\": {\"\": {\"policy\": \"read\"},\"mainline/\": {\"policy\": \"write\"},\"mainline/encrypted/\":{\"policy\":\"deny\"}}}"
},
{
"CreateIndex": 3,
"ModifyIndex": 3,
"ID": "anonymous",
"Name": "Anonymous Token",
"Type": "client",
"Rules": ""
},
{
"CreateIndex": 8,
"ModifyIndex": 8,
"ID": "d54f4cbc-a459-3c04-552a-05cf45d2436b",
"Name": "Mainline-Encrypted",
"Type": "management",
"Rules": "{\"key\": {\"\": {\"policy\": \"read\"},\"mainline/encrypted\": {\"policy\": \"write\"}}}"
},
{
"CreateIndex": 4,
"ModifyIndex": 4,
"ID": "f45cbd0b-5022-47ab-8640-4eaa7c1f40f1",
"Name": "Master Token",
"Type": "management",
"Rules": ""
}
]