env-secrets
env-secrets
is a Node.js CLI that fetches secrets from a vault (starting with AWS Secrets Manager) and injects them into the environment variables of a child process you run.
Highlights
- Pull JSON secrets and expose each key as
ENV
. - Run any command with injected secrets:
env-secrets aws -s <name> -- <your command>
. - Works globally (
npm i -g env-secrets
) or withnpx
per project. - Debug-friendly (
DEBUG=env-secrets,...
).
Quick Start
# Install globally
npm install -g env-secrets
# Or use with npx
npx env-secrets aws -s my-secret -- node app.js
Documentation
Getting Started
- Overview - Learn about env-secrets
- Installation - How to install and set up
- CLI Reference - Complete command reference
- Examples - Comprehensive usage examples
Providers
- AWS Secrets Manager - Supported secret providers
Tutorials
- Local Development - Step-by-step guides for local development
Advanced Topics
- Advanced Usage - Complex patterns and integration scenarios
- Best Practices - Security and operational guidelines
- Production Deployment - Production deployment strategies
Security & Troubleshooting
- Security Considerations - Security best practices and considerations
- Troubleshooting - Common issues and solutions
- FAQ - Frequently asked questions
Source: markcallen/env-secrets