How a self-hosted secrets manager can bring order to homelab credential chaos
A homelab operator describes migrating all credentials from scattered docker-compose files and .env configs into a single self-hosted secrets manager, Infisical, to establish one authoritative source for every secret. Each service authenticates using its own machine identity, limiting a potential breach to only that service's secrets rather than the entire vault. A lightweight resolver checks environment variables first, then the secrets manager, and finally a fail-closed default — ensuring the system breaks loudly rather than silently falling back to hardcoded credentials. The only secret stored on disk is a bootstrap credential used to authenticate at startup, with strict file permissions, from which all other secrets are derived. A notable pitfall encountered was Docker Compose silently truncating passwords containing dollar signs due to variable interpolation in env_file configs, which the author resolved by escaping the character or avoiding it in generated passwords altogether.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in