Socket
Book a DemoInstallSign in
Socket

docker-hush-hush

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

docker-hush-hush

Module to get docker secrets

2.1.1
latest
Source
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

docker-hush-hush

Node module to retrieve docker secrets

Usage:

const hush = require('docker-hush-hush');

// Get all secrets in '/run/secrets' dir
const secrets = hush.getAllSecrets();
console.log(secrets);

// Get single secret in '/run/secrets' dir
const secretName = 'fieldName';
const secret = hush.getSecret(secretName);
console.log(secret);

// Change default dir (i.e. other than /run/secrets)
hush.setBasePath('./different/path');

// Disable caching. 
// By default values will be accessed via fs once.
// After that they are retrieved from memory.
// Using this ensures they are always accessed via fs.
hush.disableCache();

// Here's a good way to get all secrets into process.env in one step
process.env = { ...process.env, ...hush.getAllSecrets() };

Keywords

docker

FAQs

Package last updated on 26 Oct 2018

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.