node-vault icon indicating copy to clipboard operation
node-vault copied to clipboard

Use root token always get 404 response code

Open FIRECONTER opened this issue 3 years ago • 3 comments

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?

FIRECONTER avatar Jun 02 '22 14:06 FIRECONTER

having the same problem... able to connect via CLI but not via node-vault

Wassap124 avatar Jul 07 '22 09:07 Wassap124

Hey @FIRECONTER, is the client code running inside a container as well or on the host? (same container? neighbor?)

aviadhahami avatar Nov 10 '22 17:11 aviadhahami

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

7c avatar Apr 16 '23 16:04 7c