Socket
Socket
Sign inDemoInstall

namecheap-vault-env

Package Overview
Dependencies
151
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    namecheap-vault-env

Read and set environmental variables for processes from Vault


Version published
Weekly downloads
1
Maintainers
1
Created
Weekly downloads
 

Readme

Source

nc-vault-env

nc-vault-env provides a convenient way to populate secrets from Vault into a child process environment using the nc-vault-env daemon.

The daemon allows applications to be configured with secret variables, without having knowledge about the existence of Vault. This makes it especially easy to configure applications throughout all your environments: development, testing, production, etc.

nc-vault-env is inspired by envconsul in its simplicity, name, and function. The biggest difference here that nc-vault-env supports not only token authentication method but also an AppRole & AWS IAM.

The documentation in this README corresponds to the master branch of the project. It may contain unreleased features or different APIs than the most recently released version. Please see the Git tag that corresponds to your version of envconsul for the proper documentation.

Install

npm install -g nc-vault-env

Quick start

  1. Put the following config to the /config.json

    {
      "vault": {
        "address": "https://vault.example.com",
        "auth": {
          "type": "appRole",
          "config": {
            "role_id": "b2a7cfb9-d09a-49c4-9e9a-24127c6dbbf6"
          }
        }
      },
      "secrets": [
        {
          "path": "<%= env('MYENV') %>/mysql/main/creds/app_auth",
          "format": "DATABASE_<%= key %>"
        },
        {
          "path": "secret/some_secret",
          // key templating
          "format": "SECRET_<%= key %>"
        },
        {
          "path": "secret/database",
          // value templating
          "format": "<%= username %>:<%= password %>",
          "key": "CONNECTION_STRING"
        }
      ]
    }
    
  2. Run

    $ MYENV=staging nc-vault-env -c /config.json -v debug command_for_run
    

FAQs

Last updated on 11 Sep 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc