
Security News
Package Maintainers Call for Improvements to GitHub’s New npm Security Plan
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
fastify-secrets-env
Advanced tools
Fastify secrets plugin for environment variables
This plugin is mostly intended for your local dev environmemt where you may want to use the same api as production-ready plugins like fastify-secrets-gcp whilest still reading config from environment variables. We suggest to use a proper secret manager in production.
npm install --save fastify-secrets-env
This plugin will read secrets from environment variables and decorate fastify with a secrets object.
It is agnostic on how the environment variables are set: it is not a replacement of dotenv
, and can work in conjuction with it.
const FastifySecrets = require('fastify-secrets-env')
fastify.register(FastifySecrets, {
secrets: {
dbPassword: 'PG_PASS'
}
})
await fastify.ready()
console.log(fastify.secrets.dbPassword) // content of process.env.PG_PASS
The plugin only expect the secrets
object in the options.
It is a map of keys and environment variables names. fastify-secrets-env
will decorate the fastify server with a secrets
object where keys will be the same keys of the options and the value will be the content of the environment variables referenced by the value.
See CONTRIBUTING.md
Copyright NearForm Ltd 2020. Licensed under the Apache-2.0 license.
FAQs
Fastify secrets plugin for environment variables
The npm package fastify-secrets-env receives a total of 388 weekly downloads. As such, fastify-secrets-env popularity was classified as not popular.
We found that fastify-secrets-env demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 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
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.