node-vault
node-vault copied to clipboard
Use root token always get 404 response code
I use the postman with root token and it will correct create user with specified policies and create secret in vault.
but when I use this nodejs vault client I always get 404 response code even I use the root token to write some thing
const options = {
apiVersion: 'v1',
endpoint: 'http://localhost:8200',
token: '1234'
}
const vault = require("node-vault")(options);
...
vault.write(key, value);
and always get
Status 404
at handleVaultResponse
...
vault in my computer is runs as docker container, and the version is https://hub.docker.com/layers/vault/library/vault/1.10.3/images/sha256-74a6f9588b4d1c548ea4bd8731fdd04d0356f3d607f2e1bc9408f6c75e78d85c?context=explore
client version in nodejs project
"node-vault": "^0.9.22"
so I want to know that is this client out of maintenance?
having the same problem...
able to connect via CLI but not via node-vault
Hey @FIRECONTER, is the client code running inside a container as well or on the host? (same container? neighbor?)
this is probably because this library is compatible with v1 KV storage, as i can follow inthe logs v2 KV storage is using /secret/data as prefix for write operations