codybuell/laravault-auth
Laravel 5.4 auth provider that authenticates users against Hashicorp Vault. Stores user info in the Laravel session, tracks Vault TTL, and ends the Laravel session when the Vault token expires. Configurable as an auth driver via config/auth.php.
Use This If:
Look Elsewhere If:
.env files).For Executives/Business Leaders: "This package lets us securely integrate Laravel with HashiCorp Vault, eliminating hardcoded credentials and automating secret rotation. It reduces risk of breaches (e.g., leaked DB passwords) while aligning with our security roadmap. For example, we could rotate API keys daily without downtime—cutting exposure windows by 90%. The MIT license means no vendor lock-in, and Vault’s audit logs give us compliance-ready visibility. Upfront effort is minimal; we’ll reuse existing Vault infrastructure."
For Engineering/DevOps:
*"Laravault-auth provides a Vault-aware Laravel auth facade for fetching dynamic secrets (e.g., config('database.password') pulls from Vault). Key benefits:
env() hacks: Secrets are fetched at runtime, not baked into code.Vault::getSecret('postgres/creds')).For Security Teams: *"This package enforces Vault’s access controls (e.g., lease durations, approval policies) for Laravel apps. Critical for:
laravel/app role only gets postgres/read).
Risk: Ensure Vault’s auth method (e.g., AppRole) is hardened—we’ll need to [review current Vault policies]."*How can I help you explore Laravel packages today?