
Research
/Security News
npm Author Qix Compromised via Phishing Email in Major Supply Chain Attack
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
node-red-contrib-aws-asm
Advanced tools
A production-ready Node-RED node for AWS Secrets Manager operations that retrieves secrets and stores them in Node-RED context or environment variables.
Run the following command in your Node-RED user directory (typically ~/.node-red
):
npm install node-red-contrib-aws-asm
After installation, restart Node-RED to load the new nodes.
The module uses a configuration node that supports multiple authentication methods:
Supports multiple credential sources:
// Set environment variables
process.env.AWS_ACCESS_KEY_ID = "your-access-key";
process.env.AWS_SECRET_ACCESS_KEY = "your-secret-key";
// Configure node to use environment variables
Access Key ID: Environment Variable → AWS_ACCESS_KEY_ID
Secret Access Key: Environment Variable → AWS_SECRET_ACCESS_KEY
// Store secret key in global context
global.set("aws_secret", "your-secret-access-key");
// Configure node
Access Key ID: String → stored securely in Node-RED
Secret Access Key: Global Context → aws_secret
Create AWS Configuration
Add Secrets Manager Node
Configure Secret ID The Secret ID supports multiple input types:
msg.payload.secretId
or msg.secretId
// Store in flow context
storeIn: "flow"
variableName: "dbCredentials"
// Access later
const credentials = flow.get("dbCredentials");
// Store in global context
storeIn: "global"
variableName: "dbCredentials"
// Access later
const credentials = global.get("dbCredentials");
// For JSON secrets like: {"DB_HOST":"localhost","DB_USER":"admin"}
storeIn: "env"
// Each key becomes an environment variable automatically:
// process.env.DB_HOST = "localhost"
// process.env.DB_USER = "admin"
// No Variable Name needed - each JSON key becomes a separate env var
// Send secret directly to output
storeIn: "output"
// msg.payload will contain the secret value
[
{
"id": "inject-node",
"type": "inject",
"payload": "{}",
"wires": [["secrets-node"]]
},
{
"id": "secrets-node",
"type": "aws-secret-manager",
"awsConfig": "aws-config",
"secretId": "my-database-secret",
"secretIdType": "str",
"storeIn": "global",
"variableName": "dbCredentials",
"wires": [["debug-node"]]
}
]
msg.secretId
(optional): Secret ID if not configured in nodemsg = {
secretId: "my-secret-name"
}
msg = {
payload: {
status: "Secret stored successfully",
secretId: "my-secret-name"
}
}
msg = {
payload: {
username: "admin",
password: "secret123",
host: "database.example.com"
}
}
msg = {
payload: {
error: "Error message"
}
}
The node provides comprehensive error handling:
All errors are logged and sent in the message payload for downstream processing.
Minimum required permissions:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"secretsmanager:GetSecretValue"
],
"Resource": "arn:aws:secretsmanager:region:account:secret:*"
}
]
}
MIT
Contributions are welcome! Please feel free to submit a Pull Request.
If you encounter any issues or have questions, please open an issue on GitHub.
FAQs
A Node-RED node for AWS Secrets Manager operations
The npm package node-red-contrib-aws-asm receives a total of 2 weekly downloads. As such, node-red-contrib-aws-asm popularity was classified as not popular.
We found that node-red-contrib-aws-asm 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
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
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.