
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
@launchdarkly/node-server-sdk-redis
Advanced tools
Redis-backed feature store for the LaunchDarkly Server-Side SDK for Node.js
This library provides a Redis-backed persistence mechanism (feature store) for the LaunchDarkly Node.js SDK, replacing the default in-memory feature store. The underlying Redis client implementation is ioredis.
The minimum version of the LaunchDarkly Server-Side SDK for Node for use with this library is 8.0.0.
LaunchDarkly is a feature management platform that serves over 100 billion feature flags daily to help teams build better software, faster. Get started using LaunchDarkly today!
This package is compatible with Node.js versions 14 and above.
Refer to Using Redis as a persistent feature store.
This assumes that you have already installed the LaunchDarkly Node.js SDK.
npm
or yarn
:npm install @launchdarkly/node-server-sdk-redis --save
ioredis
package, add ioredis
as well:npm install ioredis --save
import { RedisFeatureStore } = from '@launchdarkly/node-server-sdk-redis';
const storeFactory = RedisFeatureStore();
const config = { featureStore: storeFactory };
const client = LaunchDarkly.init('YOUR SDK KEY', config);
By default, the store will try to connect to a local Redis instance on port 6379. You may specify an alternate configuration as described in the API documentation for RedisFeatureStoreFactory
.
To reduce traffic to Redis, there is an optional in-memory cache that retains the last known data for a configurable amount of time. This is on by default; to turn it off (and guarantee that the latest feature flag data will always be retrieved from Redis for every flag evaluation), configure the store as follows:
const factory = RedisFeatureStoreFactory({ cacheTTL: 0 });
We encourage pull requests and other contributions from the community. Check out our contributing guidelines for instructions on how to contribute to this SDK.
LaunchDarkly uses the SLSA framework (Supply-chain Levels for Software Artifacts) to help developers make their supply chain more secure by ensuring the authenticity and build integrity of our published SDK packages. To learn more, see the provenance guide.
FAQs
Redis-backed feature store for the LaunchDarkly Server-Side SDK for Node.js
We found that @launchdarkly/node-server-sdk-redis 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.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.