bref/secrets-loader
Load AWS SSM Parameter Store secrets into environment variables at runtime when using Bref on AWS Lambda. Any env var value starting with bref-ssm: is automatically replaced with the corresponding SSM parameter value. Install via composer require bref/secrets-loader.
.env files in serverless deployments./dev/, /prod/), enabling dynamic configurations without redeploying. Supports feature flags or A/B testing.Adopt if:
.env files in serverless deployments.env() and config() helpers.Look elsewhere if:
aws-ssm-get-parameter.vlucas/phpdotenv + custom loaders or AWS Secrets Manager..env files suffice..env.local).For Executives: "This package lets us securely manage secrets in AWS SSM Parameter Store—like a digital vault for API keys, passwords, and configs—without manual setup. It’s a turnkey solution for our Bref-based PHP serverless apps, reducing security risks and DevOps overhead. Since it’s maintained by the Bref team and MIT-licensed, we avoid vendor lock-in while gaining compliance-ready secret management. It also simplifies multi-environment deployments (dev/staging/prod) by centralizing secrets in SSM. Estimated cost: $0 (open-source); ROI: fewer leaks, easier audits, and faster deployments."
For Engineering:
*"We’re adding bref/secrets-loader to replace hardcoded env vars with SSM-backed secrets in our Bref/Laravel stack. Here’s why:
serverless.yml (e.g., DB_PASSWORD=bref-ssm:/app/db/password)..env files by overriding values at runtime (e.g., APP_KEY from SSM).composer require bref/secrets-loader and update serverless.yml. DevOps will configure SSM IAM permissions. For local dev, we’ll add a fallback to .env.local."*For Security/Compliance:
*"This replaces insecure secret storage (e.g., Git, .env files) with AWS SSM Parameter Store, which offers:
For DevOps: *"This package automates SSM secret loading for Bref Lambdas, reducing manual steps:
serverless.yml values with bref-ssm: prefixes.How can I help you explore Laravel packages today?