Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use root token always get 404 response code #201

Open
FIRECONTER opened this issue Jun 2, 2022 · 3 comments
Open

Use root token always get 404 response code #201

FIRECONTER opened this issue Jun 2, 2022 · 3 comments

Comments

@FIRECONTER
Copy link

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?

@Wassap124
Copy link

Wassap124 commented Jul 7, 2022

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

@aviadhahami
Copy link
Collaborator

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

@7c
Copy link

7c commented Apr 16, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants