Research
Security News
Malicious npm Package Typosquats react-login-page to Deploy Keylogger
Socket researchers unpack a typosquatting package with malicious code that logs keystrokes and exfiltrates sensitive data to a remote server.
dvs-inbox-infra
Advanced tools
Readme
This package provides a CDK Constrcut and related TS Types for creating DVS Inbox related resources.
import { App, Stack, StackProps } from "aws-cdk-lib";
import { Construct } from "constructs";
import { InboxConstruct, InboxProps } from "@a-cloud-guru/dvs-inbox-infra";
const app = new App();
class ExampleServiceStack extends Stack {
constructor(scope: Construct, id: string, props: StackProps = {}) {
super(scope, id, props);
const inboxProps: InboxProps = {
vpcId: "vpc-12345",
subnetIds: ["subnet-12345", "subnet-67890"],
kafka: {
bootstrapServers: ["kafka1-broker-staging.vnerd.com:9092"],
topicName: "dvs.foo.v1",
schemaRegistryHost: "http://dvs-schema-registry-stage.vnerd.com:8081",
}
};
const inboxConstruct = new InboxConstruct(
this,
'MyFooInbox', // Prefix for this Inbox.
inboxProps
);
console.log("Created inbox resources", inboxConstruct);
}
}
new ExampleServiceStack(app, "MyExampleServiceStack", {
env: {
account: "123456789012",
region: "us-east-1",
},
tags: {
"cc_service": "cloud-dvs-integration-example",
"cc_company_usage": "acg",
"team": "principle-engineers",
"info:env": "dev"
}
});
type InboxProps = {
vpcId: string;
subnetIds: string[];
kafka: {
bootstrapServers: string[];
schemaRegistryHost: string;
topicName: string;
};
};
This construct generates the following CfOutput variables. Please note these names exclude the random hash that cdk normally generates. This is to make it easier for these variables to be referenced in the tools like Serverless framework.
${camelCasePrefix}TargetVpcId
- VPC ID of where the construct is deployed${camelCasePrefix}DynamoDBTableName
- Name of the DynamoDB table${camelCasePrefix}SecurityGroupId
- ID of the Security Group generated for the nested resources${camelCasePrefix}ExecutionRoleArn
- ARN of the Lambda's execution Role${camelCasePrefix}ConsumerFunctionArn
- ARN of the consumer FunctioncamelCasePrefix
is basde on the prefix
parameter of the construct and stage tag (ie info:env
), which are formatted in camleCase. (eg. MyFooInbox
& dev
-> myFooInboxDev
)
FAQs
Unknown package
The npm package dvs-inbox-infra receives a total of 0 weekly downloads. As such, dvs-inbox-infra popularity was classified as not popular.
We found that dvs-inbox-infra 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.
Research
Security News
Socket researchers unpack a typosquatting package with malicious code that logs keystrokes and exfiltrates sensitive data to a remote server.
Security News
The JavaScript community has launched the e18e initiative to improve ecosystem performance by cleaning up dependency trees, speeding up critical parts of the ecosystem, and documenting lighter alternatives to established tools.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.