Secures your .env files with a password. Works similarly to ansible-vault.
A user friendly CLI interface to create and manage .env.vault files.
In addition provides a convenient web based user interface to manage your .env.vault files.
-
Leave your public variables in your
.envfile. -
Create a new
.env.vaultfile using envenc.
$> ./envenc init .env.vault- Add your private variables to the
.env.vaultfile.
$> ./envenc key-set .env.vault- Use the vault file in your project.
$> keys := env.KeyListFromFile(password, ".env.vault")The web ui is a simple user interface to manage your .env.vault files.
It provides a convenient and fast way to visually manage your keys.
To run the web ui use:
$> ./envenc ui .env.vaultThe web interface is simple and straightforward to use.
- Login Screen
- Add New Key
- List Keys
- Update Key
- Delete Key
-
Download the binary for your platform from the latest release
-
You may install it globally, or use as standalone executable
-
To use it globally on Linux, add to your
$PATH
$> mkdir -p ~/.local/bin
$> cp envenc ~/.local/bin
$> chmod +x ~/.local/bin/envenc- To use it globally on Windows, add to your
$PATH
$> mkdir -p %USERPROFILE%\.local\bin
$> cp envenc.exe %USERPROFILE%\.local\bin- Install the module with
go get
$> go get github.com/dracory/envenc- To create a new vault file
$> ./envenc init .env.vault- To set a new key-value pair
$> ./envenc key-set .env.vault- To list all key-value pairs
$> ./envenc key-list .env.vault- To remove a key-value pair
$> ./envenc key-remove .env.vault- To obfuscate a string
$> ./envenc obfuscate- To deobfuscate a string
$> ./envenc deobfuscate



