
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).
@pubcore/docker-cluster-test
Advanced tools
This package can be used for scripts (js) to create a docker swarm cluster as a foundation for testing of services dealing with distributed data. Testing the behaviour of distributed-data-services, for instance, if a node goes down, leads to the motivation for this package: create a test-cluster, deploy a service, create some test-load and in parallel shoot down a node.
'use strict'
const {installCluster, purgeCluster, isReady, getVmIp
} = require('@pubcore/docker-cluster-test'),
{deploy} = require('@pubcore/node-docker-build')
//this will lead to 2 virtual machines with name vm1 and vm2
vmSet = {name:'vm', count:2}
//shortcut for createVms(vmSet), startVms(vmSet) and createSwarm(vmSet)
installCluster(vmSet)
//helper function to deploy an example service (via ssh to the test-cluster)
deploy({
moduleName:resolve(__dirname, '../localhost/config'),
logPath:resolve(__dirname)
})
//if test-service is ready on vm2, do some-thing, here - for instance - cleanup
isReady({host:getVmIp(vmSet), port:8080}).then(() => {
//purge stuff, shortcut for stopVms(vmSet) and deleteVms(vmSet)
purgeCluster(vmSet)
},
FAQs
create clusters for testing purpose
The npm package @pubcore/docker-cluster-test receives a total of 0 weekly downloads. As such, @pubcore/docker-cluster-test popularity was classified as not popular.
We found that @pubcore/docker-cluster-test demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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.