You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 12, 2025. It is now read-only.
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.
Node.js
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 or convict 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.