node-vault | Client for HashiCorp 's Vault | REST library
kandi X-RAY | node-vault Summary
kandi X-RAY | node-vault Summary
Client for HashiCorp's Vault
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of node-vault
node-vault Key Features
node-vault Examples and Code Snippets
Community Discussions
Trending Discussions on node-vault
QUESTION
I'm trying to start a Vault service in my NodeJS app. Using CLI to use Vault is ok, but i need it to work automatically when the app is started. I try this
...ANSWER
Answered 2020-Sep-11 at 15:28No, usually the code shouldn't start the server. Yes, your code is working correctly. If you have not started the server, the error means that it is impossible to connect to the specified IP address and port, they are closed. The vault server has nothing to do with it, the same behavior will be the database server or any other.
QUESTION
I'm beginner of Hashicorp Vault. I've worked it for 3 days and I'm in stuck.
So, my problem is I have a Hashicorp Vault server and I use node-vault
to interact.
I have 2 clients (node-vault) to connect to Hashicorp Vault server.
When "Client 1" access to Hashicorp Vault server for the first time, Hashicorp Vault server will return the token for "client 1".
But, when I do the same thing with "client 2" for the second time. Hashicorp Vault produces an error: "Vault is already initialized".
So, how can I get a token for "client 2" from Hashicorp Vault server when it is initialized?
Thanks for any help.
...ANSWER
Answered 2019-Oct-02 at 14:00i guess you use https://www.npmjs.com/package/node-vault as your node-vault
.
The problem is that you init your vault from Client 1
and you try to do the same from Client 2
, hence the error.
What you need to do is save the output from Client 1
and then either
share the root key returned from
Client 1
toClient 2
(BAD IDEA - dont do that)create policies and distribute tokens to
Client 2
.
QUESTION
I am writing an application which uses Hashicorp vault to store passwords and certificates. Right now I am using the default username/pass method to authenticate my client app.
When I try to add a secret I am getting { statusCode: 301, body: undefined }
when setting the apiVersion = v1
and { statusCode: 404, body: { errors: [] } }
when it is set to v2
.
Configuration:
...ANSWER
Answered 2019-May-28 at 11:16The issue got fixed by adding /data
to the path and also the request data had to be inside an object {"data": .....}
.
QUESTION
I have started a Hashicorp Vault dev server in my local machine:
...ANSWER
Answered 2018-Jul-26 at 12:19With secrets/hello
you are trying to access the k/v secrets backend, that might not have been enabled.
Use one of the following commands to enable it (choose the version that you need): vault secrets enable -version=1 kv
or vault secrets enable -version=2 kv
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install node-vault
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page