Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Simple module to protect api keys, username credentials, and other sensitive data.
A small module providing the ability to store sensitive data securely and retrieve it decrypted at runtime.
npm install avault
There are two steps to follow to use the avault service:
Step 1 is performed very infrequently. Step 2 is performed frequently, whenever sensitive data (e.g. credentials) needs to be retrieved.
usage: vaultcli.js [--version] [--zap] [--verbose] [--reallyverbose] [--secret=<secretValue>] [--value=<vaultValue>] <vaultName>
example - create a vault entry:
node_modules/avault/vaultcli.js --verbose --value='{"username": "mrogers", "password": "director", "host": "nsa.rds.amazonaws.com", "database": "prism"}' sigad
example - remove all vaults:
node_modules/avault/vaultcli.js --zap --verbose
example - set the master key:
node_modules/avault/vaultcli.js --secret=skeleton --verbose
var vault = require('avault').createVault(__dirname);
var keyName = 'key1';
vault.generateKey(keyName).then(
function (keyResponse) {
vault.store(keyName, '{"username": "mrogers", "password": "director", "host": "nsa.rds.amazonaws.com", "database": "prism"}', 'sigad').then(
function (storeResponse) {
console.log('Ok', storeResponse);
},
function (err) {
console.log('Error', err);
});
},
function (err) {
console.log('Error', err);
});
var vault = require('avault').createVault(__dirname);
vault.get('sigad', function (profileString) {
var profile = JSON.parse(profileString);
console.log(profile);
});
npm test
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.
FAQs
Simple module to protect api keys, username credentials, and other sensitive data.
We found that avault 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
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.