
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
fastify-secrets-aws
Advanced tools
Fastify secrets plugin for AWS Secrets Manager.
npm install --save fastify-secrets-aws
In order to be able to read from AWS Secrets Manager you will need some permissions.
You will also probably manage permissions in different ways in local dev and production environment.
In general you may want to use a different secrets manager on your local machine (i.e. fastify-secrets-env
to read secrets from env variables).
If you want to run fastify-secrets-aws
in the local environment you will need to follow these steps:
SecretsManagerReadWrite
AWS_SDK_LOAD_CONFIG
environment variable to a truthy value or populate the configuration via environment variables altogetherIf you already have a AWS user you will need to give it access to Secrets Manager by adding the policy SecretsManagerReadWrite
.
Otherwise you will need to create a new user with access to Secrets Manager by adding it the same policy SecretsManagerReadWrite
.
const FastifySecrets = require('fastify-secrets-aws')
fastify.register(FastifySecrets, {
secrets: {
dbPassword: 'secret-name'
}
})
secret-name
is the name of the secret as created in AWS Secrets Manager.
await fastify.ready()
console.log(fastify.secrets.dbPassword) // content of 'secret-name'
The plugin only expect the secrets
object in the options.
It is a map of keys and resource ids for the secrets. fastify-secrets-aws
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 secret as fetched from AWS Secrets Manager
See CONTRIBUTING.md
Copyright NearForm Ltd 2020. Licensed under the Apache-2.0 license.
FAQs
Fastify secrets plugin for AWS Secrets Manager
The npm package fastify-secrets-aws receives a total of 479 weekly downloads. As such, fastify-secrets-aws popularity was classified as not popular.
We found that fastify-secrets-aws demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.