🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

config-secrets

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

config-secrets

A plug-in for [config](https://www.npmjs.com/package/config) module to support docker secrets.

latest
Source
npmnpm
Version
1.0.6
Version published
Maintainers
1
Created
Source

Config Secrets

A plug-in for config module to support docker secrets.

Prerequisites

In order for the secrets to work, you will need a custom-environment-variables file in your config folder, it will use the environment variable names as the secret name.

custom-environment-variables.yml
default:
  service:
    port: "PORT"
  mq:
    host: "MQ_HOST"

Installing

$ npm install config-secrets

Configuration

To change the location where the docker secrets are stored, you can add a SECRETS_PATH environment variable, default location is /run/secrets

Notes

Environment variables takes precedent over docker secrets, so if your application needs different setting over the docker secret, you can add the environment variable to overwrite it.

FAQs

Package last updated on 05 May 2017

Did you know?

Socket

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