Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
A hapi cookie jar
The yar plugin adds a simple way to set a persistant state (using an Iron encrypted cookie) across requests. It has support for session management - either stored on the client via cookie, in server memory, or using an external database (via custom storage code).
For example, the first handler sets the jar content and the second utilizes it:
var handler1 = function () {
this.plugins.yar = {
key: 'value'
};
return this.reply();
};
var handler2 = function () {
this.reply(this.state.yar.key); // Will send back 'value'
};
The plugin requires a password for encryption, and the ext
permission:
var options = {
permissions: {
ext: true // Required
},
plugin: {
name: 'yar' , // Optional, overrides cookie name. Defaults to 'yar'. Doesn't affect 'plugins.yar'.
isSingleUse: false, // Optional, clears jar after one request. Defaults to false.
options: {
password: 'password', // Required
isSecure: true // Optional, any supported cookie options except `encoding`
}
}
};
var server = new Hapi.Server();
server.plugin().require('yar', options, function (err) { });
FAQs
![yar Logo](https://raw.github.com/walmartlabs/yar/master/images/yar.png)
We found that broken-yar 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.