1.0.2 • Published 2 months ago

@amplication/plugin-secrets-manager-bitwarden v1.0.2

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
2 months ago

@amplication/plugin-bitwarden-secret-manager

NPM Downloads

Amplication plugin for managing secrets using the Bitwarden secrets manager.

Purpose

This plugin provides a wrapper for the Bitwarden secret manager SDK which allows you to manage secrets for your application using the Bitwarden secret manager.

Configuration

The plugins are fetched by two methods:

  • STARTUP - In this method, the plugins are fetched during the startup time (Initially loaded).
  • ON_DEMAND - In this method, the plugins are fetched during the runtime (Loaded when the secrets are needed).

You need to define also a property named secretNames that will contain a list of the secrets that the service needs to interact with (see below for the formatting of the secret name). Ensure that the secretNames match exactly with the keys from your bitwarden secret manager.

Example:

"fetchMode": "STARTUP",
"secretNames": [
    "secretKey1",
    "secretKey2",
    "secretKey3"
]

Usage

  1. Enable the plugin from your Amplication app when enabled, This plugin will override your default implementation for SecretsManagerService to use the Bitwarden secrets manager.

  2. Make sure to set your Bitwarden credentials(access_token and organisation_id) correctly.

  3. Set your preffered fetchMode and specify your secretNames if your preferred fetchMode is STARTUP.

Scripts

build

Running npm run build will bundle your plugin with Webpack for production.

dev

Running npm run dev will watch your plugin's source code and automatically bundle it with every change.