Skip to content

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.

Node.js

There are two ways to use Strongbox with Node:

  1. 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.
  2. Run the CLI directly using Node's child process module. This gives you full access to Strongbox CLI at the cost of more complexity.