
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@dvsa/secrets-manager
Advanced tools
A utility class for accessing secrets stored with AWS Secrets Manager. Provides overrides from ENV variables.
A utility class for accessing secrets stored with AWS Secrets Manager.
Provides ability to override keys by implementing them as ENVIRONMENT variables.
Accessing the AWS Secrets Manager requires these environment variables:
The AWS region, normally this is supplied by default within AWS resources.
This is used by the AWS Secrets Manager Client.
eu-west-1
The class SecretsManager provides two methods:
async getSecret(secretName: string): Promise<Record<string, string>> {}
This method will return a KEY, VALUE pairs as an object of all secrets stored in the AWS Secrets Manager store specified by secretName. This store contains KEY, VALUE pairs.
async getSecretWithKey(secretName: string, key: string): Promise<string> {}
This method will call the previous, and extract (if defined) the key-value from the secret store.
Should you need to override the value from key you can specify the key as an environment variable.
A call will not be made to AWS Secrets Manager. This makes it useful for local development environments.
console.log(process.env.MY_KEY_NAME); //MySecret
const secret = getSecretWithKey('mySecretName', 'MY_KEY_NAME');
console.log(secret); // MySecret
npm inpm run build:devnpm testcoverage directory
jest.config.jsThis library uses https://github.com/debug-js/debug to provide an opt-in logging experience.
To enable logging from this package, set the DEBUG environment variable to @dvsa/secrets-manager. For example, to run your tests with the library in debug logging mode:
DEBUG=@dvsa/secrets-manager npm run test
FAQs
A utility class for accessing secrets stored with AWS Secrets Manager. Provides overrides from ENV variables.
We found that @dvsa/secrets-manager demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 21 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.