Skip to content

Use root token always get 404 response code #201

Open

Description

@FIRECONTER

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?

Activity

  1. Wassap124 commented on Jul 7, 2022

    @Wassap124

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

  2. aviadhahami commented on Nov 10, 2022

    @aviadhahami
    Collaborator

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

  3. 7c commented on Apr 16, 2023

    @7c

    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

  4. self-assigned this
    on Jul 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions