-
Notifications
You must be signed in to change notification settings - Fork 18
Multi language Support
Lorens Kockum edited this page Nov 23, 2017
·
2 revisions
The general approach, for the time being, is to use the CLI and inject the secrets into your application at startup.
There are two ways to use Strongbox with Node:
- If you only need readonly access to secrets/configs you can have Strongbox fill in the environment variables (see the CLI json output docs)and then you can use something like the popular
getenv
orconvict
from Mozilla. Typically you would convert all your configurations from env vars to a native JS object in./config.js
at the root of the project. - Run the CLI directly using Node's child process module. This gives you full access to Strongbox CLI at the cost of more complexity.