Security News
Research
Supply Chain Attack on Rspack npm Packages Injects Cryptojacking Malware
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
@seek/kms-config
Advanced tools
Promise
Decrypt KMS encrypted values in config files. This tool is optimised for use in node 4.3.2 AWS Lambda functions but should work in any modern node runtime.
npm install --save @seek/kms-config
The user that is running the lambda will need kms:Decrypt
permission to the master key used for generating the ciphertext.
Warning* To reduce KMS overhead you should just call this once and cache the result if possible.
{
"foo" : "bar",
"kms" { //All the values in this object are expected to be KMS ciphertext
"secretToHappiness" : "base64_encoded_ciphertext"
}
}
const myConfig = require('./myConfig')
const config = require('@seek/kms-config')(myConfig)
config.then(resolved => {
console.log(resolved.foo) // "bar"
console.log(resolved.kms.secretToHappiness) // "eat more chocolate"
}).catch(err => {
console.log(err, "Oh dear perhaps you are missing KMS permissions")
})
...
Returns: Promise
- A promise to the loaded config which will be resolved with all kms values decrypted.
Param | Type | Description |
---|---|---|
config | Object | A config object which may contain a child kms object who's values are KMS ciphertext |
FAQs
Decrypt KMS encrypted values in config files
The npm package @seek/kms-config receives a total of 5 weekly downloads. As such, @seek/kms-config popularity was classified as not popular.
We found that @seek/kms-config demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 35 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
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.
Security News
Sonar’s acquisition of Tidelift highlights a growing industry shift toward sustainable open source funding, addressing maintainer burnout and critical software dependencies.