Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-vault

Package Overview
Dependencies
Maintainers
6
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-vault - npm Package Compare versions

Comparing version 0.5.8 to 0.5.9

243

dist/commands.js

@@ -22,28 +22,30 @@ 'use strict';

var tokenResponse = {
var auth = {
type: 'object',
properties: {
auth: {
type: 'object',
properties: {
client_token: {
type: 'string'
},
policies: {
type: 'array',
items: {
type: 'string'
}
},
metadata: {
type: 'object'
},
lease_duration: {
type: 'integer'
},
renewable: {
type: 'boolean'
}
client_token: {
type: 'string'
},
policies: {
type: 'array',
items: {
type: 'string'
}
},
metadata: {
type: 'object'
},
lease_duration: {
type: 'integer'
},
renewable: {
type: 'boolean'
}
}
};
var tokenResponse = {
type: 'object',
properties: {
auth: auth
},

@@ -53,2 +55,27 @@ required: ['auth']

var approleResponse = {
type: 'object',
properties: {
auth: auth,
warnings: {
type: 'string'
},
wrap_info: {
type: 'string'
},
data: {
type: 'object'
},
lease_duration: {
type: 'integer'
},
renewable: {
type: 'boolean'
},
lease_id: {
type: 'string'
}
}
};
module.exports = {

@@ -762,2 +789,174 @@ status: {

},
approleRoles: {
method: 'LIST',
path: '/auth/approle/role',
schema: {
res: approleResponse
}
},
addApproleRole: {
method: 'POST',
path: '/auth/approle/role/{{role_name}}',
schema: {
req: {
bind_secret_id: {
type: 'boolean'
},
bound_cidr_list: {
type: 'string'
},
policies: {
type: 'string'
},
secret_id_num_uses: {
type: 'integer'
},
secret_id_ttl: {
type: 'integer'
},
token_num_uses: {
type: 'integer'
},
token_ttl: {
type: 'integer'
},
token_max_ttl: {
type: 'integer'
},
period: {
type: 'integer'
}
}
}
},
getApproleRole: {
method: 'GET',
path: '/auth/approle/role/{{role_name}}',
schema: {
res: approleResponse
}
},
deleteApproleRole: {
method: 'DELETE',
path: '/auth/approle/role/{{role_name}}'
},
getApproleRoleId: {
method: 'GET',
path: '/auth/approle/role/{{role_name}}/role-id',
schema: {
res: approleResponse
}
},
updateApproleRoleId: {
method: 'POST',
path: '/auth/approle/role/{{role_name}}/role-id',
schema: {
req: {
type: 'object',
properties: {
role_id: {
type: 'string'
}
},
required: ['role_id']
}
}
},
getApproleRoleSecret: {
method: 'POST',
path: '/auth/approle/role/{{role_name}}/secret-id',
schema: {
req: {
type: 'object',
properties: {
metadata: {
type: 'string'
},
cidr_list: {
type: 'array',
items: {
type: 'string'
}
}
}
},
res: approleResponse
}
},
approleSecretAccessors: {
method: 'LIST',
path: '/auth/approle/role/{{role_name}}/secret-id',
schema: {
res: approleResponse
}
},
approleSecretLookup: {
method: 'POST',
path: '/auth/approle/role/{{role_name}}/secret-id/lookup',
schema: {
req: {
type: 'object',
properties: {
secret_id: {
type: 'string'
}
},
required: ['secret_id']
},
res: approleResponse
}
},
approleSecretDestroy: {
method: 'POST',
path: '/auth/approle/role/{{role_name}}/secret-id/destroy',
schema: {
req: {
type: 'object',
properties: {
secret_id: {
type: 'string'
}
},
required: ['secret_id']
}
}
},
approleSecretAccessorLookup: {
method: 'POST',
path: '/auth/approle/role/{{role_name}}/secret-id-accessor/lookup',
schema: {
req: {
type: 'object',
properties: {
secret_id: {
type: 'string'
}
},
required: ['secret_id']
}
}
},
approleSecretAccessorDestroy: {
method: 'POST',
path: '/auth/approle/role/{{role_name}}/secret-id-accessor/destroy'
},
approleLogin: {
method: 'POST',
path: '/auth/approle/login',
schema: {
req: {
type: 'object',
properties: {
role_id: {
type: 'string'
},
secret_id: {
type: 'string'
}
},
required: ['role_id', 'secret_id']
},
res: approleResponse
}
},
health: {

@@ -764,0 +963,0 @@ method: 'GET',

2

package.json
{
"name": "node-vault",
"version": "0.5.8",
"version": "0.5.9",
"description": "Javascript client for HashiCorp's Vault",

@@ -5,0 +5,0 @@ "main": "./dist/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc