The `cerberus-node-client` is a Node.js client library designed for secure interaction with a Cerberus Key Management backend. It facilitates storing, retrieving, and managing secrets and files programmatically. The current stable version is 4.0.0. This library is specifically tailored for environments where AWS credentials are available, leveraging the AWS SDK Credentials provider chain for authentication, which distinguishes it from generic secret management tools. It automatically handles token expiration and re-authentication, aiming for a 'just use the client' experience. While release cadence can be irregular, recent activity includes dependency updates and a major version bump with `v4.0.0`. It should not be confused with `cerberus-client` for Kubernetes/OpenShift cluster monitoring.
npm install cerberus-node-clientVerified import paths — ran on the pinned version, not inferred.
Instantiates the Cerberus client, authenticates using AWS credentials, and retrieves a secret from a specified SDB path. Ensure `CERBERUS_HOST`, `AWS_REGION`, and `TEST_SDB_PATH` environment variables are set.
Upgrade your Node.js runtime to version 14 or higher before migrating to `cerberus-node-client` v4.0.0.
For Lambda secrets, prefer AWS encrypted environmental variables or read secrets from Cerberus only at Lambda deploy time, then store them as encrypted environment variables.
Ensure your environment has valid AWS credentials configured, either via environment variables (`AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS_KEY`, `AWS_SESSION_TOKEN`), IAM roles for EC2/Lambda, or a credentials file.
Update error handling logic in applications using `cerberus-node-client` to explicitly catch and manage errors that indicate no data was returned from Cerberus API calls.
Ensure AWS environment variables (AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_SESSION_TOKEN), an IAM role, or a valid credentials file are accessible to the Node.js process.
Verify the SDB path for the secret is correct and that the IAM role or user associated with your AWS credentials has appropriate read permissions in Cerberus.
Double-check the `hostUrl` in `CerberusClientOptions` or the `CERBERUS_HOST` environment variable for typos, and ensure network connectivity to the Cerberus endpoint.
No dependency data recorded yet.