
Security News
Rust RFC Proposes a Security Tab on crates.io for RustSec Advisories
Rust’s crates.io team is advancing an RFC to add a Security tab that surfaces RustSec vulnerability and unsoundness advisories directly on crate pages.
@rss/common-nodejs
Advanced tools
RSS shared Node.js library for cross cutting concerns.
$ npm install @rss/common-nodejs
TokenHelper must be initialized before calling methods on it.
const { env, TokenHelper } = require('@rss/common-nodejs');
TokenHelper.initialize({
tokenClientName: env.TOKEN_CLIENT_NAME,
tokenClientKey: env.TOKEN_CLIENT_KEY,
tokenServerURL: env.TOKEN_SERVER_URL,
redis: { host: env.REDIS_HOST } // Optional. Ff not provided it will use in memory NodeCache
});
const appClientToken = await TokenHelper.clientToken();
The RSS authentication strategy authenticates users using a token passed in on the Authorization request header.
The strategy requires a verify callback, which accepts a valid decoded token and calls done providing a user.
passport.use(new Strategy({ tokenHelper: TokenHelper }, (decodedToken, done) => {
// load user
const user = decodedToken;
return done(null, user);
}));
Use passport.authenticate(), specifying the 'rss' strategy, to
authenticate requests.
app.post('/api/sample', passport.authenticate('rss', { usage: 'CLIENT', session: false }), (req, res) => {
res.redirect('/');
});
This strategy takes an hash value with the following options
session - Options, save user to session - should be set to falseusage - Optional, what token type is acceptable. Default to all but can limit to [CLIENT] or [USER,CLIENT]FAQs
RSS shared Node.js library
The npm package @rss/common-nodejs receives a total of 243 weekly downloads. As such, @rss/common-nodejs popularity was classified as not popular.
We found that @rss/common-nodejs demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Rust’s crates.io team is advancing an RFC to add a Security tab that surfaces RustSec vulnerability and unsoundness advisories directly on crate pages.

Security News
/Research
Socket found a Rust typosquat (finch-rust) that loads sha-rust to steal credentials, using impersonation and an unpinned dependency to auto-deliver updates.

Research
/Security Fundamentals
A pair of typosquatted Go packages posing as Google’s UUID library quietly turn helper functions into encrypted exfiltration channels to a paste site, putting developer and CI data at risk.