
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
Never push your passwords and API keys to version control again!
With node-keyring you can store credentials on your local machine or server (optionally encrypted with password) and retrieve them from your application when needed. This means you can freely push your code to version control, even to public repositories without having to worry about exposing your passwords, api keys and other secret strings.
var keyring = require('../keyring');
var foursquareURL = '';
foursquareURL += 'https://api.foursquare.com/v2/venues/search?';
foursquareURL += 'radius={RADIUS}&ll={LOCATION}&limit={LIMIT}&v=20120927';
foursquareURL += '&client_id={ID}&client_secret={SECRET}';
var keyringApi = keyring.instance().load();
//Before running the example, from the command line do the following:
// keyring store -k foursquare.myapp.clientId -v SOME_CLIENT_ID
// keyring store -k foursquare.myapp.clientSecret -v SOME_CLIENT_SECRET
foursquareURL = foursquareURL.replace('{RADIUS}', 1500)
.replace('{LOCATION}', '52.5,13.3')
.replace('{LIMIT}', 50)
.replace('{ID}', keyringApi.retrieve('foursquare.myapp.clientId'))
.replace('{SECRET}', keyringApi.retrieve('foursquare.myapp.clientSecret'));
console.log(foursquareURL);
FAQs
Never push your passwords and API keys to version control again.
We found that keyring 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.