
Security News
Package Maintainers Call for Improvements to GitHub’s New npm Security Plan
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Node.js module for reading credstash secrets without needing snakes
const Credstash = require('credstash');
const credstash = new Credstash();
// .get method for one key (table query)
credstash.get('secret', (e, secret) => {
console.log('do not share the secret', secret);
});
// .list method for multiple keys (table scan)
credstash.list((e, secrets) => {
console.log('do not share the secrets', secrets);
});
Ensure you have AWS credentials configured. The credentials should be set up as a secret reader
$ npm install credstash
Credstash is a little utility for managing credentials in the cloud
This module is for environments where you are using credstash to store secrets, and you want to read secrets within node without installing python. The module could be used within your node module to retrieve, for instance, database connection credentials from credstash.
Credstash support versioning of secrets which allows to easily rotate secrets.
By default node-credstash will return the latest (most recent version of a secret). You can also retrieve the latest N versions of a secret as follows:
const Credstash = require('credstash');
const credstash = new Credstash();
credstash.get('secret', {limit: 3}, (e, secrets) => {
console.log('this is the last version', secrets[0]);
console.log('this is the second-last', secrets[1]);
console.log('this is the third-last', secrets[2]);
});
FAQs
Module for reading credstash secrets
We found that credstash demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.