vault-dotenv

command module
v1.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 11, 2021 License: MIT Imports: 7 Imported by: 0

README

vault-dotenv

Creates a .env file from vault secrets

Config

Configuration can be done through env variables or programmatically through the Config object The following env variables are supported:

VAULT_ADDR                          # Vault server URL (default "http://localhost:8200")
VAULT_CACERT                        # Path to CA file
VAULT_TOKEN                         # Vault Token
VAULT_ROLEID or VAULT_ROLE_ID       # Vault app role id
VAULT_SECRETID or VAULT_SECRET_ID   # Vault app role secret id
VAULT_MOUNTPOINT                    # Vault app role mountpoint (default "approle")
VAULT_CLIENT_TIMEOUT                # Client timeout
VAULT_SKIP_VERIFY                   # Do not check SSL

Usage

vault-dotenv --secret-path=/path/to/secret --env-file=production.env

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL