Skip to main content
Inframan keeps secret values out of your repository, out of its own database and out of your workloads’ specs.

Where secrets are stored

inframan.yaml refers to secrets by name only. See Environment variables and secrets.

How secrets reach a service

  1. When you set a secret, its value is held encrypted for at most 10 minutes while Inframan writes it to your secret manager. Only a short-lived claim token passes through Inframan’s workflows, so the value never appears in workflow history or logs.
  2. At deploy time, Inframan reads the value from your secret manager and writes it into a Kubernetes Secret in the application’s namespace.
  3. The service reads it as an environment variable that refers to the Kubernetes Secret. The value isn’t written into the workload’s spec.
Updating an infrastructure secret rolls out every service that uses it.

Secrets in builds

Secrets marked for builds are handed to Docker BuildKit as a secret mount. They’re available to the RUN steps that ask for them and are never written into an image layer or the image’s history. When builds run in the cluster, the secrets file lives on memory-backed storage. See Secrets at build time.
Plain variables are passed to builds as build arguments, which can be read from an image’s history. Never put a secret in env.

Who can see secrets

An export, from the infrastructure’s Env groups or Secrets tab, downloads every env group, secret group and secret of the infrastructure as one JSON file, with every value in plain text. Keep it somewhere safe.
Anyone with a kubectl tunnel has full rights on the cluster, which includes reading Kubernetes Secrets. That’s why only Admins can open one.