Security News
cURL Project and Go Security Teams Reject CVSS as Broken
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
@dazn/chaos-squirrel-runner-middy
Advanced tools
Integrate the chaos runner into your Middy middleware.
import chaosRunnerMiddleware from '@dazn/chaos-squirrel-runner-middy';
import ChaosRunner from '@dazn/chaos-squirrel-runner';
import CPUAttack from '@dazn/chaos-squirrel-attack-cpu';
import middy from '@middy/core';
const createRunner = ChaosRunner.configure({
probability: 1,
possibleAttacks: [
{
probability: 0.01,
createAttack: CPUAttack.configure({ allowLoopEvery: 10 }),
},
],
});
const originalHandler = async () => {
// your lambda here
// there may be some chaos going on!
};
const handler = middy(originalHandler).use(
chaosRunnerMiddleware({
createRunner,
wait: true,
createLogger: (context) => {
return (level, message, details) => {
// call a logger which is attached to the lambda context
context.logger[level](message, details);
};
},
})
);
export { handler };
Parameter | Type | Default | Description |
---|---|---|---|
createRunner | Function | - | A function which returns a new instance of ChaosRunner |
wait | Boolean | true | Whether to wait for async chaos functions to complete, for example waiting for all files to be created for the open files attack |
createLogger | Function | - | Optional. A function which is called with the Lambda context , which must return a valid logger function (see Chaos Runner for logger docs). This is useful when the context has a custom logger or correlation IDs attached, which you want to include in any logs |
0.9.4 (2020-10-29)
Note: Version bump only for package @dazn/chaos-squirrel
FAQs
Run chaos experiments in your Middy-powered Lambda
The npm package @dazn/chaos-squirrel-runner-middy receives a total of 1 weekly downloads. As such, @dazn/chaos-squirrel-runner-middy popularity was classified as not popular.
We found that @dazn/chaos-squirrel-runner-middy demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 7 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.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.