Skip to content
Mementropy
RecipesHomelab recipesReference

Delivering secrets to K3s with the Infisical Secrets Operator

Project only the secrets each namespace needs, read-only, through Universal Auth.

By Ryan Hammang

Getting secrets from a self-hosted Infisical into Kubernetes Secrets, declaratively.

  1. In Infisical, create a machine identity with the viewer role and turn on Universal Auth. Note the client ID and secret.

  2. Install the operator on each cluster (v0.11.12 tested), pointing hostAPI at your Infisical’s /api.

  3. Store the credentials in each cluster:

Terminal window
kubectl create secret generic infisical-universal-auth \
-n infisical-operator-system \
--from-literal=clientId=<id> --from-literal=clientSecret=<secret>
  1. Add an InfisicalSecret per consumer. Set template.includeAllSecrets: false and map only the keys that namespace needs.

  2. Under Argo CD, don’t use ServerSideApply=true on Applications that include InfisicalSecret resources.

  • Delete the managed Secret. The operator recreates it with an owner reference to the InfisicalSecret.
  • Its SHA-256 matches the value in Infisical.
  • Server-side apply rejected InfisicalSecret because of a list-type defect in the CRD schema.
  • The bootstrap admin token in the version tested had no expiry and was rejected. Universal Auth tokens carry an expiry and work.