I could not make sense of this work without research. After three years at CERN, back in Bilbao I decided to work on my own and keep researching and learning. I believe entrepreneurship is the ultimate professional challenge — and, at the same time, an expression of creativity and a claim to freedom.
Zetesis comes from the Greek ζήτησις, inquiry: find the cause before proposing the solution.
Building a homelab from scratch: security and operations
Case studyHomelabSecurityOperations
Keeping infrastructure in Git creates a contradiction: configuration must be written down to make the system reproducible, but a password or private key cannot appear in the repository. This article explains how secrets reach containers without becoming part of the code.
The solution has three parts. Infisical stores the values. External Secrets Operator delivers them to Kubernetes. SOPS and age encrypt the few sensitive files that must live in Git. Each tool covers a different boundary.
Infisical is the source of truth
Infisical is a self-hosted secrets manager. It stores database passwords, API tokens, OAuth credentials, and the keys used by services. Projects and environments separate the values used by each workload.
Centralized storage does not mean universal access. Each consumer uses an identity restricted to specific paths. A Zetesis Portal deployment can read its own credentials without gaining access to another project's values.
Infisical stores and manages the value. Containers still need a mechanism that delivers it at the right time.
Docker and Kubernetes receive secrets differently
On Docker hosts, ptolomeo—the agent that deploys Docker Compose—queries Infisical during an update. It retrieves authorized keys and injects them as environment variables. The Compose file contains the variable name expected by the application, not the real value.
In Kubernetes, External Secrets Operator, or ESO, performs the same role continuously. An ExternalSecret resource declares the keys an application needs. ESO reads them from Infisical and creates a native Secret in the correct namespace. Pods consume that Secret without knowing about the external system.
Loading diagram...
The distinction matters because the lifecycles differ. A Docker host needs secrets when it recreates a container. Kubernetes needs to check and refresh the Secret while the cluster is running.
SOPS encrypts what must remain in Git
Some secrets are part of a declarative file. Talos Linux, for example, needs cryptographic material to generate cluster configuration. Removing the entire file from Git would hide its structure from review; storing it in plain text would be unacceptable.
SOPS encrypts only the sensitive YAML values. The keys and document structure remain visible while the content is protected. age provides the key pair used for encryption and decryption.
The age public key may live in the repository: it encrypts data but cannot read it. The private key stays outside Git and is retrieved from Infisical when Talos configuration must be generated.
SOPS does not replace Infisical. It is reserved for files whose structure and version must remain in the repository. Ordinary application credentials remain only in the secrets manager.
The first-boot problem
ESO needs credentials to connect to Infisical, but ESO is the component that creates Kubernetes Secrets. An empty cluster therefore has a circular dependency: it cannot retrieve its credentials before starting, and it cannot start with access before receiving them.
Talos breaks the cycle with initial manifests encrypted by SOPS. When the control plane starts, it creates the minimal Secret containing ESO's identity. The operator can then connect to Infisical and synchronize everything else.
The order is:
Outside the cluster, Talos configuration is decrypted with the private age key.
Talos starts and applies ESO's minimal Secret.
ESO uses that identity to connect to Infisical.
ESO creates the Secrets required by other applications.
ArgoCD can deploy the services that depend on them.
This is a bootstrap problem: a small amount of initial information starts the system that will manage everything else.
Limiting the damage from one credential
Storing a secret correctly is not enough. The system must also limit what happens when it leaks or is used from the wrong place.
Identities are separated by service and environment. Tailscale ACLs restrict which destinations each machine can reach. Management panels are not published on the internet. GitGuardian checks repository changes for credentials committed by mistake.
Rotation should change the value in Infisical and let consumers receive it through their normal mechanism. Copying a password manually to several servers creates different versions and makes it impossible to know which one remains active.
Logs must not print sensitive values either. Observing an application means recording which operation failed and under which identity, not dumping its environment variables.
What must exist outside the homelab
A self-hosted system cannot depend entirely on itself for recovery. The private age key and the credentials required to restore Infisical need a protected copy outside the infrastructure.
This article ends with secure access to those keys. The recovery order for databases, volumes, and services belongs in backups and restore. That article explains what happens if Infisical or an entire cluster disappears.
The practical rule is simple: Git contains structure, Infisical contains values, and SOPS allows encrypted exceptions to be versioned.