Comments (8)
@marcoslopes OK, will have a look at it asap...thanx for finding this issue 👍
from node-vault.
@kr1sp1n no, thank you for the prompt reply! =]
from node-vault.
@marcoslopes Should be fixed now since version 0.5.5
Please verify! Thanks 👍
from node-vault.
@kr1sp1n yeah it works like a charm! thanks heaps for that! 👍
from node-vault.
This broken again? Using userpass authentication. Which seems to succeed, but further calls fail.
node-vault@^0.5.6
Unhandled rejection Error: missing client token
at handleVaultResponse (node_modules/node-vault/dist/index.js:36:19)
at tryCatcher (node_modules/request-promise/node_modules/bluebird/js/main/util.js:26:23)
at Promise._settlePromiseFromHandler (node_modules/request-promise/node_modules/bluebird/js/main/promise.js:510:31)
at Promise._settlePromiseAt (node_modules/request-promise/node_modules/bluebird/js/main/promise.js:584:18)
at Promise._settlePromises (node_modules/request-promise/node_modules/bluebird/js/main/promise.js:700:14)
at Async._drainQueue (node_modules/request-promise/node_modules/bluebird/js/main/async.js:123:16)
at Async._drainQueues (node_modules/request-promise/node_modules/bluebird/js/main/async.js:133:10)
at Immediate.Async.drainQueues (node_modules/request-promise/node_modules/bluebird/js/main/async.js:15:14)
at runCallback (timers.js:651:20)
at tryOnImmediate (timers.js:624:5)
at processImmediate [as _immediateCallback] (timers.js:596:5)
from node-vault.
@dishcandanty Will have a look asap.
from node-vault.
@dishcandanty I tested it and improved the examples in the develop
branch.
Here is how it works for me now:
- Start vault
docker-compose up --force-recreate vault
- Initialize vault and copy
root_token
from the response
node example/init.js
- Set env var
VAULT_TOKEN
export VAULT_TOKEN=[root_token]
- Add policy
mypolicy
node example/addPolicy.js
- Enable userpass auth
node example/enableAuth_userpass.js
- Login via userpass auth
node example/userpassLogin.js
It is required that you set vault.token
to the client_token
value from the login response.
That is at the moment far from perfect. Would be better to set the token automatically after any login strategy (e.g. github etc.).
from node-vault.
Ok, will close this issue for now.
from node-vault.
Related Issues (20)
- Missing 'rewrap' and 'keys' command HOT 1
- Use root token always get 404 response code HOT 3
- V2 KV engine support HOT 1
- Missing ldapLogin from index.d.ts HOT 2
- Missing certificate authentication mechanism HOT 1
- Add example of transit secret usage. HOT 1
- How to unseal a vault that is already initialized? HOT 2
- unable to write new secrets HOT 2
- Vault.write overwrite old secret to new HOT 1
- Vulnerability in request library HOT 2
- Update dependencies HOT 1
- Create npm deployment CI mechanism
- Next release inquiry HOT 2
- SSL Error After Upgrading Application To Node 18 HOT 4
- Add support for KV v2 "destroy" command
- Import error on index.d.ts HOT 2
- [Question] Generate certs
- How to create ACL Policy?
- Question - is there a way to read a versioned secret ?
- WARNING : node-vault > postman-request > [email protected]: this library is no longer supported
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-vault.