node-vault
Advanced tools
Comparing version 0.5.8 to 0.5.9
@@ -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', |
{ | ||
"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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
33148
1213