0.0.4 • Published 1 year ago

keyvault-environment-generator v0.0.4

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

KeyVault Environment Generator

KeyVault Environment Generator is a tool to create a working environment file based on a template .env.template and a configuration file .kvenvgenrc.

It will fetch all the necessary secrets from the given vault. No need to send these sensitive environment files in plaintext over email or chat-applications.

At the moment only Azure Key Vault is supported

Template file

Create a file named .env.template in the root of your project. The content of this file looks like this:

ENV_VAR=key-in-key-vault

You can put as many environment variables in this template. When you run the tool it will fetch all the necessary secrets from the vault in order to generate the entire environment file.

Config file

Create a .kvenvgenrc file in the root of your project. Next, configure the tool by adding the following properties to this file:

Example:

provider: azure
azure-subscription-id: <id>
azure-keyvault-name: <name>
PropertyExplanation
providerThe platform where your vault is hosted, possible values: azure
azure-subscription-idThe id of the Azure subscription.
azure-keyvault-nameThe name of the vault.

How to run

Once this package is installed you can run it via npx: npx kvenvgen.

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago