
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).
This repository contains constants that make it easier to work with the aws-cdk (CDK).
The CDK is awesome but it currently lacks types when initializing constructs such as IAM service principals and managed policies. Finding the right construct names requires diving into AWS documentation. Because there is no verification of these construct initializers, errors are only surfaced after deployment and via a rollback.
This library aims to be an up to date constants library for all things AWS so the above never happens again!
Install or update from npm
TypeScript/Javascript
npm i cdk-constants
Python
pip install cdk-constants
** TypeScript **
# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
from cdk_constants import ServicePrincipals, ManagedPolicies
lambda_role = Role(self, "lambdaDomainChecker",
assumed_by=ServicePrincipal(ServicePrincipals.LAMBDA),
managed_policies=[
ManagedPolicy.from_aws_managed_policy_name(ManagedPolicies.AWS_LAMBDA_BASIC_EXECUTION_ROLE)
]
)
** Python **
from cdk_constants import ServicePrincipals, ManagedPolicies
lambda_role = Role(self, "lambdaDomainChecker",
assumed_by=ServicePrincipal(ServicePrincipals.LAMBDA),
managed_policies=[
ManagedPolicy.from_aws_managed_policy_name(ManagedPolicies.AWS_LAMBDA_BASIC_EXECUTION_ROLE)
]
)
cdk-constants
wouldn't be possible without modules from the following authors
All contributors are welcome. As you are reading this, AWS has probably released a new service. Please see CONTRIBUTING for information on how to setup a development environment and submit code.
Some upcoming items on the roadmap:
cdk-constants is distributed under the Apache License, Version 2.0.
See LICENSE for more information.
FAQs
Library of helpful constants to work with the CDK
We found that cdk-constants 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.