
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
@botpress/cdk-postgresql
Advanced tools
AWS CDK constructs for Postgresql
npm install @botpress/cdk-postgresql
or yarn add @botpress/cdk-postgresql
A Provider
instance is required in order to establish a connection to your Postgresql instance
const theMasterSecret: secretsmanager.ISecret;
// you can connect to to a publicly available instance
const provider = new Provider(this, "Provider", {
host: "your.db.host.net",
username: "master",
password: theMasterSecret,
port: 5432,
vpc,
securityGroups: [dbClusterSecurityGroup],
});
// or a private instance in your VPC
const provider = new Provider(this, "Provider", {
host: "your.db.host.net",
username: "master",
password: theMasterSecret,
port: 5432,
vpc,
securityGroups: [yourDatabaseSecurityGroup],
});
You can reuse the same Provider
instance when creating your different Role
and Database
instances.
import { Database } from "@botpress/cdk-postgresql";
const db = new Database(this, "Database", {
provider,
name: "mynewdb",
owner: "somerole",
removalPolicy: cdk.RemovalPolicy.RETAIN, // default is RETAIN
});
import { Role } from "@botpress/cdk-postgresql";
const rolePassword: secretsmanager.ISecret;
const role = new Role(this, "Role", {
provider,
name: "newrole",
password: rolePassword,
removalPolicy: cdk.RemovalPolicy.RETAIN, // Default is DESTROY
});
Role
before a Database
In many cases, you want to create a Role
and use that role as the Database
owner. You can achieve this by adding an explicit dependency between the two instances:
const roleName = "newRole";
const role = new Role(this, "Role", {
provider,
name: roleName,
password: rolePassword,
});
const db = new Database(this, "Database", {
provider,
name: "mydb",
owner: roleName,
});
db.node.addDependency(role);
FAQs
Postgresql constructs for AWS CDK
We found that @botpress/cdk-postgresql 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.