New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@bluemax/vault-multitenant

Package Overview
Dependencies
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bluemax/vault-multitenant - npm Package Compare versions

Comparing version 0.2.2 to 0.3.0

dist/auth-engines/app-role.d.ts

3

dist/auth-engines/index.d.ts

@@ -1,1 +0,2 @@

export * from './jwt';
export * from './jwt.guard';
export * from './app-role';

@@ -6,2 +6,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
__export(require("./jwt"));
__export(require("./jwt.guard"));
__export(require("./app-role"));

@@ -29,1 +29,4 @@ export interface IAWSGenerateTokenOptions {

}
export interface IKVData {
[key: string]: any;
}
import { VaultService } from '../vault.service';
import { IKVGetSecretOptions, IKVGetSecretResponse } from './interfaces';
import { IKVGetSecretOptions, IKVGetSecretResponse, IKVData } from './interfaces';
export declare class KVSecretEngine {

@@ -7,2 +7,4 @@ private vaultService;

getSecret<T = IKVGetSecretResponse>(options: IKVGetSecretOptions): Promise<T>;
createSecret(options: IKVGetSecretOptions, data: IKVData): Promise<void>;
deleteSecret(options: IKVGetSecretOptions): Promise<void>;
}

@@ -18,8 +18,28 @@ "use strict";

},
json: true,
body: {}
json: true
});
return result.data;
}
async createSecret(options, data) {
await request_promise_native_1.default({
method: 'POST',
uri: `${this.vaultService.hostname}/v1/${options.path}`,
headers: {
'X-Vault-Token': options.token
},
json: true,
body: data
});
}
async deleteSecret(options) {
await request_promise_native_1.default({
method: 'DELETE',
uri: `${this.vaultService.hostname}/v1/${options.path}`,
headers: {
'X-Vault-Token': options.token
},
json: true
});
}
}
exports.KVSecretEngine = KVSecretEngine;

@@ -5,2 +5,3 @@ "use strict";

const secret_engines_1 = require("./secret-engines");
const auth_engines_1 = require("./auth-engines");
class VaultMultitenant {

@@ -28,2 +29,6 @@ constructor(bxApp, options) {

use: new secret_engines_1.KVSecretEngine(this.vaultService)
},
{
provider: auth_engines_1.AppRoleAuthEngine,
use: new auth_engines_1.AppRoleAuthEngine(this.vaultService)
}

@@ -30,0 +35,0 @@ ];

{
"name": "@bluemax/vault-multitenant",
"version": "0.2.2",
"version": "0.3.0",
"description": "vault extension for bluemax framework",

@@ -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